fix test_blockchain_json lastBlockHash comparison
This commit is contained in:
parent
eff5de3046
commit
192646ca8a
|
@ -377,6 +377,7 @@ proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus, debugMode = fal
|
||||||
let header = com.db.getCanonicalHead()
|
let header = com.db.getCanonicalHead()
|
||||||
let lastBlockHash = header.blockHash
|
let lastBlockHash = header.blockHash
|
||||||
check lastBlockHash == tester.lastBlockHash
|
check lastBlockHash == tester.lastBlockHash
|
||||||
|
success = lastBlockHash == tester.lastBlockHash
|
||||||
if tester.postStateHash != Hash256():
|
if tester.postStateHash != Hash256():
|
||||||
let rootHash = tester.vmState.stateDB.rootHash
|
let rootHash = tester.vmState.stateDB.rootHash
|
||||||
if tester.postStateHash != rootHash:
|
if tester.postStateHash != rootHash:
|
||||||
|
|
Loading…
Reference in New Issue