misc

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 5 Imported by: 4

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 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

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

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

func QiToQuai added in v0.29.0

func QiToQuai(currentHeader *types.WorkObjectHeader, 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.WorkObjectHeader, 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