mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-17 08:30:39 +00:00
rpc: add blockAccessListHash to RPC block header response (#33994)
Adds support for returning `blockAccessListHash` in the RPC block header response. This change includes `blockAccessListHash` in `RPCMarshalHeader` when `head.BlockAccessListHash` is not nil, aligning the RPC output with the Header struct which already contains this field.
This commit is contained in:
parent
3f1a3e8ea8
commit
79debd7566
1 changed files with 3 additions and 0 deletions
|
|
@ -969,6 +969,9 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
|
|||
if head.RequestsHash != nil {
|
||||
result["requestsHash"] = head.RequestsHash
|
||||
}
|
||||
if head.BlockAccessListHash != nil {
|
||||
result["blockAccessListHash"] = head.BlockAccessListHash
|
||||
}
|
||||
if head.SlotNumber != nil {
|
||||
result["slotNumber"] = hexutil.Uint64(*head.SlotNumber)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue