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

Commit

Permalink
add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jan 5, 2023
1 parent 6e23735 commit 993d1da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chains/ethereum/ethereum/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ export default class Blockchain extends Emittery<BlockchainTypedEvents> {
blocks.latest = await this.#blockBeingSavedPromise.then(
({ block }) => block
);
// when we are forking, blocks.earliest is already set to what was
// retrieve from the fork
if (!blocks.earliest) {
blocks.earliest = blocks.latest;
}
Expand Down

0 comments on commit 993d1da

Please sign in to comment.