mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
disable fee market for kava v0_17 migration (#1237)
This commit is contained in:
parent
2491f0116d
commit
ff115c8cf4
@ -62,6 +62,8 @@ func migrateAppState(appState genutiltypes.AppMap, clientCtx client.Context) {
|
||||
|
||||
// x/feemarket
|
||||
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)
|
||||
|
||||
// x/authz
|
||||
|
@ -75,7 +75,10 @@ func TestMigrateFeeMarket(t *testing.T) {
|
||||
var genstate feemarkettypes.GenesisState
|
||||
err := ctx.Codec.UnmarshalJSON(appMap[feemarkettypes.ModuleName], &genstate)
|
||||
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) {
|
||||
|
2
migrate/v0_17/testdata/genesis-v17.json
vendored
2
migrate/v0_17/testdata/genesis-v17.json
vendored
@ -2259,7 +2259,7 @@
|
||||
"upgrade": {},
|
||||
"feemarket": {
|
||||
"params": {
|
||||
"no_base_fee": false,
|
||||
"no_base_fee": true,
|
||||
"base_fee_change_denominator": 8,
|
||||
"elasticity_multiplier": 2,
|
||||
"enable_height": "0",
|
||||
|
Loading…
Reference in New Issue
Block a user