From ef940688d032a404007b1516d8a3e8737d7b3e35 Mon Sep 17 00:00:00 2001 From: iczc Date: Fri, 26 Jul 2019 16:32:10 +0800 Subject: [PATCH 1/1] change interval --- toolbar/consensusreward/consensusreward.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolbar/consensusreward/consensusreward.go b/toolbar/consensusreward/consensusreward.go index 26494267..ab0b98fd 100644 --- a/toolbar/consensusreward/consensusreward.go +++ b/toolbar/consensusreward/consensusreward.go @@ -52,8 +52,8 @@ func (s *StandbyNodeReward) getStandbyNodeReward(height uint64) error { } func (s *StandbyNodeReward) Settlement() error { - for height := s.startHeight; height <= s.endHeight; height += consensus.ActiveNetParams.RoundVoteBlockNums { - if err := s.getStandbyNodeReward(height - consensus.ActiveNetParams.RoundVoteBlockNums); err != nil { + for height := s.startHeight; height < s.endHeight; height += consensus.ActiveNetParams.RoundVoteBlockNums { + if err := s.getStandbyNodeReward(height); err != nil { return err } } -- 2.11.0