From 2b1e1751af4701c0eb26cf666351a11a49b1e31b Mon Sep 17 00:00:00 2001 From: rustdev Date: Tue, 9 Jan 2024 15:36:04 +0000 Subject: [PATCH] change BlocksPerEpoch param from 10 to 360 (30 mins) --- app/upgrades/v6_4/upgrade.go | 2 +- x/stakingmiddleware/types/genesis.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/upgrades/v6_4/upgrade.go b/app/upgrades/v6_4/upgrade.go index 825fab2f8..ca18f51f7 100644 --- a/app/upgrades/v6_4/upgrade.go +++ b/app/upgrades/v6_4/upgrade.go @@ -20,7 +20,7 @@ func CreateUpgradeHandler( ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { // Add params for custom middleware - custommiddlewareparams := customstmiddleware.Params{BlocksPerEpoch: 100, AllowUnbondAfterEpochProgressBlockNumber: 0} + custommiddlewareparams := customstmiddleware.Params{BlocksPerEpoch: 360, AllowUnbondAfterEpochProgressBlockNumber: 0} keepers.StakingMiddlewareKeeper.SetParams(ctx, custommiddlewareparams) return mm.RunMigrations(ctx, configurator, vm) diff --git a/x/stakingmiddleware/types/genesis.go b/x/stakingmiddleware/types/genesis.go index 0b7665f88..d9cf35fad 100644 --- a/x/stakingmiddleware/types/genesis.go +++ b/x/stakingmiddleware/types/genesis.go @@ -10,7 +10,7 @@ func NewGenesisState(params Params) *GenesisState { // DefaultGenesisState creates a default GenesisState object func DefaultGenesisState() *GenesisState { return &GenesisState{ - Params: Params{BlocksPerEpoch: 10, AllowUnbondAfterEpochProgressBlockNumber: 0}, + Params: Params{BlocksPerEpoch: 360, AllowUnbondAfterEpochProgressBlockNumber: 0}, } }