From 993d1da5eae379d6c6bf58539eae5fc2ec184c6f Mon Sep 17 00:00:00 2001 From: MicaiahReid Date: Thu, 5 Jan 2023 17:15:05 -0500 Subject: [PATCH] add explanatory comment --- src/chains/ethereum/ethereum/src/blockchain.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chains/ethereum/ethereum/src/blockchain.ts b/src/chains/ethereum/ethereum/src/blockchain.ts index e307f5e5c6..15e6d1a891 100644 --- a/src/chains/ethereum/ethereum/src/blockchain.ts +++ b/src/chains/ethereum/ethereum/src/blockchain.ts @@ -331,6 +331,8 @@ export default class Blockchain extends Emittery { 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; }