forked from cerc-io/plugeth
eth/downloader: fix empty-body case in queue fetchresult (#26707)
This commit is contained in:
parent
645e3e86c4
commit
13d7de77f4
@ -76,6 +76,8 @@ func newFetchResult(header *types.Header, fastSync bool) *fetchResult {
|
|||||||
}
|
}
|
||||||
if !header.EmptyBody() {
|
if !header.EmptyBody() {
|
||||||
item.pending |= (1 << bodyType)
|
item.pending |= (1 << bodyType)
|
||||||
|
} else if header.WithdrawalsHash != nil {
|
||||||
|
item.Withdrawals = make(types.Withdrawals, 0)
|
||||||
}
|
}
|
||||||
if fastSync && !header.EmptyReceipts() {
|
if fastSync && !header.EmptyReceipts() {
|
||||||
item.pending |= (1 << receiptType)
|
item.pending |= (1 << receiptType)
|
||||||
|
Loading…
Reference in New Issue
Block a user