Skip to content

Commit 36e24c5

Browse files
review suggestions
1 parent 8dcdc26 commit 36e24c5

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

docs/learn/chain-rate-limits.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ This rate limit prevents frequent changes to delegate take percentages.
3636
- Chain State Variable: `TxDelegateTakeRateLimit`
3737
- Error message: [`DelegateTxRateLimitExceeded`](../errors/subtensor.md#delegatetxratelimitexceeded)
3838

39-
### Child key take rate limit
40-
41-
This rate limit prevents the owner of a child hotkey from making frequent changes to the child key take percentages. This protects against rapid manipulation of child key relationships and ensures stability in the child key delegation system.
42-
43-
- Rate Limit: 216,000 blocks (~30 days)
44-
- Chain State Variable: `TxChildkeyTakeRateLimit`
45-
- Error message: [`TxChildkeyTakeRateLimitExceeded`](../errors/subtensor.md#txchildkeytakeratelimitexceeded)
4639

4740
### Hotkey swap rate limit
4841

@@ -123,6 +116,24 @@ This rate limit controls how frequently a user can perform staking operations (a
123116
- Rate Limit: 1 per block
124117
- Chain State Variable: `StakingOperationRateLimiter` (Bool, since limit is 1 operation)
125118
- Error message: [`StakingOperationRateLimitExceeded`](../errors/subtensor.md#stakingoperationratelimitexceeded)
119+
120+
121+
### Child hotkey operations rate limit
122+
123+
This rate limit controls how frequently a parent hotkey can set or revoke child hotkeys on a specific subnet. Note that revoking children is implemented by calling `set_children` with an empty list, so both operations share the same rate limit.
124+
125+
- Rate Limit: 150 blocks (~30 minutes)
126+
- Source Code: [rate_limiting.rs](https://github.com/opentensor/subtensor/blob/main/pallets/subtensor/src/utils/rate_limiting.rs#L25-L28)
127+
- Error message: [`TxRateLimitExceeded`](../errors/subtensor.md#txratelimitexceeded)
128+
129+
### Child key take rate limit
130+
131+
This rate limit prevents the owner of a child hotkey from making frequent changes to the child key take percentages.
132+
133+
- Rate Limit: 216,000 blocks (~30 days)
134+
- Chain State Variable: `TxChildkeyTakeRateLimit`
135+
- Error message: [`TxChildkeyTakeRateLimitExceeded`](../errors/subtensor.md#txchildkeytakeratelimitexceeded)
136+
126137
## Subnet-specific rate limits
127138

128139
This section discusses rate limits that apply within a specific subnet on the network. These limits are typically configurable at the subnet level.

docs/validators/child-hotkeys.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ The child hotkey features are as follows:
6565

6666
The following rate limits apply for child hotkeys:
6767

68-
- A child hotkey's take rate can only be adjusted once per 30 days.
69-
- One successful execution of `set_children` or `revoke_children` is allowed for every 720 blocks.
68+
- Setting or revoking children is allowed for every 150 blocks (~30 minutes).
69+
- A given child hotkey's take rate can only be adjusted once per 30 days.
7070

71-
See [Rate Limits in Bittensor](../learn/chain-rate-limits.md).
71+
See [Rate Limits in Bittensor: Child hotkey operations rate limit](../learn/chain-rate-limits#child-hotkey-operations-rate-limit).
7272

7373
## Minimum stake requirement
7474

@@ -176,7 +176,7 @@ btcli stake child revoke
176176
```
177177

178178
### Example
179-
179+
<!-- this is still the wrong syntax! Let's make sure all the examples are still valid-->
180180
```bash
181181
btcli stake revoke_children \
182182
--netuid 4 \

0 commit comments

Comments
 (0)