Documentation
¶
Index ¶
- func CalcBaseFee(config *params.ChainConfig, parent *types.WorkObject) *big.Int
- func CalcStateLimit(parent *types.WorkObject, stateCeil uint64) uint64
- func CalculateQiReward(header *types.WorkObjectHeader) *big.Int
- func CalculateQuaiReward(header *types.WorkObjectHeader) *big.Int
- func CalculateReward(header *types.WorkObjectHeader) *big.Int
- func FindMinDenominations(reward *big.Int) map[uint8]uint64
- func QiToQuai(currentHeader *types.WorkObjectHeader, qiAmt *big.Int) *big.Int
- func QuaiToQi(currentHeader *types.WorkObjectHeader, quaiAmt *big.Int) *big.Int
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 CalcStateLimit ¶ added in v0.32.0
func CalcStateLimit(parent *types.WorkObject, stateCeil uint64) uint64
func CalculateQiReward ¶ added in v0.32.0
func CalculateQiReward(header *types.WorkObjectHeader) *big.Int
CalculateQiReward caculates the qi that can be received for mining a block and returns value in qits
func CalculateQuaiReward ¶ added in v0.32.0
func CalculateQuaiReward(header *types.WorkObjectHeader) *big.Int
CalculateQuaiReward calculates the quai that can be recieved for mining a block and returns value in its
func CalculateReward ¶
func CalculateReward(header *types.WorkObjectHeader) *big.Int
func FindMinDenominations ¶ added in v0.29.0
FindMinDenominations finds the minimum number of denominations to make up the reward
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.