Browse Source

Autosign: set up the macOS ramdisk after generating key

The MMGen Project 6 months ago
parent
commit
19bc4af907
2 changed files with 6 additions and 3 deletions
  1. 6 1
      mmgen/autosign.py
  2. 0 2
      mmgen/main_autosign.py

+ 6 - 1
mmgen/autosign.py

@@ -664,9 +664,14 @@ class Autosign:
 			except:
 				die(2,f"Unable to create wallet directory '{self.wallet_dir}'")
 
+		self.gen_key(no_unmount=True)
+
+		if sys.platform == 'darwin':
+			self.macos_ramdisk_setup()
+
 		remove_wallet_dir()
 		create_wallet_dir()
-		self.gen_key(no_unmount=True)
+
 		wf = find_file_in_dir( get_wallet_cls('mmgen'), self.cfg.data_dir )
 		if wf and keypress_confirm(
 				cfg         = self.cfg,

+ 0 - 2
mmgen/main_autosign.py

@@ -211,8 +211,6 @@ cfg._post_init()
 if cmd == 'gen_key':
 	asi.gen_key()
 elif cmd == 'setup':
-	if sys.platform == 'darwin':
-		asi.macos_ramdisk_setup()
 	asi.setup()
 	from .ui import keypress_confirm
 	if cfg.xmrwallets and keypress_confirm( cfg, '\nContinue with Monero setup?', default_yes=True ):