disable fee market for kava v0_17 migration (#1237)

This commit is contained in:
Nick DeLuca 2022-05-03 10:47:14 -07:00 committed by GitHub
parent 2491f0116d
commit ff115c8cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -62,6 +62,8 @@ func migrateAppState(appState genutiltypes.AppMap, clientCtx client.Context) {
// x/feemarket // x/feemarket
feemarketState := feemarkettypes.DefaultGenesisState() feemarketState := feemarkettypes.DefaultGenesisState()
// disable fee market and use minimum-gas-price instead of dynamic base fee
feemarketState.Params.NoBaseFee = true
appState[feemarkettypes.ModuleName] = codec.MustMarshalJSON(feemarketState) appState[feemarkettypes.ModuleName] = codec.MustMarshalJSON(feemarketState)
// x/authz // x/authz

View File

@ -75,7 +75,10 @@ func TestMigrateFeeMarket(t *testing.T) {
var genstate feemarkettypes.GenesisState var genstate feemarkettypes.GenesisState
err := ctx.Codec.UnmarshalJSON(appMap[feemarkettypes.ModuleName], &genstate) err := ctx.Codec.UnmarshalJSON(appMap[feemarkettypes.ModuleName], &genstate)
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, genstate, *feemarkettypes.DefaultGenesisState())
expectedState := feemarkettypes.DefaultGenesisState()
expectedState.Params.NoBaseFee = true
assert.Equal(t, expectedState, &genstate)
} }
func TestMigrateAuthz(t *testing.T) { func TestMigrateAuthz(t *testing.T) {

View File

@ -2259,7 +2259,7 @@
"upgrade": {}, "upgrade": {},
"feemarket": { "feemarket": {
"params": { "params": {
"no_base_fee": false, "no_base_fee": true,
"base_fee_change_denominator": 8, "base_fee_change_denominator": 8,
"elasticity_multiplier": 2, "elasticity_multiplier": 2,
"enable_height": "0", "enable_height": "0",