Skip to content

Commit

Permalink
Merge pull request #109 from MinterTeam/dev
Browse files Browse the repository at this point in the history
quick fix
  • Loading branch information
danil-lashin authored Sep 15, 2018
2 parents d748d36 + 41af9a8 commit 3a397da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.3.6
*Sept 15th, 2018*

BUG FIXES

- [core] Critical fix

## 0.3.5
*Sept 13th, 2018*

Expand Down
4 changes: 4 additions & 0 deletions core/state/state_candidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func (s *Stake) CalcBipValue(context *StateDB) *big.Int {
return big.NewInt(0).Set(s.Value)
}

if s.Value.Cmp(types.Big0) == 0 {
return big.NewInt(0)
}

if _, has := context.stakeCache[s.Coin]; !has {
totalStaked := big.NewInt(0)
candidates := context.getStateCandidates()
Expand Down
4 changes: 2 additions & 2 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package version
const (
Maj = "0"
Min = "3"
Fix = "5"
Fix = "6"
)

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

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

0 comments on commit 3a397da

Please sign in to comment.