From a068fcb0a434234de16cdd8eb69849a14690290a Mon Sep 17 00:00:00 2001 From: stana-ethernal Date: Mon, 2 Dec 2024 09:43:10 +0100 Subject: [PATCH] cr fix --- UPGRADING.md | 3 +++ x/ccv/provider/client/cli/tx.go | 36 ++++++++++++++++----------------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 3ab564b48f..748995c23b 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -4,7 +4,10 @@ ### Provider +Upgrading a provider from v6.2.0 requires state migrations. The following migrators should be added to the upgrade handler of the provider chain: + ```golang +// Initializes infraction parameters for each active consumer. During slashing and jailing of validators for misbehavior on the consumer chain, the parameters defined for that specific consumer will be used. Initially, default values are set, which can later be customized for each consumer as needed. func SetConsumerInfractionParams(ctx sdk.Context, pk providerkeeper.Keeper) error { infractionParameters := DefaultInfractionParams() diff --git a/x/ccv/provider/client/cli/tx.go b/x/ccv/provider/client/cli/tx.go index 754b9ebc12..2708af5811 100644 --- a/x/ccv/provider/client/cli/tx.go +++ b/x/ccv/provider/client/cli/tx.go @@ -257,15 +257,15 @@ where create_consumer.json has the following structure: "allow_inactive_vals": false, "prioritylist": ["cosmosvalcons..."] }, - "infraction_parameters": { - "double_sign": { - "slash_fraction": "0.05", - "jail_duration": "9223372036854775807" - }, - "downtime": { - "slash_fraction": "0.0001", - "jail_duration": "600000000000" - } + "infraction_parameters":{ + "double_sign":{ + "slash_fraction":"0.05", + "jail_duration":"9223372036854775807" + }, + "downtime":{ + "slash_fraction":"0.0001", + "jail_duration":"600000000000" + } }, "allowlisted_reward_denoms": { "denoms": ["ibc/...", "ibc/..."] @@ -366,16 +366,16 @@ where update_consumer.json has the following structure: "allow_inactive_vals": false, "prioritylist": ["cosmosvalcons..."] }, - "infraction_parameters": { - "double_sign": { - "slash_fraction": "0.05", - "jail_duration": "9223372036854775807" - }, - "downtime": { - "slash_fraction": "0.0001", - "jail_duration": "600000000000" - } + "infraction_parameters":{ + "double_sign":{ + "slash_fraction":"0.05", + "jail_duration":"9223372036854775807" }, + "downtime":{ + "slash_fraction":"0.0001", + "jail_duration":"600000000000" + } + }, "allowlisted_reward_denoms": { "denoms": ["ibc/...", "ibc/..."] }