gentest.py: minor fixes, upgrade DASH testing status

This commit is contained in:
The MMGen Project 2022-10-07 19:48:51 +00:00
commit 14d40b2b9d
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 4 additions and 4 deletions

View file

@ -99,7 +99,7 @@ class CoinInfo(object):
ce('CryptoBullion', 'CBX', 0x8b, (0x0b,'5'), None, False, 0),
ce('Cryptonite', 'XCN', 0x80, (0x1c,'C'), None, False, 0),
ce('CryptoPennies', 'CRPS', 0xc2, (0x42,'T'), None, False, 0),
ce('Dash', 'DASH', 0xcc, (0x4c,'X'), (0x10,'7'), False, 1),
ce('Dash', 'DASH', 0xcc, (0x4c,'X'), (0x10,'7'), False, 2),
ce('Decred', 'DCR', 0x22de, (0x073f,'D'), (0x071a,'D'), False, 1),
ce('DeepOnion', 'ONION', 0x9f, (0x1f,'D'), None, False, 1),
ce('Defcoin', 'DFC', 0x9e, (0x1e,'D'), (0x05,'3'), False, 1),
@ -696,8 +696,8 @@ class CoinInfo(object):
}
external_tests_blacklist = {
# Unconditionally block testing of the given coin/addr_type with given tool, or all coins if True
'legacy': { 'pycoin': ('DASH',) },
'segwit': { 'pycoin': ('LTC',), 'keyconv': True },
'legacy': {},
'segwit': { 'keyconv': True },
'bech32': { 'keyconv': True },
}

View file

@ -394,7 +394,7 @@ def ab_test(proto,cfg):
if cfg.all_backends: # check all backends against external tool
for n in range(len(get_backends(addr_type.pubkey_type))):
do_ab_test( proto, cfg, addr_type, gen1=n+1, kg2=kg2, ag=ag, tool=tool, cache_data=not n )
do_ab_test( proto, cfg, addr_type, gen1=n+1, kg2=kg2, ag=ag, tool=tool, cache_data=cfg.rounds < 1000 and not n )
else: # check specific backend against external tool or another backend
do_ab_test( proto, cfg, addr_type, gen1=cfg.gen1, kg2=kg2, ag=ag, tool=tool, cache_data=False )