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 ¶
Click to show internal directories.
Click to hide internal directories.