From 73ff4f1f545a2c61709ed375f178706a1cc3908b Mon Sep 17 00:00:00 2001 From: ibraheem-opentensor Date: Wed, 31 Jul 2024 14:57:16 -0700 Subject: [PATCH] Adds check for participation of a neuron --- bittensor/extrinsics/delegation.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bittensor/extrinsics/delegation.py b/bittensor/extrinsics/delegation.py index 54bdb5273c..5d31855cdb 100644 --- a/bittensor/extrinsics/delegation.py +++ b/bittensor/extrinsics/delegation.py @@ -57,6 +57,14 @@ def nominate_extrinsic( ) return False + if not subtensor.is_hotkey_registered_any(wallet.hotkey.ss58_address): + logger.error( + "Hotkey {} is not registered to any network".format( + wallet.hotkey.ss58_address + ) + ) + return False + with bittensor.__console__.status( ":satellite: Sending nominate call on [white]{}[/white] ...".format( subtensor.network