Documentation
¶
Index ¶
- func CalcBlobFee(config *params.ChainConfig, header *types.Header) *big.Int
- func CalcExcessBlobGas(config *params.ChainConfig, parent *types.Header, headTimestamp uint64) uint64
- func LatestMaxBlobsPerBlock(cfg *params.ChainConfig) int
- func MaxBlobGasPerBlock(cfg *params.ChainConfig, time uint64) uint64
- func MaxBlobsPerBlock(cfg *params.ChainConfig, time uint64) int
- func VerifyEIP4844Header(config *params.ChainConfig, parent, header *types.Header) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcBlobFee ¶
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.