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

Commit 5870f1d

Browse files
committed
add explanatory comment
1 parent b24d914 commit 5870f1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/chains/ethereum/ethereum/src/blockchain.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ export default class Blockchain extends Emittery<BlockchainTypedEvents> {
331331
blocks.latest = await this.#blockBeingSavedPromise.then(
332332
({ block }) => block
333333
);
334+
// when we are forking, blocks.earliest is already set to what was
335+
// retrieve from the fork
334336
if (!blocks.earliest) {
335337
blocks.earliest = blocks.latest;
336338
}

0 commit comments

Comments
 (0)