misc

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-3.0 Imports: 4 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.WorkObject) *big.Int

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

func CalculateReward

func CalculateReward(header *types.WorkObject) *big.Int

func FindMinDenominations added in v0.29.0

func FindMinDenominations(reward *big.Int) map[uint8]uint8

FindMinDenominations finds the minimum number of denominations to make up the reward

func QiToQuai added in v0.29.0

func QiToQuai(currentHeader *types.WorkObject, qiAmt *big.Int) *big.Int

Calculate the amount of Quai that Qi can be converted to. Expect the current Header and the Qi amount in "qits", returns the quai amount in "its"

func QuaiToQi added in v0.29.0

func QuaiToQi(currentHeader *types.WorkObject, quaiAmt *big.Int) *big.Int

Calculate the amount of Qi that Quai can be converted to. Expect the current Header and the Quai amount in "its", returns the Qi amount in "qits"

Types

This section is empty.

Jump to

Keyboard shortcuts

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