From 2ae47cf2c9577ce5cf85a3afcc0d761d66e98294 Mon Sep 17 00:00:00 2001 From: lightclient Date: Thu, 21 Nov 2024 22:22:47 +0800 Subject: [PATCH] cmd/evm: print state root for jsonl format --- cmd/evm/staterunner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go index 79dacfef1b..323b7d60ab 100644 --- a/cmd/evm/staterunner.go +++ b/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)