Skip to content

Commit

Permalink
print state root after transaction completion when '--jsontrace' is s…
Browse files Browse the repository at this point in the history
…pecified
  • Loading branch information
jwasinger committed Dec 12, 2017
1 parent 45d73f0 commit cc997c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/GeneralStateTestsRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ function runTestCase (options, testData, t, cb) {

console.log(JSON.stringify(opTrace))
})
vm.on('afterTx', function (results) {
let stateRoot = {
'stateRoot': results.vm.runState.stateManager.trie.root.toString('hex')
}
console.log(JSON.stringify(stateRoot))
})
}
vm.runTx({
tx: tx,
Expand Down

0 comments on commit cc997c8

Please sign in to comment.