From 8e8371056a5cfb539275c09bb0217b27a1161d5e Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 6 Jan 2026 17:35:42 +0900 Subject: [PATCH] bal-related fixes for the downloader --- eth/downloader/queue.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index ac527b6d93..98516b141b 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -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,