From 22bfde8eebf8dd3bba25d6c7afd6ee9e6fb42edf Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Thu, 25 Jul 2024 11:09:19 +0200 Subject: [PATCH] Add example to proto definition of max_rank --- proto/interchain_security/ccv/provider/v1/provider.proto | 4 ++++ proto/interchain_security/ccv/provider/v1/tx.proto | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/proto/interchain_security/ccv/provider/v1/provider.proto b/proto/interchain_security/ccv/provider/v1/provider.proto index a4db10ae1b..3c843a791c 100644 --- a/proto/interchain_security/ccv/provider/v1/provider.proto +++ b/proto/interchain_security/ccv/provider/v1/provider.proto @@ -109,6 +109,8 @@ message ConsumerAdditionProposal { // Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain. uint64 min_stake = 20; // Corresponds to the maximal rank in the provider chain validator set that a validator can have to validate on the consumer chain. + // For example, setting this to 10 means only the + // 10 validators with the most stake can validate the consumer chain. uint32 max_rank = 21; // Corresponds to whether inactive validators are allowed to validate the consumer chain. bool allow_inactive_vals = 22; @@ -165,6 +167,8 @@ message ConsumerModificationProposal { // Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain. uint64 min_stake = 9; // Corresponds to the maximal rank in the provider chain validator set that a validator can have to validate on the consumer chain. + // For example, setting this to 10 means only the + // 10 validators with the most stake can validate the consumer chain. uint32 max_rank = 10; // Corresponds to whether inactive validators are allowed to validate the consumer chain. bool allow_inactive_vals = 11; diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 433dc5ed42..57a40fc716 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -186,6 +186,8 @@ message MsgConsumerAddition { // Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain. uint64 min_stake = 19; // Corresponds to the maximal rank in the provider chain validator set that a validator can have to validate on the consumer chain. + // For example, setting this to 10 means only the + // 10 validators with the most stake can validate the consumer chain. uint32 max_rank = 20; // Corresponds to whether inactive validators are allowed to validate the consumer chain. bool allow_inactive_vals = 21; @@ -328,6 +330,8 @@ message MsgConsumerModification { // Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain. uint64 min_stake = 10; // Corresponds to the maximal rank in the provider chain validator set that a validator can have to validate on the consumer chain. + // For example, setting this to 10 means only the + // 10 validators with the most stake can validate the consumer chain. uint32 max_rank = 11; // Corresponds to whether inactive validators are allowed to validate the consumer chain. bool allow_inactive_vals = 12;