From b5f92bee006dd06fa7d0908a41351a3984c4fc52 Mon Sep 17 00:00:00 2001 From: Ceyhun Onur Date: Fri, 12 Jan 2024 20:00:04 +0300 Subject: [PATCH] pass configs to StateAtBlock (#1046) --- eth/state_accessor.go | 2 +- eth/tracers/api_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }