diff --git a/eth/filters/trace_api.go b/eth/filters/trace_api.go index ab4ca9b0c24d..d910d5dcbdce 100644 --- a/eth/filters/trace_api.go +++ b/eth/filters/trace_api.go @@ -66,7 +66,7 @@ func (api *FilterAPI) NewPendingTransactionsWithTrace(ctx context.Context, trace // first. defer func() { if r := recover(); r != nil { - log.Error("pending_txs_stream panic:", r) + log.Error("pending_txs_stream panic:", "err", r) } }() @@ -197,7 +197,7 @@ func (api *FilterAPI) NewFullBlocksWithTrace(ctx context.Context, tracerOptsJSON // first. defer func() { if r := recover(); r != nil { - log.Error("block_stream panic:", r) + log.Error("block_stream panic:", "err", r) } }() @@ -294,6 +294,7 @@ func traceTx(tx *types.Transaction, message *core.Message, txCtx *tracers.Contex vmenv := vm.NewEVM(vmctx, core.NewEVMTxContext(message), statedb, chainConfig, vm.Config{Tracer: hooks, NoBaseFee: true}) statedb.SetTxContext(txCtx.TxHash, txCtx.TxIndex) + hooks.BlockNativeInitHook(vmenv) hooks.OnTxStart(vmenv.GetVMContext(), tx, message.From) result, err := core.ApplyMessage(vmenv, message, new(core.GasPool).AddGas(message.GasLimit)) if err != nil { @@ -323,6 +324,7 @@ func traceBlockTx(tx *types.Transaction, message *core.Message, txCtx *tracers.C vmenv := vm.NewEVM(vmctx, core.NewEVMTxContext(message), statedb, chainConfig, vm.Config{Tracer: hooks, NoBaseFee: false}) statedb.SetTxContext(txCtx.TxHash, txCtx.TxIndex) + hooks.BlockNativeInitHook(vmenv) hooks.OnTxStart(vmenv.GetVMContext(), tx, message.From) result, err := core.ApplyMessage(vmenv, message, new(core.GasPool).AddGas(message.GasLimit)) if err != nil {