Skip to content

Commit

Permalink
updated Receipts len check
Browse files Browse the repository at this point in the history
  • Loading branch information
Monika-Bitfly committed Oct 30, 2024
1 parent e4883a5 commit e272839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db2/raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (db RawStore) AddBlocks(blocks []FullBlockRawData) error {
Data: traces,
},
}
if len(fullBlock.Receipts) < 1 {
if len(fullBlock.Receipts) == 0 {
// todo move that log higher up
slog.Warn(fmt.Sprintf("empty receipts at block %d lRec %d lTxs %d", fullBlock.BlockNumber, len(fullBlock.Receipts), len(fullBlock.BlockTxs)))
}
Expand Down

0 comments on commit e272839

Please sign in to comment.