Skip to content

Commit

Permalink
Fix (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin authored Mar 15, 2019
1 parent 953615c commit 19084d3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.14.3

BUG FIXES

- [core] Temp fix for consensus failure

## 0.14.2

BUG FIXES
Expand Down
5 changes: 5 additions & 0 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,11 @@ func (s *StateDB) IsDelegatorStakeSufficient(sender types.Address, pubKey []byte
for _, candidate := range candidates.data {
if bytes.Equal(candidate.PubKey, pubKey) {
for _, stake := range candidate.Stakes[:MaxDelegatorsPerCandidate] {
// TODO: delete at v0.15.0
if stake.BipValue == nil {
continue
}

if stake.BipValue.Cmp(bipValue) == -1 {
return true
}
Expand Down
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ package version
const (
Maj = "0"
Min = "14"
Fix = "2"
Fix = "3"

AppVer = 2
)

var (
// Must be a string because scripts like dist.sh read this file.
Version = "0.14.2"
Version = "0.14.3"

// GitCommit is the current HEAD set using ldflags.
GitCommit string
Expand Down

0 comments on commit 19084d3

Please sign in to comment.