Skip to content

Commit

Permalink
fix initial hardfork transition in CommonRef
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Jun 12, 2023
1 parent 932a214 commit 0128c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nimbus/common/common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0128c82

Please sign in to comment.