From e7d8e8993bfc3b3d6caf35105a8cda007805835e Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 25 Oct 2026 10:11:14 +0000 Subject: [PATCH] XMR compat: minor display fixes --- mmgen/proto/xmr/tx/completed.py | 13 +++++++------ mmgen/tx/new.py | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/mmgen/proto/xmr/tx/completed.py b/mmgen/proto/xmr/tx/completed.py index a5c0b1e1..f61d60ae 100644 --- a/mmgen/proto/xmr/tx/completed.py +++ b/mmgen/proto/xmr/tx/completed.py @@ -42,10 +42,11 @@ class Completed(Base, TxCompleted): from ....tx.info import TxInfo class info_cls(TxInfo): def format(info_self, *args, **kwargs): - body = self.compat_tx.get_info(full_address=True, indent=' ', is_swap=self.is_swap) - if self.compat_data or self.raw_compat_data: - swap_subhdr = ''.join(info_self.gen_swap_subhdr()) + '\n' if self.is_swap else '' - return cyan(self.data_desc.upper()) + '\n' + swap_subhdr + body - else: - return body + return ( + cyan(self.data_desc.upper()) + + '\n' + + ((''.join(info_self.gen_swap_subhdr()) + '\n') + if (self.compat_data or self.raw_compat_data) and self.is_swap + else '') + + self.compat_tx.get_info(full_address=True, indent=' ', is_swap=self.is_swap)) return info_cls(self.cfg, self) diff --git a/mmgen/tx/new.py b/mmgen/tx/new.py index 257712ee..4132ea47 100644 --- a/mmgen/tx/new.py +++ b/mmgen/tx/new.py @@ -512,7 +512,7 @@ class New(Base): if not (self.is_bump or self.cfg.inputs): await self.twuo.view_filter_and_sort() - if not self.is_bump: + if not (self.is_bump or self.is_compat): self.twuo.display_total() if do_info: