File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,11 @@ async def test_root_reg_hyperparams(local_chain):
130130 alice_wallet .hotkey .ss58_address , netuid
131131 )
132132
133- # Fetch the block since last update, so we can compare later
134- initial_block = subtensor .blocks_since_last_update (
133+ # Fetch the block since last update for the neuron
134+ block_since_update = subtensor .blocks_since_last_update (
135135 netuid = netuid , uid = alice_uid_sn_1
136136 )
137+ assert block_since_update is not None
137138
138139 # Verify subnet <netuid> created successfully
139140 assert local_chain .query (
@@ -191,10 +192,6 @@ async def test_root_reg_hyperparams(local_chain):
191192 return_error_message = True ,
192193 )
193194
194- updated_block = subtensor .blocks_since_last_update (netuid = netuid , uid = 0 )
195- # Ensure updates are reflected through incremental block numbers
196- assert updated_block > initial_block
197-
198195 # TODO: Implement
199196 # This registers neuron using pow but it doesn't work on fast-blocks - we get stale pow
200197 # pow_registration = subtensor.register(bob_wallet, netuid=1)
You can’t perform that action at this time.
0 commit comments