From 3181acac69771e159f13ddeb44900d128180da66 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Tue, 12 Dec 2023 21:26:52 -0500 Subject: [PATCH] Added mistmatched transaction hash when log are not aligned --- eth/tracers/firehose.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eth/tracers/firehose.go b/eth/tracers/firehose.go index 76b494c359..1a822af362 100644 --- a/eth/tracers/firehose.go +++ b/eth/tracers/firehose.go @@ -317,7 +317,9 @@ func (f *Firehose) assignOrdinalAndIndexToReceiptLogs() { if len(callLogs) != len(receiptsLogs) { panic(fmt.Errorf( - "mismatch between Firehose call logs and Ethereum transaction receipt logs, transaction receipt has %d logs but there is %d Firehose call logs", + "mismatch between Firehose call logs and Ethereum transaction %s receipt logs at block #%d, transaction receipt has %d logs but there is %d Firehose call logs", + hex.EncodeToString(trx.Hash), + f.block.Number, len(receiptsLogs), len(callLogs), ))