Browse Source

mmgen-xmrwallet tx{view,list}: include compat-mode transactions

The MMGen Project 1 week ago
parent
commit
81c6c10135
1 changed files with 5 additions and 2 deletions
  1. 5 2
      mmgen/xmrwallet/ops/txview.py

+ 5 - 2
mmgen/xmrwallet/ops/txview.py

@@ -33,8 +33,11 @@ class OpTxview(OpBase):
 		self.mount_removable_device()
 
 		if self.cfg.autosign:
-			files = [f for f in getattr(self.asi, self.tx_dir).iterdir()
-						if f.name.endswith('.' + mtx.Submitted.ext)]
+			def get_submitted(tx_dir, subext):
+				return [f for f in getattr(self.asi, tx_dir).iterdir() if f.name.endswith('.' + subext)]
+			files = get_submitted('xmr_tx_dir', mtx.Submitted.ext) + (
+				[f for f in get_submitted('txauto_dir', 'asubtx') if 'XMR' in f.name]
+					if self.cfg.compat else [])
 		else:
 			files = self.uargs.infile