Skip to content

Commit

Permalink
update mint,slashing params
Browse files Browse the repository at this point in the history
  • Loading branch information
colmazia committed Jan 15, 2025
1 parent 17a74d4 commit 60b7734
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/upgrades/v3/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,26 @@ func CreateUpgradeHandler(
return nil, err
}

mintParams, err := keepers.MintKeeper.Params.Get(ctx)
if err != nil {
return nil, err
}
mintParams.BlocksPerYear = 31557600
err = keepers.MintKeeper.Params.Set(ctx, mintParams)
if err != nil {
return nil, err
}

slashingParams, err := keepers.SlashingKeeper.GetParams(ctx)
if err != nil {
return nil, err
}
slashingParams.SignedBlocksWindow = 86400
err = keepers.SlashingKeeper.SetParams(ctx, slashingParams)
if err != nil {
return nil, err
}

hostParams := icahosttypes.Params{
HostEnabled: true,
// specifying the whole list instead of adding and removing. Less fragile.
Expand Down

0 comments on commit 60b7734

Please sign in to comment.