cmd/evm: print state root for jsonl format
This commit is contained in:
parent
092b99f49f
commit
2ae47cf2c9
|
@ -131,6 +131,7 @@ func runStateTest(ctx *cli.Context, fname string) ([]testResult, error) {
|
||||||
if state.StateDB != nil {
|
if state.StateDB != nil {
|
||||||
root = state.StateDB.IntermediateRoot(false)
|
root = state.StateDB.IntermediateRoot(false)
|
||||||
result.Root = &root
|
result.Root = &root
|
||||||
|
fmt.Fprintf(os.Stderr, "{\"stateRoot\": \"%#x\"}\n", root)
|
||||||
// Dump any state to aid debugging.
|
// Dump any state to aid debugging.
|
||||||
if ctx.Bool(DumpFlag.Name) {
|
if ctx.Bool(DumpFlag.Name) {
|
||||||
result.State = dump(state.StateDB)
|
result.State = dump(state.StateDB)
|
||||||
|
|
Loading…
Reference in New Issue