multicoinreward

package
v0.0.0-...-2f68b9a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageName = "多币种奖励"

	//todo: 分母10000, 加法做参数检查
	ValidatorsTxsRewardRate = uint64(util.RewardFullRate) //验证者交易奖励比例100%
	MinerTxsRewardRate      = uint64(0)                   //矿工交易奖励比例0%
	FoundationTxsRewardRate = uint64(0)                   //基金会交易奖励比例0%

	MinerOutRewardRate     = uint64(4000) //出块矿工奖励40%
	ElectedMinerRewardRate = uint64(6000) //当选矿工奖励60%

	LeaderRewardRate            = uint64(4000) //出块验证者(leader)奖励40%
	ElectedValidatorsRewardRate = uint64(6000) //当选验证者奖励60%

	OriginElectOfflineRewardRate = uint64(util.RewardFullRate) //初选下线验证者奖励50%
	BackupRate                   = uint64(0)                   //当前替补验证者奖励50%

)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiCoinReward

type MultiCoinReward struct {
	// contains filtered or unexported fields
}

func New

func New(chain util.ChainReader) *MultiCoinReward

func (*MultiCoinReward) CalcNodesReward

func (mcr *MultiCoinReward) CalcNodesReward(rewardMount *big.Int, currentnum uint64) map[common.Address]*big.Int

Jump to

Keyboard shortcuts

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