minor changes, whitespace

This commit is contained in:
The MMGen Project 2019-10-14 20:23:14 +00:00
commit a5ba64a956
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 10 additions and 4 deletions

View file

@ -480,7 +480,8 @@ Removed {{}} duplicate WIF key{{}} from keylist (also in {pnm} key-address file
self.al_id.hl(),t_addrs,self.gen_desc,suf(t_addrs,self.gen_desc_pl),' '*15))
return out
def check_format(self,addr): return True # format is checked when added to list entry object
def check_format(self,addr):
return True # format is checked when added to list entry object
def scramble_seed(self,seed):
is_btcfork = g.proto.base_coin == 'BTC'
@ -613,7 +614,8 @@ Removed {{}} duplicate WIF key{{}} from keylist (also in {pnm} key-address file
else: # First line with idx
out.append(fs.format(e.idx,e.addr,c))
if self.has_keys:
if opt.b16: out.append(fs.format('', 'orig_hex: '+e.sec.orig_hex,c))
if opt.b16:
out.append(fs.format('', 'orig_hex: '+e.sec.orig_hex,c))
out.append(fs.format('','{} {}'.format(self.al_id.mmtype.wif_label,e.sec.wif),c))
for k in ('viewkey','wallet_passwd'):
v = getattr(e,k)
@ -818,7 +820,8 @@ Record this checksum: it will be used to verify the password file in the future
self.pw_id_str = MMGenPWIDString(pw_id_str)
self.set_pw_fmt(pw_fmt)
self.set_pw_len(pw_len)
if chk_params_only: return
if chk_params_only:
return
self.al_id = AddrListID(seed.sid,MMGenPasswordType('P'))
self.data = self.generate(seed,pw_idxs)

View file

@ -41,6 +41,7 @@ class TestSuiteHelp(TestSuiteBase):
arg = '--help',
scripts = ( 'walletgen','walletconv','walletchk','passchg','subwalletgen',
'addrgen','keygen','passgen',
'seedsplit','seedjoin',
'txcreate','txsign','txsend','txdo','txbump',
'addrimport','tool','regtest','autosign')):
for s in scripts:

View file

@ -11,6 +11,8 @@ class unit_test(object):
from mmgen.seed import Seed,SeedShareList
from mmgen.obj import SeedShareIdx
g.debug_subseed = opt.verbose
def basic_ops(master_idx):
test_data = {
'default': (
@ -137,7 +139,7 @@ class unit_test(object):
collisions += shares.data['long'][sid][1]
assert collisions == collisions_chk, collisions
vmsg_r('\n{} collisions, last_sid {}'.format(collisions,last_sid))
vmsg_r('{} collisions, last_sid {}'.format(collisions,last_sid))
msg('OK')
def last_share_collisions():