From a580046ee36da477739c3438fe60ebd92f5554d3 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 1 Nov 2026 12:51:06 +0000 Subject: [PATCH] mmgen-xmrwallet: new --no-restart-wallet-daemon option --- mmgen/main_xmrwallet.py | 1 + mmgen/xmrwallet/ops/wallet.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mmgen/main_xmrwallet.py b/mmgen/main_xmrwallet.py index d94a73d9..c8dbbc61 100644 --- a/mmgen/main_xmrwallet.py +++ b/mmgen/main_xmrwallet.py @@ -78,6 +78,7 @@ opts_data = { -R, --no-relay Save transaction to file instead of relaying -s, --no-start-wallet-daemon Don’t start the wallet daemon at startup -S, --no-stop-wallet-daemon Don’t stop the wallet daemon at exit +-x, --no-restart-wallet-daemon Don’t start wallet daemon if already started -W, --watch-only Create or operate on watch-only wallets -w, --wallet-dir=D Output or operate on wallets in directory 'D' instead of the working directory diff --git a/mmgen/xmrwallet/ops/wallet.py b/mmgen/xmrwallet/ops/wallet.py index 7a725796..2b7e350b 100644 --- a/mmgen/xmrwallet/ops/wallet.py +++ b/mmgen/xmrwallet/ops/wallet.py @@ -114,7 +114,8 @@ class OpWallet(OpBase): if ( self.to_process and self.start_daemon - and not self.cfg.no_start_wallet_daemon): + and not self.cfg.no_start_wallet_daemon + and not (self.cfg.no_restart_wallet_daemon and self.wd.state == 'ready')): if self.main_starts_daemon: self.need_daemon_start = True else: