diff --git a/core/state_processor.go b/core/state_processor.go index 44224958dd..6972f6d9f3 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -183,7 +183,7 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo func ProcessBeaconBlockRoot(beaconRoot common.Hash, vmenv *vm.EVM, statedb *state.StateDB) { if tracer := vmenv.Config.Tracer; tracer != nil { if tracer.OnSystemCallStart != nil { - tracer.OnSystemCallStart() + tracer.OnSystemCallStart(vmenv.GetVMContext()) } if tracer.OnSystemCallEnd != nil { defer tracer.OnSystemCallEnd() @@ -212,7 +212,7 @@ func ProcessBeaconBlockRoot(beaconRoot common.Hash, vmenv *vm.EVM, statedb *stat func ProcessParentBlockHash(prevHash common.Hash, vmenv *vm.EVM, statedb *state.StateDB) { if tracer := vmenv.Config.Tracer; tracer != nil { if tracer.OnSystemCallStart != nil { - tracer.OnSystemCallStart() + tracer.OnSystemCallStart(vmenv.GetVMContext()) } if tracer.OnSystemCallEnd != nil { defer tracer.OnSystemCallEnd() diff --git a/core/tracing/hooks.go b/core/tracing/hooks.go index aa66dc49ff..43a72162e8 100644 --- a/core/tracing/hooks.go +++ b/core/tracing/hooks.go @@ -142,7 +142,7 @@ type ( // // Note that system call happens outside normal transaction execution, so the `OnTxStart/OnTxEnd` hooks // will not be invoked. - OnSystemCallStartHook = func() + OnSystemCallStartHook = func(vm *VMContext) // OnSystemCallEndHook is called when a system call has finished executing. Today, // this hook is invoked when the EIP-4788 system call is about to be executed to set the diff --git a/eth/tracers/logger/logger_json.go b/eth/tracers/logger/logger_json.go index 797f7ac658..de021e74be 100644 --- a/eth/tracers/logger/logger_json.go +++ b/eth/tracers/logger/logger_json.go @@ -127,7 +127,7 @@ func (l *jsonLogger) OnOpcode(pc uint64, op byte, gas, cost uint64, scope tracin l.encoder.Encode(log) } -func (l *jsonLogger) onSystemCallStart() { +func (l *jsonLogger) onSystemCallStart(_ *tracing.VMContext) { // Process no events while in system call. hooks := *l.hooks *l.hooks = tracing.Hooks{