Skip to content

Commit 3e6cd99

Browse files
committed
Brings the settable hyperparams in line with the hyperparams we retrieve from the chain.
1 parent 866365e commit 3e6cd99

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

bittensor_cli/cli.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4620,6 +4620,28 @@ def sudo_set(
46204620
"Enter the new value for [dark_orange]alpha_high[/dark_orange]"
46214621
)
46224622
param_value = f"{low_val},{high_val}"
4623+
if param_name == "yuma_version":
4624+
if not prompt:
4625+
err_console.print(
4626+
"`yuma_version` is set using a different hyperparameter, and thus cannot be set with `--no-prompt`"
4627+
)
4628+
return False
4629+
if Confirm.ask(
4630+
"`yuma_version` can only be used to toggle Yuma 3. Would you like to toggle Yuma 3?"
4631+
):
4632+
param_name = "yuma3_enabled"
4633+
question = Prompt.ask(
4634+
"Would to like to enable or disable Yuma 3?",
4635+
choices=["enable", "disable"],
4636+
)
4637+
param_value = "true" if question == "enable" else "false"
4638+
else:
4639+
return False
4640+
if param_name == "subnet_is_active":
4641+
err_console.print(
4642+
"`subnet_is_active` is set by using `btcli subnets start`"
4643+
)
4644+
return False
46234645

46244646
if not param_value:
46254647
if not prompt:

bittensor_cli/src/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,8 @@ class WalletValidationTypes(Enum):
661661
"yuma3_enabled": ("sudo_set_yuma3_enabled", False),
662662
"alpha_sigmoid_steepness": ("sudo_set_alpha_sigmoid_steepness", True),
663663
"user_liquidity_enabled": ("toggle_user_liquidity", False),
664+
"bonds_reset_enabled": ("sudo_set_bonds_reset_enabled", False),
665+
"transfers_enabled": ("sudo_set_toggle_transfer", False),
664666
}
665667

666668
HYPERPARAMS_MODULE = {

0 commit comments

Comments
 (0)