extheader

package
v0.15.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2025 License: GPL-3.0, LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package extheader provides Lux-specific header extensions This wrapper allows us to add Lux-specific fields while maintaining compatibility with upstream ethereum types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	*ethTypes.Header             // pointer-embed → no data copy
	ExtDataHash      common.Hash `json:"extDataHash"      gencodec:"required"`
	ExtDataGasUsed   *big.Int    `json:"extDataGasUsed"   rlp:"optional"`
	BlockGasCost     *big.Int    `json:"blockGasCost"     rlp:"optional"`
}

Header carries canonical header + Lux extras.

func As

func As(h *ethTypes.Header) *Header

As converts a header to extheader, avoiding double-wrapping

func New

func New(h *ethTypes.Header) *Header

New creates a new extheader from a canonical header

func (*Header) Copy

func (h *Header) Copy() *Header

Copy creates a deep copy of the header

func (*Header) Upstream

func (h *Header) Upstream() *ethTypes.Header

Upstream returns the canonical header so shared code remains happy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL