cmd/evm: print state root for jsonl format

pull/30633/head
lightclient 2 days ago
parent 092b99f49f
commit 2ae47cf2c9
No known key found for this signature in database
GPG Key ID: 75C916AFEE20183E
  1. 1
      cmd/evm/staterunner.go

@ -131,6 +131,7 @@ func runStateTest(ctx *cli.Context, fname string) ([]testResult, error) {
if state.StateDB != nil {
root = state.StateDB.IntermediateRoot(false)
result.Root = &root
fmt.Fprintf(os.Stderr, "{\"stateRoot\": \"%#x\"}\n", root)
// Dump any state to aid debugging.
if ctx.Bool(DumpFlag.Name) {
result.State = dump(state.StateDB)

Loading…
Cancel
Save