From 55d6ee16b3bdcb79416fa25352dbb6a95f4dfdd1 Mon Sep 17 00:00:00 2001 From: Tyler Ruppert <524638+ToasterTheBrave@users.noreply.github.com> Date: Tue, 20 Jun 2023 09:17:36 -0600 Subject: [PATCH] Slow down rejailing slightly (#889) * 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> --- RELEASE_NOTES.md | 2 +- x/valset/module.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 4dfc9a74..15ed3b9e 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -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 diff --git a/x/valset/module.go b/x/valset/module.go index 6658087f..b82dea0c 100644 --- a/x/valset/module.go +++ b/x/valset/module.go @@ -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) }