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)
|
validateUncle(currBlock.header, uncle, uncleParent)
|
||||||
|
|
||||||
func isGenesis(currBlock: PlainBlock): bool =
|
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 =
|
proc validateBlock(chainDB: BaseChainDB, currBlock: PlainBlock, checkSeal: bool): bool =
|
||||||
if currBlock.isGenesis:
|
if currBlock.isGenesis:
|
||||||
|
|
Loading…
Reference in New Issue