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
This commit is contained in:
Steven Allen 2024-03-20 09:15:20 -07:00 committed by GitHub
parent 02a8848b54
commit f11a6058b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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