From bf23bd8d84076ab3474490b09fd38358c5d6eb94 Mon Sep 17 00:00:00 2001 From: andri lim Date: Mon, 9 Sep 2019 22:48:38 +0700 Subject: [PATCH] fixes wrongNumber bug --- tests/test_blockchain_json.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_blockchain_json.nim b/tests/test_blockchain_json.nim index b2f5522a7..619305121 100644 --- a/tests/test_blockchain_json.nim +++ b/tests/test_blockchain_json.nim @@ -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: