From 185ed793ae596c7f536bc3e4dd37e034af9925de Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Thu, 9 Jul 2026 20:00:00 +0800 Subject: [PATCH] beacon/engine: attach block access list in ExecutableDataToBlockNoHash ExecutableDataToBlockNoHash rebuilt the block body but dropped the block access list payload. Preserve it when present so the reconstructed block matches the engine input. --- beacon/engine/types.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/beacon/engine/types.go b/beacon/engine/types.go index 980e8f9771..97225cbba2 100644 --- a/beacon/engine/types.go +++ b/beacon/engine/types.go @@ -347,7 +347,11 @@ func ExecutableDataToBlockNoHash(data ExecutableData, versionedHashes []common.H SlotNumber: data.SlotNumber, BlockAccessListHash: blockAccessListHash, } - return types.NewBlockWithHeader(header).WithBody(types.Body{Transactions: txs, Uncles: nil, Withdrawals: data.Withdrawals}), nil + block := types.NewBlockWithHeader(header).WithBody(types.Body{Transactions: txs, Uncles: nil, Withdrawals: data.Withdrawals}) + if data.BlockAccessList != nil { + block = block.WithAccessListUnsafe(data.BlockAccessList) + } + return block, nil } // BlockToExecutableData constructs the ExecutableData structure by filling the