From 8847af94109cd8a63400442e7f37f8e9e0cefe75 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Fri, 11 Sep 2026 14:10:56 +0000 Subject: [PATCH] support BCH transaction display with multiple TX files --- mmgen/proto/btc/tx/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmgen/proto/btc/tx/info.py b/mmgen/proto/btc/tx/info.py index 91d93784..acec81e0 100755 --- a/mmgen/proto/btc/tx/info.py +++ b/mmgen/proto/btc/tx/info.py @@ -131,9 +131,9 @@ class TxInfo(TxInfo): tx = self.tx - if self.cfg._proto.coin == 'BCH': + if tx.proto.coin == 'BCH': have_bch = True - vp1 = 1 if not self.cfg.cashaddr else not self.cfg._proto.cashaddr + vp1 = 1 if not getattr(self.cfg, 'cashaddr', None) else not tx.proto.cashaddr vp2 = (vp1 + 1) % 2 else: have_bch = False