cmd/evm: print state root for jsonl format

This commit is contained in:
lightclient 2024-11-21 22:22:47 +08:00
parent 092b99f49f
commit 2ae47cf2c9
No known key found for this signature in database
GPG Key ID: 75C916AFEE20183E
1 changed files with 1 additions and 0 deletions

View File

@ -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)