From f7e87d1a898d24614d9f39c918a41ea2d615a0d7 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 16 Apr 2024 12:26:16 +0200 Subject: [PATCH] rm traceCall beacon root insertion --- eth/tracers/api.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/eth/tracers/api.go b/eth/tracers/api.go index 3ef459168f..d522030cfc 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -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 {