misc

package
v0.13.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcBaseFee

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

CalcBaseFee calculates the basefee of the header taking into account the basefee ceiling

func CalculateReward

func CalculateReward() *big.Int

CalculateReward calculates the coinbase rewards depending on the type of the block regions = # of regions zones = # of zones For each prime = Reward/3 For each region = Reward/(3*regions*time-factor) For each zone = Reward/(3*regions*zones*time-factor^2)

func VerifyGaslimit

func VerifyGaslimit(parentGasLimit, headerGasLimit uint64) 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