mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-09 02:35:08 +00:00
fix initial hardfork transition in CommonRef
This commit is contained in:
parent
932a2140f2
commit
0128c82c52
@ -150,8 +150,8 @@ proc init(com : CommonRef,
|
|||||||
# set it before creating genesis block
|
# set it before creating genesis block
|
||||||
# TD need to be some(0.u256) because it can be the genesis
|
# TD need to be some(0.u256) because it can be the genesis
|
||||||
# already at the MergeFork
|
# already at the MergeFork
|
||||||
let optionalGenesisTime = if genesis.isNil: none[EthTime]() else: some(genesis.timestamp)
|
const TimeZero = fromUnix(0)
|
||||||
com.hardForkTransition(ForkDeterminationInfo(blockNumber: 0.toBlockNumber, td: some(0.u256), time: optionalGenesisTime))
|
com.hardForkTransition(ForkDeterminationInfo(blockNumber: 0.toBlockNumber, td: some(0.u256), time: some(TimeZero)))
|
||||||
|
|
||||||
# com.forkIds and com.blockZeroHash is set
|
# com.forkIds and com.blockZeroHash is set
|
||||||
# by setForkId
|
# by setForkId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user