From 13d7de77f40b2c2bdcece96a06f6b7f89c0026cf Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 16 Feb 2023 05:28:01 -0500 Subject: [PATCH] eth/downloader: fix empty-body case in queue fetchresult (#26707) --- eth/downloader/queue.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index dfb7c3e48..421d9d427 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -76,6 +76,8 @@ func newFetchResult(header *types.Header, fastSync bool) *fetchResult { } if !header.EmptyBody() { item.pending |= (1 << bodyType) + } else if header.WithdrawalsHash != nil { + item.Withdrawals = make(types.Withdrawals, 0) } if fastSync && !header.EmptyReceipts() { item.pending |= (1 << receiptType)