From f11a6058b5f2c267266ee9e6c2161055830fb031 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 20 Mar 2024 09:15:20 -0700 Subject: [PATCH] fix: api: skip evm events where we no longer have the associated txn (#11748) This can happen if, e.g., we run a splitstore garbage collection. fixes #11117 --- node/impl/full/eth_events.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/impl/full/eth_events.go b/node/impl/full/eth_events.go index 81ecef64b..063590d8d 100644 --- a/node/impl/full/eth_events.go +++ b/node/impl/full/eth_events.go @@ -121,6 +121,10 @@ func ethFilterResultFromEvents(ctx context.Context, evs []*filter.CollectedEvent if err != nil { return nil, err } + if log.TransactionHash == ethtypes.EmptyEthHash { + // We've garbage collected the message, ignore the events and continue. + continue + } c, err := ev.TipSetKey.Cid() if err != nil { return nil, err