Skip to content

Commit b5f92be

Browse files
authored
pass configs to StateAtBlock (#1046)
1 parent ca92121 commit b5f92be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eth/state_accessor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (eth *Ethereum) stateAtTransaction(ctx context.Context, block *types.Block,
248248
// apply the upgrades to the [parent] state before returning it.
249249
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) {
250250
// Get state for [parent]
251-
statedb, release, err := eth.StateAtBlock(ctx, parent, reexec, nil, true, false)
251+
statedb, release, err := eth.StateAtBlock(ctx, parent, reexec, base, readOnly, preferDisk)
252252
if err != nil {
253253
return nil, nil, err
254254
}

eth/tracers/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (b *testBackend) StateAtBlock(ctx context.Context, block *types.Block, reex
176176
}
177177

178178
func (b *testBackend) StateAtNextBlock(ctx context.Context, parent, nextBlock *types.Block, reexec uint64, base *state.StateDB, readOnly bool, preferDisk bool) (*state.StateDB, StateReleaseFunc, error) {
179-
statedb, release, err := b.StateAtBlock(ctx, parent, reexec, nil, true, false)
179+
statedb, release, err := b.StateAtBlock(ctx, parent, reexec, base, readOnly, preferDisk)
180180
if err != nil {
181181
return nil, nil, err
182182
}

0 commit comments

Comments
 (0)