Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
boehla committed Oct 6, 2016
2 parents b08b1a4 + 509b5f4 commit cd37458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/redis.go
Expand Up @@ -519,7 +519,7 @@ func (r *RedisClient) WriteReward(login string, amount int64, percent *big.Rat,
_, err := tx.Exec(func() error {
tx.ZAdd(r.formatKey("rewards", login), redis.Z{Score: float64(block.Height), Member: addStr})
tx.ZRem(r.formatKey("rewards", login), remStr)
tx.ZRemRangeByRank(r.formatKey("rewards", login), 20, -1)
tx.ZRemRangeByRank(r.formatKey("rewards", login), 0, -100)
return nil
})
return err
Expand Down
2 changes: 1 addition & 1 deletion www/app/templates/account/rewards.hbs
@@ -1,5 +1,5 @@
<div class="container">
{{#if model.payments}}
{{#if model.rewards}}
<h4>Your Latest Rewards</h4>
<span class="label label-default">Immature</span> <span class="label label-success">Matured</span>
<table class="table table-condensed table-striped">
Expand Down

0 comments on commit cd37458

Please sign in to comment.