From b675ca5fc6bd94213db1c4a837507d738606bc5d Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Tue, 25 Feb 2025 17:55:08 +0200 Subject: [PATCH] Warn users about root-only hyperparams --- bittensor_cli/src/commands/sudo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bittensor_cli/src/commands/sudo.py b/bittensor_cli/src/commands/sudo.py index 78106ae31..9e9098f53 100644 --- a/bittensor_cli/src/commands/sudo.py +++ b/bittensor_cli/src/commands/sudo.py @@ -189,6 +189,11 @@ async def set_hyperparameter_extrinsic( ":cross_mark: [red]Invalid hyperparameter specified.[/red]" ) return False + if sudo_: + if not Confirm.ask( + "This hyperparam is only settable by root sudo users. If you are not, this will fail. Please confirm" + ): + return False substrate = subtensor.substrate msg_value = value if not arbitrary_extrinsic else call_params