File tree 2 files changed +0
-17
lines changed
2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,6 @@ def __init__(self):
18
18
self .my_uid = self .metagraph .hotkeys .index (self .wallet .hotkey .ss58_address )
19
19
self .check_wallet_registered_in_network ()
20
20
21
- def refresh (self ):
22
- self .wallet = bt .wallet (config = self .config )
23
- self .subtensor = bt .subtensor (config = self .config , network = self .config .subtensor .network )
24
- self .metagraph = self .subtensor .metagraph (netuid = self .config .netuid )
25
- self .axon = bt .axon (wallet = self .wallet , port = self .config .axon .port )
26
- self .dendrite = bt .dendrite (wallet = self .wallet )
27
- self .my_uid = self .metagraph .hotkeys .index (self .wallet .hotkey .ss58_address )
28
21
29
22
def check_wallet_registered_in_network (self ):
30
23
if self .wallet .hotkey .ss58_address not in self .metagraph .hotkeys :
Original file line number Diff line number Diff line change @@ -231,19 +231,9 @@ def select_validator():
231
231
else :
232
232
bt .logging .info ("image_validator is selected." )
233
233
return image_validator
234
- def refresh (self ):
235
- bt .refresh ()
236
- self .dendrite = bt .dendrite
237
- self .subtensor = bt .subtensor
238
- self .wallet = bt .wallet
239
- self .moving_average_scores = None
240
- self .axon = bt .axon
241
- self .metagraph = bt .metagraph
242
- self .my_uid = bt .my_uid
243
234
244
235
async def get_available_uids (self ):
245
236
"""Get a dictionary of available UIDs and their axons asynchronously."""
246
- self .refresh ()
247
237
tasks = {uid .item (): self .check_uid (self .metagraph .axons [uid .item ()], uid .item ()) for uid in
248
238
self .metagraph .uids }
249
239
results = await asyncio .gather (* tasks .values ())
You can’t perform that action at this time.
0 commit comments