Documentation ¶
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) CalcRewardMountByNumber(blockReward *big.Int, num uint64, halfNum uint64, address 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) *BlockReward
func (*BlockReward) CalcMinerRateMount ¶
func (*BlockReward) CalcMinerRewards ¶
func (*BlockReward) CalcNodesRewards ¶
func (*BlockReward) CalcRewardMountByNumber ¶
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.