From 487513a390cd39a9a9881371cf6d3ac16d44bf43 Mon Sep 17 00:00:00 2001 From: iczc Date: Fri, 26 Jul 2019 16:58:36 +0800 Subject: [PATCH 1/1] change interval (#360) * change interval * update * delete unused --- toolbar/consensusreward/consensusreward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbar/consensusreward/consensusreward.go b/toolbar/consensusreward/consensusreward.go index 26494267..327bf024 100644 --- a/toolbar/consensusreward/consensusreward.go +++ b/toolbar/consensusreward/consensusreward.go @@ -52,7 +52,7 @@ func (s *StandbyNodeReward) getStandbyNodeReward(height uint64) error { } func (s *StandbyNodeReward) Settlement() error { - for height := s.startHeight; height <= s.endHeight; height += consensus.ActiveNetParams.RoundVoteBlockNums { + for height := s.startHeight + consensus.ActiveNetParams.RoundVoteBlockNums; height <= s.endHeight; height += consensus.ActiveNetParams.RoundVoteBlockNums { if err := s.getStandbyNodeReward(height - consensus.ActiveNetParams.RoundVoteBlockNums); err != nil { return err } -- 2.11.0