misc

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcBaseFee added in v1.8.0

func CalcBaseFee(config *params.ChainConfig, parent *types.Header, vmRunnerParent vm.EVMRunner) *big.Int

CalcBaseFee calculates the basefee for the header. If the gasPriceMinimum contract fails to retrieve the new gas price minimum, it uses the ethereum's default baseFee calculation

func CalcBaseFeeEthereum added in v1.8.0

func CalcBaseFeeEthereum(config *params.ChainConfig, parent *types.Header) *big.Int

CalcBaseFee calculates the basefee of the header.

func VerifyEip1559Header added in v1.8.0

func VerifyEip1559Header(config *params.ChainConfig, parent, header *types.Header, vmRunnerParent vm.EVMRunner) error

VerifyEip1559Header verifies some header attributes which were changed in EIP-1559 (Pt2, Gingerbread), - gas limit check - basefee check

func VerifyForkHashes

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

VerifyForkHashes verifies that blocks conforming to network hard-forks do have the correct hashes, to avoid clients going off on different chains. This is an optional feature.

func VerifyGaslimit added in v1.8.0

func VerifyGaslimit(headerGasLimit uint64, vmRunnerParent vm.EVMRunner) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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