Skip to content

Commit ccc56fc

Browse files
authored
Merge pull request #844 from CortexFoundation/dev
api commit fix
2 parents aef1800 + 7d832ac commit ccc56fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctxc/api_tracer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (api *PrivateDebugAPI) traceChain(ctx context.Context, start, end *types.Bl
285285
break
286286
}
287287
// Finalize the state so any modifications are written to the trie
288-
root, err := statedb.Commit(true)
288+
root, err := statedb.Commit(api.ctxc.blockchain.Config().IsEIP158(block.Number()))
289289
if err != nil {
290290
failed = err
291291
break
@@ -522,7 +522,7 @@ func (api *PrivateDebugAPI) computeStateDB(block *types.Block, reexec uint64) (*
522522
return nil, err
523523
}
524524
// Finalize the state so any modifications are written to the trie
525-
root, err := statedb.Commit(true)
525+
root, err := statedb.Commit(api.ctxc.blockchain.Config().IsEIP158(block.Number()))
526526
if err != nil {
527527
return nil, err
528528
}

0 commit comments

Comments
 (0)