diff --git a/x/staking/client/cli/cli_test.go b/x/staking/client/cli/cli_test.go index 4f8fcf52f02e..f1ef9edc6b8a 100644 --- a/x/staking/client/cli/cli_test.go +++ b/x/staking/client/cli/cli_test.go @@ -858,7 +858,7 @@ func (s *IntegrationTestSuite) TestGetCmdQueryParams() { "with text output", []string{fmt.Sprintf("--%s=text", tmcli.OutputFlag)}, `bond_denom: stake -historical_entries: 100 +historical_entries: 10000 max_entries: 7 max_validators: 100 unbonding_time: 1814400s`, @@ -866,7 +866,7 @@ unbonding_time: 1814400s`, { "with json output", []string{fmt.Sprintf("--%s=json", tmcli.OutputFlag)}, - `{"unbonding_time":"1814400s","max_validators":100,"max_entries":7,"historical_entries":100,"bond_denom":"stake"}`, + `{"unbonding_time":"1814400s","max_validators":100,"max_entries":7,"historical_entries":10000,"bond_denom":"stake"}`, }, } for _, tc := range testCases { diff --git a/x/staking/simulation/genesis_test.go b/x/staking/simulation/genesis_test.go index 62926ba1f5e2..aba85cd2bf5f 100644 --- a/x/staking/simulation/genesis_test.go +++ b/x/staking/simulation/genesis_test.go @@ -43,7 +43,7 @@ func TestRandomizedGenState(t *testing.T) { require.Equal(t, uint32(207), stakingGenesis.Params.MaxValidators) require.Equal(t, uint32(7), stakingGenesis.Params.MaxEntries) - require.Equal(t, uint32(48), stakingGenesis.Params.HistoricalEntries) + require.Equal(t, uint32(8687), stakingGenesis.Params.HistoricalEntries) require.Equal(t, "stake", stakingGenesis.Params.BondDenom) require.Equal(t, float64(238280), stakingGenesis.Params.UnbondingTime.Seconds()) // check numbers of Delegations and Validators diff --git a/x/staking/simulation/params_test.go b/x/staking/simulation/params_test.go index cb52bba001c4..07da026645cf 100644 --- a/x/staking/simulation/params_test.go +++ b/x/staking/simulation/params_test.go @@ -21,7 +21,7 @@ func TestParamChanges(t *testing.T) { }{ {"staking/MaxValidators", "MaxValidators", "82", "staking"}, {"staking/UnbondingTime", "UnbondingTime", "\"275307000000000\"", "staking"}, - {"staking/HistoricalEntries", "HistoricalEntries", "29", "staking"}, + {"staking/HistoricalEntries", "HistoricalEntries", "9149", "staking"}, } paramChanges := simulation.ParamChanges(r) diff --git a/x/staking/types/params.go b/x/staking/types/params.go index a4f71802e8c4..549189fa4f69 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -26,10 +26,10 @@ const ( // Default maximum entries in a UBD/RED pair DefaultMaxEntries uint32 = 7 - // DefaultHistorical entries is 100. Apps that don't use IBC can ignore this + // DefaultHistorical entries is 10000. Apps that don't use IBC can ignore this // value by not adding the staking module to the application module manager's // SetOrderBeginBlockers. - DefaultHistoricalEntries uint32 = 100 + DefaultHistoricalEntries uint32 = 10000 ) var (