Skip to content

Commit

Permalink
cr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stana-miric committed Dec 2, 2024
1 parent 2b0eb15 commit a068fcb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
36 changes: 18 additions & 18 deletions x/ccv/provider/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/..."]
Expand Down Expand Up @@ -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/..."]
}
Expand Down

0 comments on commit a068fcb

Please sign in to comment.