From 643724f2917342c1f06c53fd770b7797bc3c0306 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:01:32 +0800 Subject: [PATCH] fix: api: skip evm events where we no longer have the associated txn --- app/submodule/eth/eth_event_api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/submodule/eth/eth_event_api.go b/app/submodule/eth/eth_event_api.go index f71f0fa9cf..d7bce94001 100644 --- a/app/submodule/eth/eth_event_api.go +++ b/app/submodule/eth/eth_event_api.go @@ -654,6 +654,10 @@ func ethFilterResultFromEvents(evs []*filter.CollectedEvent, ms *chain.MessageSt if err != nil { return nil, err } + if log.TransactionHash == types.EmptyEthHash { + // We've garbage collected the message, ignore the events and continue. + continue + } c, err := ev.TipSetKey.Cid() if err != nil {