Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
delay emitting block til next event loop in eager blocktime mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed May 5, 2022
1 parent c672ec4 commit e024fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export default class Blockchain extends Emittery<BlockchainTypedEvents> {
transaction.finalize("confirmed", transaction.execException);
});

if (this.#instamine && options.miner.instamine === "eager") {
if (options.miner.instamine === "eager") {
// in eager instamine mode we must delay the broadcast of new blocks
await new Promise(resolve => {
// we delay emitting blocks and blockLogs because we need to allow for:
Expand Down

0 comments on commit e024fb5

Please sign in to comment.