Skip to content

Commit

Permalink
Fix bad receipts notification (#12260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored Oct 10, 2024
1 parent f24d092 commit 709c6ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion turbo/shards/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,5 +243,11 @@ func (r *RecentLogs) Add(receipts types.Receipts) {
}
r.mu.Lock()
defer r.mu.Unlock()
r.receipts[receipts[0].BlockNumber.Uint64()] = receipts
// find non-nil receipt
for _, receipt := range receipts {
if receipt != nil {
r.receipts[receipts[0].BlockNumber.Uint64()] = receipts
return
}
}
}

0 comments on commit 709c6ba

Please sign in to comment.