From aa33dcf3ecea548c950736f0336ca6c56e98ec9c Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 13 Mar 2024 23:07:23 +0100 Subject: [PATCH] beacon/types: add some comments --- beacon/types/exec_payload.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beacon/types/exec_payload.go b/beacon/types/exec_payload.go index dc3763b4b5..08bd4323ad 100644 --- a/beacon/types/exec_payload.go +++ b/beacon/types/exec_payload.go @@ -74,6 +74,7 @@ func convertPayload[T payloadType](payload T) (*types.Block, error) { } func convertCapellaHeader(payload *capella.ExecutionPayload, h *types.Header) { + // note: h.TxHash is set in convertTransactions h.ParentHash = common.Hash(payload.ParentHash) h.UncleHash = types.EmptyUncleHash h.Coinbase = common.Address(payload.FeeRecipient) @@ -92,6 +93,7 @@ func convertCapellaHeader(payload *capella.ExecutionPayload, h *types.Header) { } func convertDenebHeader(payload *deneb.ExecutionPayload, h *types.Header) { + // note: h.TxHash is set in convertTransactions h.ParentHash = common.Hash(payload.ParentHash) h.UncleHash = types.EmptyUncleHash h.Coinbase = common.Address(payload.FeeRecipient) @@ -110,6 +112,7 @@ func convertDenebHeader(payload *deneb.ExecutionPayload, h *types.Header) { // new in deneb h.BlobGasUsed = (*uint64)(&payload.BlobGasUsed) h.ExcessBlobGas = (*uint64)(&payload.ExcessBlobGas) + // TODO: h.ParentBeaconRoot } func convertTransactions(list zrntcommon.PayloadTransactions, execHeader *types.Header) ([]*types.Transaction, error) {