Skip to content

Commit

Permalink
eth/downloader: fix empty-body case in queue fetchresult (ethereum#26707
Browse files Browse the repository at this point in the history
)
  • Loading branch information
holiman authored and shekhirin committed Jun 6, 2023
1 parent a6d572d commit 934e533
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 934e533

Please sign in to comment.