File tree Expand file tree Collapse file tree 2 files changed +20
-30
lines changed
bittensor/core/extrinsics Expand file tree Collapse file tree 2 files changed +20
-30
lines changed Original file line number Diff line number Diff line change @@ -69,22 +69,17 @@ async def root_register_extrinsic(
6969
7070 logging .info ("Fetching recycle amount & balance." )
7171 block_hash = await subtensor .get_block_hash ()
72-
73- try :
74- recycle_call , balance = await asyncio .gather (
75- subtensor .get_hyperparameter (
76- param_name = "Burn" ,
77- netuid = netuid ,
78- block_hash = block_hash ,
79- ),
80- subtensor .get_balance (
81- wallet .coldkeypub .ss58_address ,
82- block_hash = block_hash ,
83- ),
84- )
85- except TypeError as e :
86- logging .error (f"Unable to retrieve current recycle. { e } " )
87- return False
72+ recycle_call , balance = await asyncio .gather (
73+ subtensor .get_hyperparameter (
74+ param_name = "Burn" ,
75+ netuid = netuid ,
76+ block_hash = block_hash ,
77+ ),
78+ subtensor .get_balance (
79+ wallet .coldkeypub .ss58_address ,
80+ block_hash = block_hash ,
81+ ),
82+ )
8883
8984 current_recycle = Balance .from_rao (int (recycle_call ))
9085
Original file line number Diff line number Diff line change @@ -72,20 +72,15 @@ def root_register_extrinsic(
7272
7373 logging .info ("Fetching recycle amount & balance." )
7474 block = subtensor .get_current_block ()
75-
76- try :
77- recycle_call = subtensor .get_hyperparameter (
78- param_name = "Burn" ,
79- netuid = netuid ,
80- block = block ,
81- )
82- balance = subtensor .get_balance (
83- wallet .coldkeypub .ss58_address ,
84- block = block ,
85- )
86- except TypeError as e :
87- logging .error (f"Unable to retrieve current recycle. { e } " )
88- return False
75+ recycle_call = subtensor .get_hyperparameter (
76+ param_name = "Burn" ,
77+ netuid = netuid ,
78+ block = block ,
79+ )
80+ balance = subtensor .get_balance (
81+ wallet .coldkeypub .ss58_address ,
82+ block = block ,
83+ )
8984
9085 current_recycle = Balance .from_rao (int (recycle_call ))
9186
You can’t perform that action at this time.
0 commit comments