From e272839b8fb0ff4cf91047eeeb3ddcc1eda58532 Mon Sep 17 00:00:00 2001 From: Monika-Bitfly <181824500+Monika-Bitfly@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:47:27 +0000 Subject: [PATCH] updated Receipts len check --- db2/raw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db2/raw.go b/db2/raw.go index 45f5c11427..7e6d3c1ab3 100644 --- a/db2/raw.go +++ b/db2/raw.go @@ -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))) }