mmgen-regtest: set --bdb-wallet according to coin

This commit is contained in:
The MMGen Project 2026-10-15 09:35:53 +00:00
commit 08376aba3f
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 2 additions and 3 deletions

View file

@ -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:

View file

@ -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