mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
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.
This commit is contained in:
parent
2ce0200762
commit
185ed793ae
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue