Эх сурвалжийг харах

eth: fix EIP158 account cleanup on chain tracing (#19341)

Fixes #19337
Jonas 6 жил өмнө
parent
commit
dba336e612
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      eth/api_tracer.go

+ 1 - 1
eth/api_tracer.go

@@ -295,7 +295,7 @@ func (api *PrivateDebugAPI) traceChain(ctx context.Context, start, end *types.Bl
 				break
 			}
 			// Finalize the state so any modifications are written to the trie
-			root, err := statedb.Commit(true)
+			root, err := statedb.Commit(api.eth.chainConfig.IsEIP158(block.Number()))
 			if err != nil {
 				failed = err
 				break