From 4fff2e917be9373d4034a677df01fa918aa23518 Mon Sep 17 00:00:00 2001 From: Alexgao001 Date: Mon, 29 Jul 2024 17:37:06 +0800 Subject: [PATCH] debug panic bsc --- eth/downloader/fetchers_concurrent_bodies.go | 1 - eth/downloader/queue.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/eth/downloader/fetchers_concurrent_bodies.go b/eth/downloader/fetchers_concurrent_bodies.go index 2141b63735..49f3644fd9 100644 --- a/eth/downloader/fetchers_concurrent_bodies.go +++ b/eth/downloader/fetchers_concurrent_bodies.go @@ -100,7 +100,6 @@ func (q *bodyQueue) deliver(peer *peerConnection, packet *eth.Response) (int, er peer.log.Trace("Delivered new batch of bodies", "count", len(txs), "accepted", accepted) default: peer.log.Debug("Failed to deliver retrieved bodies", "err", err) - panic(err) } return accepted, err } diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 6abdbff0c5..2cabd528ca 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -798,13 +798,13 @@ func (q *queue) DeliverBodies(id string, txLists [][]*types.Transaction, txListH } } else { // non-nil hash: body must have withdrawals - log.Info("Withdrawals list len", len(withdrawalLists)) + //log.Info("Withdrawals list len", "len", len(withdrawalLists)) if withdrawalLists[index] == nil { log.Error("Withdrawals hash mismatch 2", "index", index, "header", header.Hash(), "want", header.WithdrawalsHash) return errInvalidBody } - log.Info("wd", "index", index, "hash", withdrawalListHashes[index]) + //log.Info("wd", "index", index, "hash", withdrawalListHashes[index]) if withdrawalListHashes[index] != *header.WithdrawalsHash { log.Error("Withdrawals hash mismatch 3", "index", index, "header", header.Hash(), "want", withdrawalListHashes[index]) return errInvalidBody