Skip to content
Merged
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
5 changes: 4 additions & 1 deletion bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ def __init__(self):
"emissions", rich_help_panel=HELP_PANELS["MECHANISMS"]["EMISSION"]
)(self.mechanism_emission_get)
self.subnet_mechanisms_app.command(
"emissions-split", rich_help_panel=HELP_PANELS["MECHANISMS"]["EMISSION"]
"split-emissions", rich_help_panel=HELP_PANELS["MECHANISMS"]["EMISSION"]
)(self.mechanism_emission_set)

# sudo commands
Expand Down Expand Up @@ -1113,6 +1113,9 @@ def __init__(self):
self.subnets_app.command("set_identity", hidden=True)(self.subnets_set_identity)
self.subnets_app.command("get_identity", hidden=True)(self.subnets_get_identity)
self.subnets_app.command("check_start", hidden=True)(self.subnets_check_start)
self.subnet_mechanisms_app.command("emissions-split", hidden=True)(
self.mechanism_emission_set
)

# Sudo
self.sudo_app.command("senate_vote", hidden=True)(self.sudo_senate_vote)
Expand Down
4 changes: 2 additions & 2 deletions bittensor_cli/src/commands/subnets/mechanisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ async def set_emission_split(
(current_value / total_existing) * 100 if total_existing else 0
)
label = (
"[blue]Main Mechanism (1)[/blue]"
"[blue]Main Mechanism (0)[/blue]"
if idx == 0
else f"[blue]Mechanism {idx + 1}[/blue]"
else f"[blue]Mechanism {idx}[/blue]"
)
response = Prompt.ask(
(
Expand Down
Loading