Browse Source

add --http-timeout long option

The MMGen Project 3 years ago
parent
commit
7eacab5622
3 changed files with 3 additions and 2 deletions
  1. 1 1
      mmgen/globalvars.py
  2. 1 0
      mmgen/opts.py
  3. 1 1
      test/test_py_d/ts_ethdev.py

+ 1 - 1
mmgen/globalvars.py

@@ -167,7 +167,7 @@ class GlobalContext(Lockable):
 		'rpc_host','rpc_port','rpc_user','rpc_password','rpc_backend','aiohttp_rpc_queue_len',
 		'monero_wallet_rpc_host','monero_wallet_rpc_user','monero_wallet_rpc_password',
 		'daemon_data_dir','force_256_color','regtest','coin','bob','alice',
-		'accept_defaults','token','ignore_daemon_version','daemon_id'
+		'accept_defaults','token','ignore_daemon_version','daemon_id','http_timeout',
 	)
 	# opts initialized to None by opts.init() if not set by user
 	required_opts = (

+ 1 - 0
mmgen/opts.py

@@ -190,6 +190,7 @@ common_opts_data = {
 --, --daemon-data-dir=path Specify {dn} data directory location
 --, --daemon-id=ID         Specify the coin daemon ID
 --, --ignore-daemon-version Ignore {dn} version check
+--, --http-timeout=t       Set HTTP timeout in seconds for JSON-RPC connections
 --, --no-license           Suppress the GPL license prompt
 --, --rpc-host=host        Communicate with {dn} running on host 'host'
 --, --rpc-port=port        Communicate with {dn} listening on port 'port'

+ 1 - 1
test/test_py_d/ts_ethdev.py

@@ -139,7 +139,7 @@ coin = g.coin
 class TestSuiteEthdev(TestSuiteBase,TestSuiteShared):
 	'Ethereum transacting, token deployment and tracking wallet operations'
 	networks = ('eth','etc')
-	passthru_opts = ('coin',)
+	passthru_opts = ('coin','daemon_id','http_timeout')
 	extra_spawn_args = ['--regtest=1']
 	tmpdir_nums = [22]
 	solc_vers = ('0.5.1','0.5.3') # 0.5.1: Raspbian Stretch, 0.5.3: Ubuntu Bionic