run traceCall on top of state resulting from fully executed baseblock a.k.a. starting state of blockNumber+1 (#5555)

This commit is contained in:
bgelb 2022-09-28 00:30:58 -07:00 committed by GitHub
parent 711b619876
commit c28b1d230b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,7 +216,7 @@ func (api *PrivateDebugAPIImpl) TraceCall(ctx context.Context, args ethapi.CallA
}
stateReader = state.NewCachedReader2(cacheView, dbtx)
} else {
stateReader = state.NewPlainState(dbtx, blockNumber)
stateReader = state.NewPlainState(dbtx, blockNumber+1)
}
header := rawdb.ReadHeader(dbtx, hash, blockNumber)
if header == nil {