mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
fixes hard fork block number initialization in processCustomGenesisConfig
rather than initialize it to 0, those block numbers are initialized to high(BlockNumber). this will fix issue when imported genesis.json doesn't contains all forks' blockNumber.
This commit is contained in:
parent
287f1b2ba0
commit
68e70ebdca
@ -374,8 +374,8 @@ proc processCustomGenesisConfig(customGenesis: JsonNode): ConfigStatus =
|
||||
result = Success
|
||||
var
|
||||
chainId = 1.ChainId
|
||||
homesteadBlock, daoForkblock, eip150Block, eip155Block, eip158Block, byzantiumBlock, constantinopleBlock = 0.toBlockNumber
|
||||
petersburgBlock, istanbulBlock, muirGlacierBlock, berlinBlock = 0.toBlockNumber
|
||||
homesteadBlock, daoForkblock, eip150Block, eip155Block, eip158Block, byzantiumBlock, constantinopleBlock = high(BlockNumber).toBlockNumber
|
||||
petersburgBlock, istanbulBlock, muirGlacierBlock, berlinBlock = high(BlockNumber).toBlockNumber
|
||||
eip150Hash, mixHash : MDigest[256]
|
||||
daoForkSupport = false
|
||||
nonce = 66.toBlockNonce
|
||||
|
Loading…
x
Reference in New Issue
Block a user