Skip to content

Commit

Permalink
debug panic bsc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Jul 29, 2024
1 parent 46d2ef3 commit 4fff2e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion eth/downloader/fetchers_concurrent_bodies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fff2e9

Please sign in to comment.