Skip to content

Commit

Permalink
eth/downloader: fix empty-body case in queue fetchresult (#26707)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman authored Feb 16, 2023
1 parent 645e3e8 commit 13d7de7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13d7de7

Please sign in to comment.