Skip to content

Commit

Permalink
Mention list-consumer-chains query
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed May 13, 2024
1 parent 46aa46e commit cbdf6fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/docs/features/power-shaping.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ All these mechanisms are set by the consumer chain in the `ConsumerAdditionPropo

Each of these mechanisms is *set during the consumer addition proposal* (see [Onboarding](../consumer-development/onboarding.md#3-submit-a-governance-proposal)), and is currently *immutable* after the chain has been added.

The values can be seen by querying the list of consumer chains:
```bash
interchain-security-pd query provider list-consumer-chains
```

## Guidelines for setting power shaping parameters

When setting power shaping parameters, please consider the following guidelines:
Expand Down
16 changes: 16 additions & 0 deletions docs/docs/validators/partial-set-security-for-validators.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,22 @@ As a validator, the list of chains returned by `has-to-validate` is the list of
getting jailed for downtime.
:::

### How do you know how much voting power you need to have to be in the top N for a chain?
This can be seen as part of the `list-consumer-chains` query:
```bash
interchain-security-pd query provider list-consumer-chains
```
where the `min_power_in_top_N` field shows the minimum voting power required to be
automatically opted in to the chain.

:::tip
`list-consumer-chains` shows the minimal voting power *right now*, but
the automatic opt-in happens only when epochs end on the provider.
In consequence, a validators power might be large enough to be automatically opted in
during an epoch, but if their power is sufficiently decreased before the epoch ends,
they will not be opted in automatically.
:::


### How to get all the opted-in validators on a consumer chain?
With the following query:
Expand Down

0 comments on commit cbdf6fc

Please sign in to comment.