Documentation ¶
Index ¶
- Constants
- func CalcEffectiveStakingPeriod(blockHeight uint64, stakingTx StakingTx) (period uint64)
- func CalcStakingNodeWeight(blockHeight uint64, stakingNode StakingNode) (*safetype.Uint128, error)
- func CalcTotalStakingWeight(blockHeight uint64, stakingNodes ...StakingNode) (*safetype.Uint128, error)
- func EnforceMASSIP0002(blockHeight uint64) bool
- func EnforceMASSIP0002WarmUp(blockHeight uint64) bool
- func GetBlockVersion(height uint64) uint64
- func GetRequiredBinding(nextHeight, plotSize uint64, massBitlength int, networkBinding massutil.Amount) (massutil.Amount, error)
- func SortStakingNodesByWeight(blockHeight uint64) bool
- type GenesisBindingPrices
- type NetworkBindingPrice
- type StakingNode
- type StakingTx
Constants ¶
View Source
const (
NumberOf32GOnePB = (1 << 50) >> 35
)
Variables ¶
This section is empty.
Functions ¶
func CalcStakingNodeWeight ¶
func CalcStakingNodeWeight(blockHeight uint64, stakingNode StakingNode) (*safetype.Uint128, error)
func CalcTotalStakingWeight ¶
func CalcTotalStakingWeight(blockHeight uint64, stakingNodes ...StakingNode) (*safetype.Uint128, error)
func EnforceMASSIP0002 ¶
1. Disable old binding, enfore new binding.
2. Allow set coinbase related to pool_pk.
3. Disallow minting without binding.
4. New reward logic.
5. Both MASS and Chia miner available.
func EnforceMASSIP0002WarmUp ¶
1. Disable old binding, enfore new binding.
2. Allow set coinbase related to pool_pk.
3. Base minting reward (no binding reward).
4. Only MASS miner available.
func GetBlockVersion ¶
func GetRequiredBinding ¶
Types ¶
type GenesisBindingPrices ¶
type NetworkBindingPrice ¶
type StakingNode ¶
Click to show internal directories.
Click to hide internal directories.