From 8e1ef9a3ab8af076bfdb41a4574c635309cb7405 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Mon, 9 Jun 2025 14:41:23 -0400 Subject: [PATCH] Added tracing around production bug --- eth/tracers/firehose.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/tracers/firehose.go b/eth/tracers/firehose.go index dd7cdae87b..51cae04669 100644 --- a/eth/tracers/firehose.go +++ b/eth/tracers/firehose.go @@ -897,6 +897,7 @@ func (f *Firehose) removeLogBlockIndexOnStateRevertedCalls() { for _, call := range f.transaction.Calls { if call.StateReverted { for _, log := range call.Logs { + firehoseTrace("removing block index from log %s in reverted call %d", hex.EncodeToString(log.Address), call.Index) log.BlockIndex = 0 } } @@ -1711,7 +1712,7 @@ func (f *Firehose) OnLog(l *types.Log) { } // Polygon does add logs outside of a transaction to track native transfers, this is actually deprecated but we must support it - firehoseTrace("adding Polygon log to deferred call state (address=%s)", l.Address) + firehoseTrace("adding Polygon log to deferred call state (address=%s, blockIndex=%d)", l.Address, l.Index) f.deferredCallState.logs = append(f.deferredCallState.logs, log) } else { firehoseTrace("adding log to call (address=%s call=%d [has already %d logs])", l.Address, activeCall.Index, len(activeCall.Logs))