Browse Source

autosign: minor fixes and cleanups

The MMGen Project 6 days ago
parent
commit
91e10be951
4 changed files with 5 additions and 4 deletions
  1. 1 1
      mmgen/autosign.py
  2. 1 1
      mmgen/led.py
  3. 2 1
      mmgen/main_autosign.py
  4. 1 1
      test/cmdtest_d/autosign.py

+ 1 - 1
mmgen/autosign.py

@@ -942,7 +942,7 @@ class Autosign:
 				await self.do_sign()
 				await self.do_sign()
 			prev_status = status
 			prev_status = status
 			if not n % 10:
 			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)
 			await asyncio.sleep(0.2 if threaded else 1)
 			if not threaded:
 			if not threaded:
 				msg_r('.')
 				msg_r('.')

+ 1 - 1
mmgen/led.py

@@ -43,7 +43,7 @@ class LEDControl:
 
 
 	boards = {
 	boards = {
 		'raspi_pi': binfo(
 		'raspi_pi': binfo(
-			name    = 'Raspberry Pi',
+			name    = 'Raspberry Pi (Armbian)',
 			control = '/sys/class/leds/led0/brightness',
 			control = '/sys/class/leds/led0/brightness',
 			trigger = '/sys/class/leds/led0/trigger',
 			trigger = '/sys/class/leds/led0/trigger',
 			trigger_dfl = 'mmc0',
 			trigger_dfl = 'mmc0',

+ 2 - 1
mmgen/main_autosign.py

@@ -66,7 +66,8 @@ opts_data = {
                       (default: {asi.dfl_wallet_dir!r})
                       (default: {asi.dfl_wallet_dir!r})
 -W, --allow-non-wallet-swap Allow signing of swap transactions that send funds
 -W, --allow-non-wallet-swap Allow signing of swap transactions that send funds
                       to non-wallet addresses
                       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': """
 	'notes': """
 
 

+ 1 - 1
test/cmdtest_d/autosign.py

@@ -1086,7 +1086,7 @@ class CmdTestAutosignLive(CmdTestAutosignBTC):
 			t.expect(f'{self.tx_count} non-automount transactions signed')
 			t.expect(f'{self.tx_count} non-automount transactions signed')
 			if self.bad_tx_count:
 			if self.bad_tx_count:
 				t.expect(f'{self.bad_tx_count} non-automount transactions failed to sign')
 				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:
 		if led_opts:
 			opts_msg = '‘' + ' '.join(led_opts) + '’'
 			opts_msg = '‘' + ' '.join(led_opts) + '’'