Skip to content

Commit

Permalink
Add example to proto definition of max_rank
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jul 25, 2024
1 parent 264b642 commit 22bfde8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proto/interchain_security/ccv/provider/v1/provider.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 22bfde8

Please sign in to comment.