XMR compat: minor display fixes

This commit is contained in:
The MMGen Project 2026-10-25 10:11:14 +00:00
commit e7d8e8993b
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 8 additions and 7 deletions

View file

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

View file

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