mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
beacon/types: add some comments
This commit is contained in:
parent
63471ba7cc
commit
aa33dcf3ec
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue