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:
Sahil Sojitra 2026-03-13 23:34:04 +05:30 committed by GitHub
parent 3f1a3e8ea8
commit 79debd7566
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}