activates verifyStateDB

This commit is contained in:
andri lim 2019-09-07 17:35:36 +07:00 committed by zah
parent 7c65b8a2b2
commit 49a6f84ac9
1 changed files with 3 additions and 3 deletions

View File

@ -345,9 +345,9 @@ proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus, debugMode = fal
tester.debugMode = debugMode
tester.runTester(chainDB, testStatusIMPL)
#latest_block_hash = chain.get_canonical_block_by_number(chain.get_block().number - 1).hash
#if latest_block_hash != fixture['lastblockhash']:
#verifyStateDB(fixture["postState"], vmState.readOnlyStateDB)
let latestBlockHash = chainDB.getCanonicalHead().blockHash
if latestBlockHash != tester.lastBlockHash:
verifyStateDB(fixture["postState"], vmState.readOnlyStateDB)
proc main() =
if paramCount() == 0: