Browse Source

move altcoin_data_dir (relocates testnet eth tracking wallet); help text fixes

MMGen 6 years ago
parent
commit
c22fa846c9
2 changed files with 8 additions and 9 deletions
  1. 7 8
      mmgen/main_addrimport.py
  2. 1 1
      mmgen/opts.py

+ 7 - 8
mmgen/main_addrimport.py

@@ -29,12 +29,12 @@ from mmgen.obj import TwLabel
 ai_msgs = lambda k: {
 	'rescan': """
 WARNING: You've chosen the '--rescan' option.  Rescanning the blockchain is
-necessary only if an address you're importing is already on the blockchain,
+necessary only if an address you're importing is already in the blockchain,
 has a balance and is not in your tracking wallet.  Note that the rescanning
 process is very slow (>30 min. for each imported address on a low-powered
 computer).
 	""".strip() if opt.rescan else """
-WARNING: If any of the addresses you're importing is already on the blockchain,
+WARNING: If any of the addresses you're importing is already in the blockchain,
 has a balance and is not in your tracking wallet, you must exit the program now
 and rerun it using the '--rescan' option.
 """.strip(),
@@ -48,23 +48,22 @@ option, or a list of non-{pnm} addresses with the '--addrlist' option
 # --batch and --rescan incompatible.
 
 opts_data = lambda: {
-	'desc': """Import addresses (both {pnm} and non-{pnm}) into an {pnm}
-                     tracking wallet""".format(pnm=g.proj_name),
+	'desc': """Import addresses into an {} tracking wallet""".format(g.proj_name),
 	'usage':'[opts] [mmgen address file]',
 	'options': """
 -h, --help         Print this help message
 --, --longhelp     Print help message for long options (common options)
 -a, --address=a    Import the single coin address 'a'
--b, --batch        Import all addresses in one RPC call.
+-b, --batch        Import all addresses in one RPC call
 -l, --addrlist     Address source is a flat list of non-MMGen coin addresses
 -k, --keyaddr-file Address source is a key-address file
 -q, --quiet        Suppress warnings
 -r, --rescan       Rescan the blockchain.  Required if address to import is
-                   on the blockchain and has a balance.  Rescanning is slow.
+                   in the blockchain and has a balance.  Rescanning is slow.
 """,
 	'notes': """\n
-This command can also be used to update the comment fields of addresses already
-in the tracking wallet.
+This command can also be used to update the comment fields of addresses
+already in the tracking wallet.
 
 The --batch and --rescan options cannot be used together.
 """

+ 1 - 1
mmgen/opts.py

@@ -337,7 +337,7 @@ def init(opts_f,add_opts=[],opt_filter=None):
 	for k in ('prog_name','desc','usage','options','notes'):
 		if k in opts_data: del opts_data[k]
 
-	g.altcoin_data_dir = os.path.join(g.data_dir,'altcoins')
+	g.altcoin_data_dir = os.path.join(g.data_dir_root,'altcoins')
 	warn_altcoins(altcoin_trust_level)
 
 	return args