diff --git a/eth/state_accessor.go b/eth/state_accessor.go index dbdc8cb22d..b8f63563a9 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -248,7 +248,7 @@ func (eth *Ethereum) stateAtTransaction(ctx context.Context, block *types.Block, // apply the upgrades to the [parent] state before returning it. func (eth *Ethereum) StateAtNextBlock(ctx context.Context, parent *types.Block, nextBlock *types.Block, reexec uint64, base *state.StateDB, readOnly bool, preferDisk bool) (*state.StateDB, tracers.StateReleaseFunc, error) { // Get state for [parent] - statedb, release, err := eth.StateAtBlock(ctx, parent, reexec, nil, true, false) + statedb, release, err := eth.StateAtBlock(ctx, parent, reexec, base, readOnly, preferDisk) if err != nil { return nil, nil, err } diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index 593cdfabd4..52a705c564 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -176,7 +176,7 @@ func (b *testBackend) StateAtBlock(ctx context.Context, block *types.Block, reex } func (b *testBackend) StateAtNextBlock(ctx context.Context, parent, nextBlock *types.Block, reexec uint64, base *state.StateDB, readOnly bool, preferDisk bool) (*state.StateDB, StateReleaseFunc, error) { - statedb, release, err := b.StateAtBlock(ctx, parent, reexec, nil, true, false) + statedb, release, err := b.StateAtBlock(ctx, parent, reexec, base, readOnly, preferDisk) if err != nil { return nil, nil, err }