mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-05 17:45:56 +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
5f47ac4811
commit
963b446f57
1 changed files with 3 additions and 0 deletions
|
|
@ -985,6 +985,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