mmgen-regtest: set --bdb-wallet according to coin
This commit is contained in:
parent
e3b02b7098
commit
08376aba3f
2 changed files with 2 additions and 3 deletions
|
|
@ -494,8 +494,6 @@ class Config(Lockable):
|
|||
if self.test_user or self.regtest:
|
||||
if self.coin != 'XMR':
|
||||
self.network = 'regtest'
|
||||
if gc.prog_name == 'mmgen-regtest' and self.coin != 'BTC':
|
||||
self.bdb_wallet = True
|
||||
if not self.test_suite: # could be set in environment
|
||||
self._use_cfg_file = False
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ from .util import die, async_run
|
|||
|
||||
opts_data = {
|
||||
'sets': [('yes', True, 'quiet', True)],
|
||||
'overrides': [('coin', 'BTC', 'bdb_wallet', False)],
|
||||
'text': {
|
||||
'desc': f'Coin daemon regression test mode setup and operations for the {gc.proj_name} suite',
|
||||
'usage': '[opts] <command>',
|
||||
|
|
@ -58,7 +59,7 @@ opts_data = {
|
|||
}
|
||||
}
|
||||
|
||||
cfg = Config(opts_data=opts_data, init_opts={'regtest': True})
|
||||
cfg = Config(opts_data=opts_data, init_opts={'regtest': True, 'bdb_wallet': True})
|
||||
|
||||
cmd_args = cfg._args
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue