mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
rm traceCall beacon root insertion
This commit is contained in:
parent
e1637b32a5
commit
f7e87d1a89
1 changed files with 0 additions and 10 deletions
|
|
@ -935,16 +935,6 @@ func (api *API) TraceCall(ctx context.Context, args ethapi.TransactionArgs, bloc
|
|||
}
|
||||
defer release()
|
||||
|
||||
// Apply only when we have used StateAtBlock since `StateAtTransaction` already handles the beacon root
|
||||
if config == nil || config.TxIndex == nil {
|
||||
if beaconRoot := block.BeaconRoot(); beaconRoot != nil {
|
||||
context := core.NewEVMBlockContext(block.Header(), api.chainContext(ctx), nil)
|
||||
vmenv := vm.NewEVM(context, vm.TxContext{}, statedb, api.backend.ChainConfig(), vm.Config{})
|
||||
|
||||
core.ProcessBeaconBlockRoot(*block.BeaconRoot(), vmenv, statedb)
|
||||
}
|
||||
}
|
||||
|
||||
vmctx := core.NewEVMBlockContext(block.Header(), api.chainContext(ctx), nil)
|
||||
// Apply the customization rules if required.
|
||||
if config != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue