premix: fixes debug tool, dispose db changes
This commit is contained in:
parent
2f208c32e0
commit
601350d8d0
|
@ -20,6 +20,7 @@ proc executeBlock(blockEnv: JsonNode, memoryDB: TrieDatabaseRef, blockNumber: Ui
|
|||
body = chainDB.getBlockBody(header.blockHash)
|
||||
|
||||
let
|
||||
transaction = memoryDB.beginTransaction()
|
||||
vmState = newBaseVMState(parent, chainDB)
|
||||
validationResult = processBlock(chainDB, parent, header, body, vmState)
|
||||
|
||||
|
@ -28,6 +29,9 @@ proc executeBlock(blockEnv: JsonNode, memoryDB: TrieDatabaseRef, blockNumber: Ui
|
|||
else:
|
||||
info "block validation success", validationResult, blockNumber
|
||||
|
||||
# success or not dispose it
|
||||
transaction.dispose()
|
||||
|
||||
dumpDebuggingMetaData(chainDB, header, body, vmState, false)
|
||||
let
|
||||
fileName = "debug" & $blockNumber & ".json"
|
||||
|
|
Loading…
Reference in New Issue