Skip to content

Commit 73ff4f1

Browse files
committed
Adds check for participation of a neuron
1 parent 20bb968 commit 73ff4f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bittensor/extrinsics/delegation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ def nominate_extrinsic(
5757
)
5858
return False
5959

60+
if not subtensor.is_hotkey_registered_any(wallet.hotkey.ss58_address):
61+
logger.error(
62+
"Hotkey {} is not registered to any network".format(
63+
wallet.hotkey.ss58_address
64+
)
65+
)
66+
return False
67+
6068
with bittensor.__console__.status(
6169
":satellite: Sending nominate call on [white]{}[/white] ...".format(
6270
subtensor.network

0 commit comments

Comments
 (0)