fixes wrongNumber bug

This commit is contained in:
andri lim 2019-09-09 22:48:38 +07:00 committed by zah
parent fbcef2ee1f
commit bf23bd8d84
1 changed files with 1 additions and 1 deletions

View File

@ -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: