OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e03bd8
)
fix
author
mars
<mars@bytom.io>
Thu, 25 Jul 2019 07:21:32 +0000
(15:21 +0800)
committer
mars
<mars@bytom.io>
Thu, 25 Jul 2019 07:21:32 +0000
(15:21 +0800)
toolbar/vote_reward/settlementvotereward/settlementreward.go
patch
|
blob
|
history
diff --git
a/toolbar/vote_reward/settlementvotereward/settlementreward.go
b/toolbar/vote_reward/settlementvotereward/settlementreward.go
index
c01e49f
..
da25681
100644
(file)
--- a/
toolbar/vote_reward/settlementvotereward/settlementreward.go
+++ b/
toolbar/vote_reward/settlementvotereward/settlementreward.go
@@
-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))