Skip to content

Commit

Permalink
Fix import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Feb 7, 2020
1 parent ba54467 commit f244881
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion core/state/candidates/candidates.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,10 @@ func (c *Candidates) Punish(height uint64, address types.TmAddress) *big.Int {
func (c *Candidates) SetStakes(pubkey types.Pubkey, stakes []types.Stake) {
candidate := c.GetCandidate(pubkey)
candidate.stakesCount = len(stakes)
for i := 0; i < len(stakes); i++ {
if candidate.stakesCount > 1000 {
candidate.stakesCount = 1000
}
for i := 0; i < candidate.stakesCount; i++ {
stake := stakes[i]
candidate.stakes[i] = &Stake{
Owner: stake.Owner,
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (

var (
// Must be a string because scripts like dist.sh read this file.
Version = "1.1.0-beta10"
Version = "1.1.0-beta11"

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

0 comments on commit f244881

Please sign in to comment.