mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 05:44:40 +00:00
fixes wrongNumber bug
This commit is contained in:
parent
fbcef2ee1f
commit
bf23bd8d84
@ -451,7 +451,7 @@ proc validateUncles(chainDB: BaseChainDB, currBlock: PlainBlock, checkSeal: bool
|
||||
validateUncle(currBlock.header, uncle, uncleParent)
|
||||
|
||||
func isGenesis(currBlock: PlainBlock): bool =
|
||||
result = currBlock.header.blockNumber == 0.u256
|
||||
result = currBlock.header.blockNumber == 0.u256 and currBlock.header.parentHash == GENESIS_PARENT_HASH
|
||||
|
||||
proc validateBlock(chainDB: BaseChainDB, currBlock: PlainBlock, checkSeal: bool): bool =
|
||||
if currBlock.isGenesis:
|
||||
|
Loading…
x
Reference in New Issue
Block a user