Skip to content

Commit 13d7de7

Browse files
authored
eth/downloader: fix empty-body case in queue fetchresult (#26707)
1 parent 645e3e8 commit 13d7de7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eth/downloader/queue.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ func newFetchResult(header *types.Header, fastSync bool) *fetchResult {
7676
}
7777
if !header.EmptyBody() {
7878
item.pending |= (1 << bodyType)
79+
} else if header.WithdrawalsHash != nil {
80+
item.Withdrawals = make(types.Withdrawals, 0)
7981
}
8082
if fastSync && !header.EmptyReceipts() {
8183
item.pending |= (1 << receiptType)

0 commit comments

Comments
 (0)