From 0128c82c52da9ba5d40835ebeb24449ca0a383cc Mon Sep 17 00:00:00 2001 From: jangko Date: Mon, 12 Jun 2023 11:06:04 +0700 Subject: [PATCH] fix initial hardfork transition in CommonRef --- nimbus/common/common.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimbus/common/common.nim b/nimbus/common/common.nim index 70776ca8c..e7d03f972 100644 --- a/nimbus/common/common.nim +++ b/nimbus/common/common.nim @@ -150,8 +150,8 @@ proc init(com : CommonRef, # set it before creating genesis block # TD need to be some(0.u256) because it can be the genesis # already at the MergeFork - let optionalGenesisTime = if genesis.isNil: none[EthTime]() else: some(genesis.timestamp) - com.hardForkTransition(ForkDeterminationInfo(blockNumber: 0.toBlockNumber, td: some(0.u256), time: optionalGenesisTime)) + const TimeZero = fromUnix(0) + com.hardForkTransition(ForkDeterminationInfo(blockNumber: 0.toBlockNumber, td: some(0.u256), time: some(TimeZero))) # com.forkIds and com.blockZeroHash is set # by setForkId