Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bittensor_cli/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,12 @@ class RootSudoOnly(Enum):
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#maxallowedvalidators",
},
"max_uids": {
"description": "Maximum number of UIDs allowed in the subnet.",
"side_effects": "Lower values cap subnet size; higher values allow more neurons to register.",
"owner_settable": False,
"docs_link": "docs.learnbittensor.org/subnets/subnet-hyperparameters#maxalloweduids",
},
"adjustment_alpha": {
"description": "Alpha parameter for difficulty adjustment algorithm.",
"side_effects": "Higher values make difficulty adjustments more aggressive; lower values provide smoother transitions.",
Expand Down
3 changes: 3 additions & 0 deletions bittensor_cli/src/bittensor/chain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class SubnetHyperparameters(InfoBase):
max_regs_per_block (int): Maximum number of registrations per block.
serving_rate_limit (int): Limit on the rate of service.
max_validators (int): Maximum number of validators.
max_uids (int): Maximum number of UIDs allowed on the subnet.
adjustment_alpha (int): Alpha value for adjustments.
difficulty (int): Difficulty level.
commit_reveal_period (int): Interval for commit-reveal weights.
Expand Down Expand Up @@ -207,6 +208,7 @@ class SubnetHyperparameters(InfoBase):
max_regs_per_block: int
serving_rate_limit: int
max_validators: int
max_uids: int
adjustment_alpha: int
difficulty: int
commit_reveal_period: int
Expand Down Expand Up @@ -246,6 +248,7 @@ def _fix_decoded(
max_difficulty=decoded["max_difficulty"],
max_regs_per_block=decoded["max_regs_per_block"],
max_validators=decoded["max_validators"],
max_uids=decoded.get("max_uids", decoded.get("max_allowed_uids")),
max_weight_limit=decoded["max_weights_limit"],
min_allowed_weights=decoded["min_allowed_weights"],
min_burn=decoded["min_burn"],
Expand Down