Browse Source

xmrwallet OpLabel, OpNew: skip wallet restart and refresh

The MMGen Project 1 week ago
parent
commit
72565eb646
3 changed files with 3 additions and 3 deletions
  1. 1 1
      mmgen/proto/xmr/tw/ctl.py
  2. 1 1
      mmgen/xmrwallet/ops/label.py
  3. 1 1
      mmgen/xmrwallet/ops/new.py

+ 1 - 1
mmgen/proto/xmr/tw/ctl.py

@@ -41,5 +41,5 @@ class MoneroTwCtl(TwCtlWithStore):
 			None,
 			None,
 			spec = f'{m.idx}:{m.acct_idx}:{m.addr_idx},{comment}',
 			spec = f'{m.idx}:{m.acct_idx}:{m.addr_idx},{comment}',
 			compat_call = True)
 			compat_call = True)
-		await op.restart_wallet_daemon()
+		op.c.call('close_wallet')
 		return await op.main(add_timestr=add_timestr)
 		return await op.main(add_timestr=add_timestr)

+ 1 - 1
mmgen/xmrwallet/ops/label.py

@@ -40,7 +40,7 @@ class OpLabel(OpMixinSpec, OpWallet):
 
 
 		h = MoneroWalletRPC(self, self.source)
 		h = MoneroWalletRPC(self, self.source)
 
 
-		h.open_wallet('source')
+		h.open_wallet('source', refresh=False)
 		wallet_data = h.get_wallet_data()
 		wallet_data = h.get_wallet_data()
 
 
 		max_acct = len(wallet_data.accts_data['subaddress_accounts']) - 1
 		max_acct = len(wallet_data.accts_data['subaddress_accounts']) - 1

+ 1 - 1
mmgen/xmrwallet/ops/new.py

@@ -29,7 +29,7 @@ class OpNew(OpMixinSpec, OpWallet):
 
 
 	async def main(self):
 	async def main(self):
 		h = MoneroWalletRPC(self, self.source)
 		h = MoneroWalletRPC(self, self.source)
-		h.open_wallet('Monero')
+		h.open_wallet('Monero', refresh=False)
 
 
 		desc = 'account' if self.account is None else 'address'
 		desc = 'account' if self.account is None else 'address'
 		label = TwComment(
 		label = TwComment(