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
d45a9771ed
commit
a0f2390745
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 {
|
if head.SlotNumber != nil {
|
||||||
result["slotNumber"] = hexutil.Uint64(*head.SlotNumber)
|
result["slotNumber"] = hexutil.Uint64(*head.SlotNumber)
|
||||||
}
|
}
|
||||||
|
if head.BlockAccessListHash != nil {
|
||||||
|
result["blockAccessListHash"] = head.BlockAccessListHash
|
||||||
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1029,6 +1032,9 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
|
||||||
if block.Withdrawals() != nil {
|
if block.Withdrawals() != nil {
|
||||||
fields["withdrawals"] = block.Withdrawals()
|
fields["withdrawals"] = block.Withdrawals()
|
||||||
}
|
}
|
||||||
|
if block.AccessList() != nil {
|
||||||
|
fields["blockAccessList"] = block.AccessList()
|
||||||
|
}
|
||||||
return fields
|
return fields
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue