From d9f529d0758c45ee249a0a3356668c115b2502ac Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 3 Jun 2025 13:12:56 +0200 Subject: [PATCH] remove debuggging code --- core/rawdb/accessors_chain.go | 3 --- eth/downloader/downloader.go | 1 - 2 files changed, 4 deletions(-) diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go index 008ecc438b..2386246caf 100644 --- a/core/rawdb/accessors_chain.go +++ b/core/rawdb/accessors_chain.go @@ -623,9 +623,6 @@ func WriteReceipts(db ethdb.KeyValueWriter, hash common.Hash, number uint64, rec // WriteRawReceipts stores all the transaction receipts belonging to a block. func WriteRawReceipts(db ethdb.KeyValueWriter, hash common.Hash, number uint64, receipts rlp.RawValue) { - if len(receipts) == 0 { - panic("empty receipts in snap sync block") - } // Store the flattened receipt slice if err := db.Put(blockReceiptsKey(number, hash), receipts); err != nil { log.Crit("Failed to store block receipts", "err", err) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 3c764c4674..2183cc0a4a 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -1043,7 +1043,6 @@ func (d *Downloader) commitSnapSyncData(results []*fetchResult, stateSync *state receipts[i] = rlp.EmptyList } } - fmt.Printf(">>>> Committing %d snap-sync blocks, first %d, last %d\n", len(results), first.Number.Uint64(), last.Number.Uint64()) if index, err := d.blockchain.InsertReceiptChain(blocks, receipts, d.ancientLimit); err != nil { log.Debug("Downloaded item processing failed", "number", results[index].Header.Number, "hash", results[index].Header.Hash(), "err", err) return fmt.Errorf("%w: %v", errInvalidChain, err)