internal/ethapi: return parentBeaconBlockRoot

This commit is contained in:
Felix Lange 2023-08-25 19:01:23 +00:00
parent e923d73276
commit f1bd467430

View file

@ -1345,6 +1345,9 @@ func RPCMarshalHeader(head *types.Header) map[string]interface{} {
if head.ExcessBlobGas != nil {
result["excessBlobGas"] = hexutil.Uint64(*head.ExcessBlobGas)
}
if head.BeaconRoot != nil {
result["parentBeaconBlockRoot"] = head.BeaconRoot
}
return result
}