eip4844

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: GPL-3.0 Imports: 6 Imported by: 167

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcBlobFee

func CalcBlobFee(config *params.ChainConfig, header *types.Header) *big.Int

CalcBlobFee calculates the blobfee from the header's excess blob gas field.

func CalcExcessBlobGas

func CalcExcessBlobGas(config *params.ChainConfig, parent *types.Header, headTimestamp uint64) uint64

CalcExcessBlobGas calculates the excess blob gas after applying the set of blobs on top of the excess blob gas.

func LatestMaxBlobsPerBlock added in v1.15.0

func LatestMaxBlobsPerBlock(cfg *params.ChainConfig) int

LatestMaxBlobsPerBlock returns the latest max blobs per block defined by the configuration, regardless of the currently active fork.

func MaxBlobGasPerBlock added in v1.15.0

func MaxBlobGasPerBlock(cfg *params.ChainConfig, time uint64) uint64

MaxBlobsPerBlock returns the maximum blob gas that can be spent in a block at the given timestamp.

func MaxBlobsPerBlock added in v1.15.0

func MaxBlobsPerBlock(cfg *params.ChainConfig, time uint64) int

MaxBlobsPerBlock returns the max blobs per block for a block at the given timestamp.

func VerifyEIP4844Header

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

VerifyEIP4844Header verifies the presence of the excessBlobGas field and that if the current block contains no transactions, the excessBlobGas is updated accordingly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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