From 72565eb646ccf434a0d1f9c773460ee7e4186195 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 21 Jan 2026 09:06:50 +0000 Subject: [PATCH] xmrwallet OpLabel, OpNew: skip wallet restart and refresh --- mmgen/proto/xmr/tw/ctl.py | 2 +- mmgen/xmrwallet/ops/label.py | 2 +- mmgen/xmrwallet/ops/new.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mmgen/proto/xmr/tw/ctl.py b/mmgen/proto/xmr/tw/ctl.py index b28999c4..45f549b2 100755 --- a/mmgen/proto/xmr/tw/ctl.py +++ b/mmgen/proto/xmr/tw/ctl.py @@ -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) diff --git a/mmgen/xmrwallet/ops/label.py b/mmgen/xmrwallet/ops/label.py index 6595c1ea..3bd73a45 100755 --- a/mmgen/xmrwallet/ops/label.py +++ b/mmgen/xmrwallet/ops/label.py @@ -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 diff --git a/mmgen/xmrwallet/ops/new.py b/mmgen/xmrwallet/ops/new.py index 97f74adc..005ffa4f 100755 --- a/mmgen/xmrwallet/ops/new.py +++ b/mmgen/xmrwallet/ops/new.py @@ -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(