From dba336e6121578c001fde7f17c28454d1c1867bf Mon Sep 17 00:00:00 2001
From: Jonas <felberj@users.noreply.github.com>
Date: Wed, 27 Mar 2019 12:16:28 +0100
Subject: [PATCH] eth: fix EIP158 account cleanup on chain tracing (#19341)

Fixes #19337
---
 eth/api_tracer.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eth/api_tracer.go b/eth/api_tracer.go
index a529ea118..3a31db87e 100644
--- a/eth/api_tracer.go
+++ b/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
-- 
GitLab