mmgen-xmrwallet: new --no-restart-wallet-daemon option

This commit is contained in:
The MMGen Project 2026-11-01 12:51:06 +00:00
commit a580046ee3
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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: