Skip to content

Commit 11cf279

Browse files
authored
Remove PoW registration cli and associated extrinsic (#1557)
* Remove PoW registration cli and associated extrinsic * run black * no mo pow, no mo pow tests * remove now deprecated PoW reregister routine * remove deprecated tests * more test fixes * remove _do_pow call * return PoW but still kill reregister (unused) * run black * return test to networks choices in btcli, fix chain_endpoint selection * fix pow args
1 parent 75ba873 commit 11cf279

File tree

12 files changed

+207
-450
lines changed

12 files changed

+207
-450
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ For example:
183183
```bash
184184
btcli subnets --help
185185

186-
usage: btcli <command> <command args> subnets [-h] {list,metagraph,lock_cost,create,register,recycle_register,hyperparameters} ...
186+
usage: btcli <command> <command args> subnets [-h] {list,metagraph,lock_cost,create,register,pow_register,hyperparameters} ...
187187

188188
positional arguments:
189-
{list,metagraph,lock_cost,create,register,recycle_register,hyperparameters}
189+
{list,metagraph,lock_cost,create,register,pow_register,hyperparameters}
190190
Commands for managing and viewing subnetworks.
191-
list List all subnets on the network
191+
list List all subnets on the network.
192192
metagraph View a subnet metagraph information.
193-
lock_cost Return the lock cost to register a subnet
193+
lock_cost Return the lock cost to register a subnet.
194194
create Create a new bittensor subnetwork on this chain.
195195
register Register a wallet to a network.
196-
recycle_register Register a wallet to a network.
197-
hyperparameters View subnet hyperparameters
196+
register Register a wallet to a network using PoW.
197+
hyperparameters View subnet hyperparameters.
198198

199199
options:
200200
-h, --help show this help message and exit

bittensor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def debug(on: bool = True):
8787
# Wallet ss58 address length
8888
__ss58_address_length__ = 48
8989

90-
__networks__ = ["local", "finney"]
90+
__networks__ = ["local", "finney", "test"]
9191

9292
__finney_entrypoint__ = "wss://entrypoint-finney.opentensor.ai:443"
9393

bittensor/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"metagraph": MetagraphCommand,
5454
"lock_cost": SubnetLockCostCommand,
5555
"create": RegisterSubnetworkCommand,
56+
"pow_register": PowRegisterCommand,
5657
"register": RegisterCommand,
57-
"recycle_register": RecycleRegisterCommand,
5858
"hyperparameters": SubnetHyperparamsCommand,
5959
},
6060
},

bittensor/commands/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{
2222
"netuid": 1,
2323
"subtensor": {"network": "finney", "chain_endpoint": None, "_mock": False},
24-
"register": {
24+
"pow_register": {
2525
"num_processes": None,
2626
"update_interval": 50000,
2727
"output_in_place": True,
@@ -65,7 +65,7 @@
6565
from .stake import StakeCommand, StakeShow
6666
from .unstake import UnStakeCommand
6767
from .overview import OverviewCommand
68-
from .register import RegisterCommand, RecycleRegisterCommand, RunFaucetCommand
68+
from .register import PowRegisterCommand, RegisterCommand, RunFaucetCommand
6969
from .delegates import (
7070
NominateCommand,
7171
ListDelegatesCommand,

0 commit comments

Comments
 (0)