xmrwallet: pass compat_call in uargs tuple

This commit is contained in:
The MMGen Project 2025-11-29 09:12:49 +00:00
commit f9e1cf479b
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 5 additions and 5 deletions

View file

@ -1 +1 @@
16.1.dev17
16.1.dev18

View file

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

View file

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