autosign: re-enable file cleaning for non-XMR setup (bugfix)
This commit is contained in:
parent
64f9b26a2a
commit
79ca80e8f2
3 changed files with 16 additions and 19 deletions
|
|
@ -442,24 +442,18 @@ class Autosign:
|
|||
return self._xmrwallet_cfg
|
||||
|
||||
def xmr_setup(self):
|
||||
|
||||
def create_signing_wallets():
|
||||
from .. import xmrwallet
|
||||
if len(self.wallet_files) > 1:
|
||||
ymsg(
|
||||
'Warning: more than one wallet file, using the first '
|
||||
f'({self.wallet_files[0]}) for xmrwallet generation')
|
||||
m = xmrwallet.op(
|
||||
'create_offline',
|
||||
self.xmrwallet_cfg,
|
||||
infile = str(self.wallet_files[0]), # MMGen wallet file
|
||||
wallets = self.cfg.xmrwallets) # XMR wallet idxs
|
||||
asyncio.run(m.main())
|
||||
asyncio.run(m.stop_wallet_daemon())
|
||||
|
||||
self.clean_old_files()
|
||||
|
||||
create_signing_wallets()
|
||||
from .. import xmrwallet
|
||||
if len(self.wallet_files) > 1:
|
||||
ymsg(
|
||||
'Warning: more than one wallet file, using the first '
|
||||
f'({self.wallet_files[0]}) for xmrwallet generation')
|
||||
m = xmrwallet.op(
|
||||
'create_offline',
|
||||
self.xmrwallet_cfg,
|
||||
infile = str(self.wallet_files[0]), # MMGen wallet file
|
||||
wallets = self.cfg.xmrwallets) # XMR wallet idxs
|
||||
asyncio.run(m.main())
|
||||
asyncio.run(m.stop_wallet_daemon())
|
||||
|
||||
def clean_old_files(self):
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
16.1.dev38
|
||||
16.1.dev39
|
||||
|
|
|
|||
|
|
@ -152,6 +152,8 @@ match cmd:
|
|||
case 'gen_key':
|
||||
asi.gen_key()
|
||||
case 'setup':
|
||||
asi.do_mount()
|
||||
asi.clean_old_files()
|
||||
asi.setup()
|
||||
from .ui import keypress_confirm
|
||||
if cfg.xmrwallets and keypress_confirm(cfg, '\nContinue with Monero setup?', default_yes=True):
|
||||
|
|
@ -162,6 +164,7 @@ match cmd:
|
|||
if not cfg.xmrwallets:
|
||||
die(1, 'Please specify a wallet or range of wallets with the --xmrwallets option')
|
||||
asi.do_mount()
|
||||
asi.clean_old_files()
|
||||
asi.xmr_setup()
|
||||
asi.do_umount()
|
||||
case 'macos_ramdisk_setup' | 'macos_ramdisk_delete':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue