set config options directly; prefix bitcoind options with 'bitcoind_'

for virtualchain
This commit is contained in:
Jude Nelson
2016-06-15 17:40:44 -04:00
parent bc27326a74
commit 0b79d37e5a
2 changed files with 5 additions and 3 deletions

View File

@@ -1102,9 +1102,6 @@ def setup( working_dir=None, return_parser=False ):
Otherwise return None.
"""
global blockstack_opts
global bitcoin_opts
# set up our implementation
if working_dir is not None:
if not os.path.exists( working_dir ):
@@ -1119,6 +1116,8 @@ def setup( working_dir=None, return_parser=False ):
blockstack_opts = opts['blockstack']
bitcoin_opts = opts['bitcoind']
log.debug("config:\n%s" % json.dumps(opts, sort_keys=True, indent=4))
# merge in command-line bitcoind options
config_file = virtualchain.get_config_filename()
@@ -1137,6 +1136,7 @@ def setup( working_dir=None, return_parser=False ):
# store options
set_bitcoin_opts( bitcoin_opts )
set_blockstack_opts( blockstack_opts )
if return_parser:
return argparser