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 Jared Wasinger
parent 5f47ac4811
commit 963b446f57

View file

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