From a9927e34746946457471730f76b5e5dc1aad19b0 Mon Sep 17 00:00:00 2001 From: Daniil Lashin Date: Sat, 20 Apr 2019 10:19:30 +0300 Subject: [PATCH] Fix set candidate remainder issue --- CHANGELOG.md | 6 ++++++ core/state/statedb.go | 4 +++- version/version.go | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3459c75b..b98674c9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.19.3 + +BUG FIXES + +- [core] Fix set candidate remainder issue + ## 0.19.2 BUG FIXES diff --git a/core/state/statedb.go b/core/state/statedb.go index 294fdafbc..8024e897c 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -1009,7 +1009,9 @@ func (s *StateDB) PayRewards() { }) } - validator.AccumReward.Set(remainder) + if s.height < 41556 { + validator.AccumReward.Set(remainder) + } } } diff --git a/version/version.go b/version/version.go index 2877c444b..43076cfe3 100755 --- a/version/version.go +++ b/version/version.go @@ -4,14 +4,14 @@ package version const ( Maj = "0" Min = "19" - Fix = "2" + Fix = "3" AppVer = 4 ) var ( // Must be a string because scripts like dist.sh read this file. - Version = "0.19.2" + Version = "0.19.3" // GitCommit is the current HEAD set using ldflags. GitCommit string