mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
return block access lists in GetPayloadBodies*V2
This commit is contained in:
parent
d87d3195d9
commit
ef0a3a2a3b
2 changed files with 7 additions and 2 deletions
|
|
@ -403,8 +403,9 @@ func BlockToExecutableData(block *types.Block, fees *big.Int, sidecars []*types.
|
|||
|
||||
// ExecutionPayloadBody is used in the response to GetPayloadBodiesByHash and GetPayloadBodiesByRange
|
||||
type ExecutionPayloadBody struct {
|
||||
TransactionData []hexutil.Bytes `json:"transactions"`
|
||||
Withdrawals []*types.Withdrawal `json:"withdrawals"`
|
||||
TransactionData []hexutil.Bytes `json:"transactions"`
|
||||
Withdrawals []*types.Withdrawal `json:"withdrawals"`
|
||||
AccessList *bal.BlockAccessList `json:"blockAccessList"`
|
||||
}
|
||||
|
||||
// Client identifiers to support ClientVersionV1.
|
||||
|
|
|
|||
|
|
@ -1178,6 +1178,10 @@ func getBody(block *types.Block) *engine.ExecutionPayloadBody {
|
|||
result.Withdrawals = []*types.Withdrawal{}
|
||||
}
|
||||
|
||||
if block.AccessList() != nil {
|
||||
result.AccessList = block.AccessList()
|
||||
}
|
||||
|
||||
return &result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue