Commit f009d65 1 parent ed0af34 commit f009d65 Copy full SHA for f009d65
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ def __init__(self):
284
284
self .wallet_app .command ("set-identity" )(self .wallet_set_id )
285
285
self .wallet_app .command ("get-identity" )(self .wallet_get_id )
286
286
self .wallet_app .command ("check-swap" )(self .wallet_check_ck_swap )
287
+ self .wallet_app .command ("sign" )(self .wallet_sign )
287
288
288
289
# root commands
289
290
self .root_app .command ("list" )(self .root_list )
@@ -324,6 +325,7 @@ def __init__(self):
324
325
325
326
# weights commands
326
327
self .weights_app .command ("reveal" )(self .weights_reveal )
328
+ self .weights_app .command ("commit" )(self .weights_commit )
327
329
328
330
def initialize_chain (
329
331
self ,
Original file line number Diff line number Diff line change @@ -196,8 +196,10 @@ async def _commit_reveal(
196
196
)
197
197
198
198
# Attempt executing reveal function after a delay of 'interval'
199
+ await self .subtensor .substrate .close ()
199
200
await asyncio .sleep (interval )
200
- return await self .reveal (weight_uids , weight_vals )
201
+ async with self .subtensor :
202
+ return await self .reveal (weight_uids , weight_vals )
201
203
else :
202
204
console .print (f":cross_mark: [red]Failed[/red]: error:{ commit_msg } " )
203
205
# bittensor.logging.error(msg=commit_msg, prefix="Set weights with hash commit",
You can’t perform that action at this time.
0 commit comments