Skip to content

Commit

Permalink
Merge pull request #97 from MinterTeam/dev
Browse files Browse the repository at this point in the history
v0.3.2
  • Loading branch information
danil-lashin authored Sep 8, 2018
2 parents 39188de + 72f5de8 commit 5308b68
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
Expand Up @@ -4,6 +4,13 @@

- [api] Add validators rewards to block api

## 0.3.2
*Sept 8th, 2018*

BUG FIXES

- [core] Fix null pointer exception

## 0.3.1
*Sept 8th, 2018*

Expand Down
4 changes: 4 additions & 0 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,10 @@ func (s *StateDB) PayRewards() {
for j := range candidate.Stakes {
stake := candidate.Stakes[j]

if stake.BipValue == nil {
continue
}

reward := big.NewInt(0).Set(totalReward)
reward.Mul(reward, stake.BipValue)
reward.Div(reward, validator.TotalBipStake)
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 = "1"
Fix = "2"
)

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

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

0 comments on commit 5308b68

Please sign in to comment.