OSDN Git Service

fix
authormars <mars@bytom.io>
Thu, 25 Jul 2019 07:21:32 +0000 (15:21 +0800)
committermars <mars@bytom.io>
Thu, 25 Jul 2019 07:21:32 +0000 (15:21 +0800)
toolbar/vote_reward/settlementvotereward/settlementreward.go

index c01e49f..da25681 100644 (file)
@@ -117,6 +117,7 @@ func (s *SettlementReward) getStandbyNodeReward(height uint64) (uint64, error) {
        if err != nil {
                return 0, err
        }
+
        amount := big.NewInt(0).SetUint64(standbyNodesRewardForConsensusCycle)
        rewardRatio := big.NewInt(0).SetUint64(s.rewardCfg.RewardRatio)
        amount.Mul(amount, rewardRatio).Div(amount, big.NewInt(100))