Config: remove test_suite key from initializer dict

This commit is contained in:
The MMGen Project 2026-09-15 10:51:04 +00:00
commit 6f4dbcbf9c
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
4 changed files with 5 additions and 10 deletions

View file

@ -50,9 +50,7 @@ async def main(coins):
base_cfg = Config({'pager':True})
for coin in coins:
cfg_in = {
'coin': coin,
'test_suite': test_suite}
cfg_in = {'coin': coin}
if coin == 'eth' and not test_suite:
cfg_in.update({'daemon_id': 'geth'})
cfgs[coin] = Config(cfg_in)

View file

@ -404,10 +404,7 @@ class Autosign:
cfg = self.cfg,
prompt = f'Default wallet ‘{wf}’ found.\nUse default wallet for autosigning?',
default_yes = True):
ss_in = Wallet(Config({
'test_suite': self.cfg.test_suite,
'aes_backend': self.cfg.aes_backend
}), fn=wf)
ss_in = Wallet(Config({'aes_backend': self.cfg.aes_backend}), fn=wf)
else:
ss_in = get_mn_wallet()

View file

@ -260,7 +260,7 @@ class Config(Lockable):
xmrwallet_compat = False
priority = 0
test_suite = False # 22 references
test_suite = False # 13 references
# external use:
_opts = None

View file

@ -19,7 +19,7 @@ from mmgen.proto.rune.tx.protobuf import (
from ..include.common import vmsg, qmsg, silence, end_silence
test_cfg = Config({'coin': 'rune', 'test_suite': True})
test_cfg = Config({'coin': 'rune'})
_pv = namedtuple('parse_vector', ['fn', 'txid', 'parms', 'null_fee'], defaults=[None])
@ -209,7 +209,7 @@ class unit_tests:
from ..cmdtest_d.httpd.thornode.rpc import ThornodeRPCServer
silence()
regtest_cfg = Config({'coin': 'rune', 'regtest': True, 'test_suite': True})
regtest_cfg = Config({'coin': 'rune', 'regtest': True})
end_silence()
thornode_server = ThornodeRPCServer(test_cfg)