Skip to content

Commit

Permalink
fix: api: skip evm events where we no longer have the associated txn (#…
Browse files Browse the repository at this point in the history
…11748)

This can happen if, e.g., we run a splitstore garbage collection.

fixes #11117
  • Loading branch information
Stebalien authored and LexLuthr committed Mar 26, 2024
1 parent 5979728 commit 25f9149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/impl/full/eth_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25f9149

Please sign in to comment.