mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
bal-related fixes for the downloader
This commit is contained in:
parent
8e028f3757
commit
8e8371056a
1 changed files with 4 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ type fetchResult struct {
|
|||
Transactions types.Transactions
|
||||
Receipts rlp.RawValue
|
||||
Withdrawals types.Withdrawals
|
||||
AccessList *bal.BlockAccessList
|
||||
}
|
||||
|
||||
func newFetchResult(header *types.Header, snapSync bool) *fetchResult {
|
||||
|
|
@ -101,6 +102,7 @@ func (f *fetchResult) body() types.Body {
|
|||
Transactions: f.Transactions,
|
||||
Uncles: f.Uncles,
|
||||
Withdrawals: f.Withdrawals,
|
||||
AccessList: f.AccessList,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -599,7 +601,7 @@ func (q *queue) DeliverBodies(id string, txLists [][]*types.Transaction, txListH
|
|||
if blockAccessLists[index] == nil {
|
||||
return errInvalidBody
|
||||
}
|
||||
if accessListHashes[index] != header.Hash() {
|
||||
if accessListHashes[index] != *header.BlockAccessListHash {
|
||||
return errInvalidBody
|
||||
}
|
||||
}
|
||||
|
|
@ -641,6 +643,7 @@ func (q *queue) DeliverBodies(id string, txLists [][]*types.Transaction, txListH
|
|||
result.Transactions = txLists[index]
|
||||
result.Uncles = uncleLists[index]
|
||||
result.Withdrawals = withdrawalLists[index]
|
||||
result.AccessList = blockAccessLists[index]
|
||||
result.SetBodyDone()
|
||||
}
|
||||
return q.deliver(id, q.blockTaskPool, q.blockTaskQueue, q.blockPendPool,
|
||||
|
|
|
|||
Loading…
Reference in a new issue