From 0ae18743c98e1b51c93d354f3187e061030340b6 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Thu, 27 Nov 2025 11:34:10 +0000 Subject: [PATCH] tw.view: display Seed ID if applicable --- mmgen/proto/xmr/tw/view.py | 4 ++++ mmgen/tw/view.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/mmgen/proto/xmr/tw/view.py b/mmgen/proto/xmr/tw/view.py index 975c3298..63cd41fc 100755 --- a/mmgen/proto/xmr/tw/view.py +++ b/mmgen/proto/xmr/tw/view.py @@ -13,6 +13,7 @@ proto.xmr.tw.view: Monero protocol base class for tracking wallet view classes """ from ....xmrwallet import op as xmrwallet_op +from ....seed import SeedID from ....tw.view import TwView class MoneroTwView: @@ -28,6 +29,9 @@ class MoneroTwView: await op.restart_wallet_daemon() wallets_data = await op.main() + if wallets_data: + self.sid = SeedID(sid=wallets_data[0]['seed_id']) + self.total = self.proto.coin_amt('0') def gen_addrs(): diff --git a/mmgen/tw/view.py b/mmgen/tw/view.py index e2c8147c..cee12d23 100755 --- a/mmgen/tw/view.py +++ b/mmgen/tw/view.py @@ -441,6 +441,9 @@ class TwView(MMGenObject, metaclass=AsyncInit): Blue(sort_info), spc * (self.cols - len(f'{self.hdr_lbl} (sort order: {sort_info})'))) + if hasattr(self, 'sid'): + yield f'Seed ID: {self.sid.hl()}' + if self.filters: yield 'Filters: {}{}'.format( ' '.join(map(fmt_filter, self.filters)),