mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
internal/ethapi: add BAL to rpc
This commit is contained in:
parent
73b84bb822
commit
85f5c21f87
1 changed files with 6 additions and 0 deletions
|
|
@ -994,6 +994,9 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
|
|||
if head.SlotNumber != nil {
|
||||
result["slotNumber"] = hexutil.Uint64(*head.SlotNumber)
|
||||
}
|
||||
if head.BlockAccessListHash != nil {
|
||||
result["blockAccessListHash"] = head.BlockAccessListHash
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
@ -1029,6 +1032,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
|
|||
if block.Withdrawals() != nil {
|
||||
fields["withdrawals"] = block.Withdrawals()
|
||||
}
|
||||
if block.AccessList() != nil {
|
||||
fields["blockAccessList"] = block.AccessList()
|
||||
}
|
||||
return fields
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue