fix: don't release lock when we have cached optimistic update data, as we never locked it

This commit is contained in:
Derrick Hammer 2023-07-24 11:12:52 -04:00
parent d6f327385f
commit d3664c8d23
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 1 deletions

View File

@ -222,7 +222,6 @@ export default abstract class BaseClient extends EventEmitter {
diffInSeconds / this.config.chainConfig.SECONDS_PER_SLOT, diffInSeconds / this.config.chainConfig.SECONDS_PER_SLOT,
); );
if (currentSlot <= update.attestedHeader.beacon.slot) { if (currentSlot <= update.attestedHeader.beacon.slot) {
this.optimisticMutex.release();
return getExecInfo(update); return getExecInfo(update);
} }
} }