eth/downloader: fix empty-body case in queue fetchresult (#26707)

pull/26708/head
Martin Holst Swende 2 years ago committed by GitHub
parent 645e3e86c4
commit 13d7de77f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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)

Loading…
Cancel
Save