Skip to content

Commit

Permalink
feat: apply VoterSetCounter (#31)
Browse files Browse the repository at this point in the history
* feat: introduce `VoterSetCounter`

* docs: update CHANGELOG
  • Loading branch information
0Tech authored Jan 28, 2022
1 parent ca84f94 commit 91c45ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Features

### Improvements
* (slashing) [\#31] (https://github.com/line/lbm/pull/31) Apply VoterSetCounter

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (app *LinkApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs [
app.SlashingKeeper.IterateValidatorSigningInfos(
ctx,
func(addr sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) (stop bool) {
info.StartHeight = 0
info.VoterSetCounter = 0
app.SlashingKeeper.SetValidatorSigningInfo(ctx, addr, info)
return false
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.15

require (
github.com/gorilla/mux v1.8.0
github.com/line/lbm-sdk v0.43.0-rc0
github.com/line/lbm-sdk v1.0.0-init.1.0.20211014094036-597550200cdf
github.com/line/ostracon v0.34.9-0.20210930060702-30b70e254d83
github.com/line/tm-db/v2 v2.0.0-init.1.0.20210824011847-fcfa67dd3c70
github.com/prometheus/client_golang v1.11.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ github.com/line/iavl/v2 v2.0.0-init.1.0.20210602045707-fddfe1f85001 h1:c2URk0zxM
github.com/line/iavl/v2 v2.0.0-init.1.0.20210602045707-fddfe1f85001/go.mod h1:0Xz+0i1nlB9lrjUDEwpDRhcmjfEAkOjd20dRb40FBso=
github.com/line/lbm-sdk v0.43.0-rc0 h1:pO1lVVnJrXCPDMZoUBanNsyHu3ilDrUm8uy7lRgLasc=
github.com/line/lbm-sdk v0.43.0-rc0/go.mod h1:CtoO7aEidYmFc/45nT4337QgjJ6R09sHXcjMwsSVAG0=
github.com/line/lbm-sdk v1.0.0-init.1.0.20211014094036-597550200cdf h1:0r4BXNU/0AdySP/1pMqrtvM9IUGTdZE46iyRvXgFBYg=
github.com/line/lbm-sdk v1.0.0-init.1.0.20211014094036-597550200cdf/go.mod h1:CtoO7aEidYmFc/45nT4337QgjJ6R09sHXcjMwsSVAG0=
github.com/line/ostracon v0.34.9-0.20210429084710-ef4fe0a40c7d/go.mod h1:ttnbq+yQJMQ9a2MT5SEisOoa/+pOgh2KenTiK/rVdiw=
github.com/line/ostracon v0.34.9-0.20210930060702-30b70e254d83 h1:WuIvAw43Jhcr/F8ZcLFBf8jGPGPA8MxIf5fo4sHhqnM=
github.com/line/ostracon v0.34.9-0.20210930060702-30b70e254d83/go.mod h1:elTiUFLvBz6Yaze+ZZLlbUnhqKWLJ7cMy/P9rSabafQ=
Expand Down

0 comments on commit 91c45ca

Please sign in to comment.