commands: change API of "make_seed" and "create" commands
instead of "segwit" boolean, take a "seed_type" optional arg default seed_type to "segwit" previously these commands created legacy seeds by defalt
This commit is contained in:
@@ -120,7 +120,7 @@ class Test_NewMnemonic(SequentialTestCase):
|
||||
iters = 10
|
||||
m = mnemonic.Mnemonic(lang='en')
|
||||
for _ in range(iters):
|
||||
seed = m.make_seed()
|
||||
seed = m.make_seed("standard")
|
||||
i = m.mnemonic_decode(seed)
|
||||
self.assertEqual(m.mnemonic_encode(i), seed)
|
||||
|
||||
|
||||
@@ -156,7 +156,6 @@ class TestCreateRestoreWallet(WalletTestCase):
|
||||
passphrase=passphrase,
|
||||
password=password,
|
||||
encrypt_file=encrypt_file,
|
||||
segwit=True,
|
||||
gap_limit=1)
|
||||
wallet = d['wallet'] # type: Standard_Wallet
|
||||
wallet.check_password(password)
|
||||
|
||||
Reference in New Issue
Block a user