Documentation ¶
Overview ¶
Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php
Index ¶
- Constants
- type BlockReward
- func (br *BlockReward) CalcMinerRateMount(blockReward *big.Int) (*big.Int, *big.Int, *big.Int)
- func (br *BlockReward) CalcMinerRewards(num uint64, parentHash common.Hash) map[common.Address]*big.Int
- func (br *BlockReward) CalcNodesRewards(blockReward *big.Int, Leader common.Address, num uint64, ...) map[common.Address]*big.Int
- func (br *BlockReward) CalcValidatorRateMount(blockReward *big.Int) (*big.Int, *big.Int, *big.Int)
- func (br *BlockReward) CalcValidatorRewards(Leader common.Address, num uint64) map[common.Address]*big.Int
- func (br *BlockReward) GetRewardCfg() *cfg.RewardCfg
Constants ¶
View Source
const (
PackageName = "奖励"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockReward ¶
type BlockReward struct {
// contains filtered or unexported fields
}
func New ¶
func New(chain util.ChainReader, rewardCfg *cfg.RewardCfg, st util.StateDB, interval *mc.BCIntervalInfo, foundationAccount common.Address, top *mc.TopologyGraph, elect *mc.ElectGraph) *BlockReward
func (*BlockReward) CalcMinerRateMount ¶
func (*BlockReward) CalcMinerRewards ¶
func (*BlockReward) CalcNodesRewards ¶
func (*BlockReward) CalcValidatorRateMount ¶
func (*BlockReward) CalcValidatorRewards ¶
func (*BlockReward) GetRewardCfg ¶
func (br *BlockReward) GetRewardCfg() *cfg.RewardCfg
Click to show internal directories.
Click to hide internal directories.