From f9e1cf479b96846d42c3609cefaa598af97cf446 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 29 Nov 2025 09:12:49 +0000 Subject: [PATCH] xmrwallet: pass `compat_call` in uargs tuple --- mmgen/data/version | 2 +- mmgen/xmrwallet/__init__.py | 7 +++---- mmgen/xmrwallet/ops/__init__.py | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mmgen/data/version b/mmgen/data/version index 760b9382..918bc138 100644 --- a/mmgen/data/version +++ b/mmgen/data/version @@ -1 +1 @@ -16.1.dev17 +16.1.dev18 diff --git a/mmgen/xmrwallet/__init__.py b/mmgen/xmrwallet/__init__.py index 102955cc..6221d197 100755 --- a/mmgen/xmrwallet/__init__.py +++ b/mmgen/xmrwallet/__init__.py @@ -28,7 +28,8 @@ tx_priorities = { uargs = namedtuple('xmrwallet_uargs', [ 'infile', 'wallets', - 'spec']) + 'spec', + 'compat_call']) uarg_info = ( lambda e, hp: { @@ -127,6 +128,4 @@ def op(op, cfg, infile, wallets, *, spec=None, compat_call=False): 'daemon': cfg.daemon or cfg.monero_daemon, 'watch_only': cfg.watch_only or cfg.autosign or bool(cfg.autosign_mountpoint), 'wallet_dir': twctl_cls.get_tw_dir(cfg, cfg._proto)}) - ret = op_cls(op)(cfg, uargs(infile, wallets, spec)) - ret.compat_call = compat_call - return ret + return op_cls(op)(cfg, uargs(infile, wallets, spec, compat_call)) diff --git a/mmgen/xmrwallet/ops/__init__.py b/mmgen/xmrwallet/ops/__init__.py index 6fe60d7d..2563775e 100755 --- a/mmgen/xmrwallet/ops/__init__.py +++ b/mmgen/xmrwallet/ops/__init__.py @@ -42,6 +42,7 @@ class OpBase: self.cfg = cfg self.uargs = uarg_tuple + self.compat_call = self.uargs.compat_call classes = tuple(gen_classes()) self.opts = tuple(set(opt for cls in classes for opt in xmrwallet.opts))