xmrwallet OpLabel, OpNew: skip wallet restart and refresh

This commit is contained in:
The MMGen Project 2026-01-21 09:06:50 +00:00
commit 72565eb646
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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