Browse Source

mmgen-tool: Monero wallet ops fix

The MMGen Project 4 years ago
parent
commit
5be132a84c
3 changed files with 5 additions and 2 deletions
  1. 2 0
      mmgen/protocol.py
  2. 1 0
      mmgen/rpc.py
  3. 2 2
      mmgen/tool.py

+ 2 - 0
mmgen/protocol.py

@@ -482,6 +482,8 @@ class CoinProtocol(MMGenObject):
 	# https://github.com/monero-project/monero/blob/master/src/cryptonote_config.h
 	class Monero(DummyWIF,Base):
 		base_coin      = 'XMR'
+		daemon_data_dir = ( os.path.join('/','c','ProgramData','bitmonero') if g.platform == 'win' else
+							os.path.join(g.home_dir,'.bitmonero') )
 		addr_ver_bytes = { '12': 'monero', '2a': 'monero_sub' }
 		addr_len       = 68
 		wif_ver_num    = {}

+ 1 - 0
mmgen/rpc.py

@@ -558,6 +558,7 @@ class MoneroWalletRPCClient(RPCClient):
 	def __init__(self,host,port,user,passwd):
 		super().__init__(host,port)
 		self.auth = auth_data(user,passwd)
+		self.timeout = 3600 # allow enough time to sync ≈1,000,000 blocks
 		if True:
 			self.set_backend('requests')
 		else: # insecure, for debugging only

+ 2 - 2
mmgen/tool.py

@@ -1076,9 +1076,9 @@ class MMGenToolCmdMonero(MMGenToolCmds):
 				password=d.wallet_passwd )
 			msg('done')
 
-			msg_r('  Getting wallet height...')
+			msg_r('  Getting wallet height (be patient, this could take a long time)...')
 			wallet_height = (await c.call('get_height'))['height']
-			msg('\r  Wallet height: {}        '.format(wallet_height))
+			msg('\r{}\r  Wallet height: {}        '.format(' '*68,wallet_height))
 
 			behind = chain_height - wallet_height
 			if behind > 1000: