From 91e10be951bebd39be1856e6a2a9ca80d8d5ae36 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Thu, 7 May 2026 17:52:59 +0000 Subject: [PATCH] autosign: minor fixes and cleanups --- mmgen/autosign.py | 2 +- mmgen/led.py | 2 +- mmgen/main_autosign.py | 3 ++- test/cmdtest_d/autosign.py | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mmgen/autosign.py b/mmgen/autosign.py index c2928a1a..366e4c74 100755 --- a/mmgen/autosign.py +++ b/mmgen/autosign.py @@ -942,7 +942,7 @@ class Autosign: await self.do_sign() prev_status = status if not n % 10: - msg_r(f'\r{" "*17}\rWaiting') + msg_r(f'\r{" " * 38}\rWaiting for device insertion') await asyncio.sleep(0.2 if threaded else 1) if not threaded: msg_r('.') diff --git a/mmgen/led.py b/mmgen/led.py index 974bd5f4..4b01168e 100755 --- a/mmgen/led.py +++ b/mmgen/led.py @@ -43,7 +43,7 @@ class LEDControl: boards = { 'raspi_pi': binfo( - name = 'Raspberry Pi', + name = 'Raspberry Pi (Armbian)', control = '/sys/class/leds/led0/brightness', trigger = '/sys/class/leds/led0/trigger', trigger_dfl = 'mmc0', diff --git a/mmgen/main_autosign.py b/mmgen/main_autosign.py index 179eaef6..252e87e8 100755 --- a/mmgen/main_autosign.py +++ b/mmgen/main_autosign.py @@ -66,7 +66,8 @@ opts_data = { (default: {asi.dfl_wallet_dir!r}) -W, --allow-non-wallet-swap Allow signing of swap transactions that send funds to non-wallet addresses --x, --xmrwallets=L Range or list of wallets to be used for XMR autosigning +-x, --xmrwallets=L Range or list of wallet numbers to be used for XMR + autosigning """, 'notes': """ diff --git a/test/cmdtest_d/autosign.py b/test/cmdtest_d/autosign.py index 14e390b5..8519c5ac 100755 --- a/test/cmdtest_d/autosign.py +++ b/test/cmdtest_d/autosign.py @@ -1086,7 +1086,7 @@ class CmdTestAutosignLive(CmdTestAutosignBTC): t.expect(f'{self.tx_count} non-automount transactions signed') if self.bad_tx_count: t.expect(f'{self.bad_tx_count} non-automount transactions failed to sign') - t.expect('Waiting') + t.expect('Waiting for device insertion') if led_opts: opts_msg = '‘' + ' '.join(led_opts) + '’'