Documentation ¶
Index ¶
- func CalcBaseFee(configObj *config.ChainConfig, parent *model.Header) *big.Int
- func VerifyEip1559Header(configObj *config.ChainConfig, parent, header *model.Header) error
- func VerifyForkHashes(*config.ChainConfig, *model.Header, bool) error
- func VerifyGaslimit(parentGasLimit, headerGasLimit uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcBaseFee ¶
CalcBaseFee calculates the basefee of the header.
func VerifyEip1559Header ¶
func VerifyEip1559Header(configObj *config.ChainConfig, parent, header *model.Header) error
VerifyEip1559Header verifies some header attributes which were changed in EIP-1559, - gas limit check - basefee check
func VerifyForkHashes ¶
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 ¶
VerifyGaslimit verifies the header gas limit according increase/decrease in relation to the parent gas limit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.