• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision8ad88a0bc6a2e0b492ac7c9b652026777aaf9a7c (tree)
Time2019-07-26 17:22:43
Authoriczc <iczcalan@gmai...>
Commitericzc

Log Message

Change interval

Change Summary

Incremental Difference

--- a/toolbar/consensusreward/consensusreward.go
+++ b/toolbar/consensusreward/consensusreward.go
@@ -52,8 +52,8 @@ func (s *StandbyNodeReward) getStandbyNodeReward(height uint64) error {
5252 }
5353
5454 func (s *StandbyNodeReward) Settlement() error {
55- for height := s.startHeight; height <= s.endHeight; height += consensus.ActiveNetParams.RoundVoteBlockNums {
56- if err := s.getStandbyNodeReward(height - consensus.ActiveNetParams.RoundVoteBlockNums); err != nil {
55+ for height := s.startHeight; height < s.endHeight; height += consensus.ActiveNetParams.RoundVoteBlockNums {
56+ if err := s.getStandbyNodeReward(height); err != nil {
5757 return err
5858 }
5959 }
Show on old repository browser