Skip to content

Commit

Permalink
Slow down rejailing slightly (#889)
Browse files Browse the repository at this point in the history
* Slow down rejailing slightly

This is meant as a stop-gap until we get to a better solution.  Pigeons
are rejailed too quickly when unjailing.  We're slowing this process
down slightly by not checking quite as often

* Add this PR to Release Notes

---------

Co-authored-by: Tyler Ruppert <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
ToasterTheBrave and Tyler Ruppert authored Jun 20, 2023
1 parent f727999 commit 55d6ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* Upgrade gogoproto and cosmos-sdk by @ToasterTheBrave in https://github.com/palomachain/paloma/pull/874
* Lengthen the valset publish keep-warm time by @ToasterTheBrave in https://github.com/palomachain/paloma/pull/881
* Toaster/module updates by @ToasterTheBrave in https://github.com/palomachain/paloma/pull/882

* Slow down rejailing slightly by @ToasterTheBrave in https://github.com/palomachain/paloma/pull/888

**Full Changelog**: https://github.com/palomachain/paloma/compare/v1.3.0...v1.3.1
2 changes: 1 addition & 1 deletion x/valset/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.Val
}
}

if ctx.BlockHeight()%5 == 0 {
if ctx.BlockHeight()%10 == 0 {
if err := am.keeper.JailInactiveValidators(ctx); err != nil {
am.keeper.Logger(ctx).Error("error while jailing inactive validators", "error", err)
}
Expand Down

0 comments on commit 55d6ee1

Please sign in to comment.