From 2ff5f62b6f29a6c58721ee4bd274804cb9c6b692 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Fri, 20 Dec 2024 16:19:23 -0500 Subject: [PATCH] Added a an extra logging for storage change in trace mode --- eth/tracers/firehose.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/eth/tracers/firehose.go b/eth/tracers/firehose.go index 0d8e574218..63b9893776 100644 --- a/eth/tracers/firehose.go +++ b/eth/tracers/firehose.go @@ -889,13 +889,10 @@ func (f *Firehose) OnOpcodeFault(pc uint64, op byte, gas, cost uint64, scope tra } func (f *Firehose) captureInterpreterStep(activeCall *pbeth.Call, pc uint64, op vm.OpCode, gas, cost uint64, _ tracing.OpContext, rData []byte, depth int, err error) { - _, _, _, _, _, _, _ = pc, op, gas, cost, rData, depth, err - if *f.applyBackwardCompatibility { // for call, we need to process the executed code here // since in old firehose executed code calculation depends if the code exist if activeCall.CallType == pbeth.CallType_CALL && !activeCall.ExecutedCode { - firehoseTrace("Intepreter step for callType_CALL") activeCall.ExecutedCode = len(activeCall.Input) > 0 } } else { @@ -1229,6 +1226,8 @@ func (f *Firehose) OnCodeChange(a common.Address, prevCodeHash common.Hash, prev } func (f *Firehose) OnStorageChange(a common.Address, k, prev, new common.Hash) { + firehoseTrace("storage changed (key=%s, before=%s after=%s)", k, prev, new) + f.ensureInBlockAndInTrxAndInCall() activeCall := f.callStack.Peek()