1
0

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:
SomberNight
2019-08-09 22:02:01 +02:00
parent 0ec9f79402
commit 1c75d939d9
6 changed files with 11 additions and 11 deletions

View File

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

View File

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