fix call to initialize segwit wallet

This commit is contained in:
Jude Nelson
2017-09-20 18:10:18 -04:00
parent 81a274210b
commit d7465bd1c1

View File

@@ -206,12 +206,13 @@ def make_wallet(password, payment_privkey_info=None, owner_privkey_info=None, da
raise Exception("Not in testing but tried to make a legacy wallet")
if segwit is None:
# no preference given.
segwit = virtualchain.get_features('segwit')
# default to 2-of-3 multisig key info if data isn't given
if segwit:
payment_privkey_info = virtualchain.make_multisig_segwit_info(2,3) if payment_privkey_info is None and not test_legacy else payment_privkey_info
owner_privkey_info = virtualchain.make_multisig_segwit_info(2,3) if owner_privkey_info is None and not test_legacy else owner_privkey_info
payment_privkey_info = virtualchain.make_multisig_segwit_wallet(2,3) if payment_privkey_info is None and not test_legacy else payment_privkey_info
owner_privkey_info = virtualchain.make_multisig_segwit_wallet(2,3) if owner_privkey_info is None and not test_legacy else owner_privkey_info
else:
payment_privkey_info = virtualchain.make_multisig_wallet(2,3) if payment_privkey_info is None and not test_legacy else payment_privkey_info