package misc

import "github.com/ethereum/go-ethereum/consensus/misc"

Index

Variables

var (
	// ErrBadProDAOExtra is returned if a header doesn't support the DAO fork on a
	// pro-fork client.
	ErrBadProDAOExtra = errors.New("bad DAO pro-fork extra-data")

	// ErrBadNoDAOExtra is returned if a header does support the DAO fork on a no-
	// fork client.
	ErrBadNoDAOExtra = errors.New("bad DAO no-fork extra-data")
)

Functions

func ApplyDAOHardFork

func ApplyDAOHardFork(statedb vm.StateDB)

ApplyDAOHardFork modifies the state database according to the DAO hard-fork rules, transferring all balances of a set of DAO accounts to a single refund contract.

func VerifyDAOHeaderExtraData

func VerifyDAOHeaderExtraData(config *params.ChainConfig, header *types.Header) error

VerifyDAOHeaderExtraData validates the extra-data field of a block header to ensure it conforms to DAO hard-fork rules.

DAO hard-fork extension to the header validity:

func VerifyGaslimit

func VerifyGaslimit(parentGasLimit, headerGasLimit uint64) error

VerifyGaslimit verifies the header gas limit according increase/decrease in relation to the parent gas limit.

Source Files

dao.go gaslimit.go

Directories

PathSynopsis
consensus/misc/eip1559
consensus/misc/eip4844
Version
v1.15.11 (latest)
Published
May 5, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
1 day ago

Tools for package owners.