del debug code
This commit is contained in:
parent
01ed155296
commit
a7655f47a6
@ -1077,6 +1077,3 @@ class TransactionConstructorTests(unittest.TestCase):
|
|||||||
"9747e865b06345bbf8f9e01ffffffff01c04dc103000000001976a914ad204de226b3d1"
|
"9747e865b06345bbf8f9e01ffffffff01c04dc103000000001976a914ad204de226b3d1"
|
||||||
"1a70dc53b4998f4603e138ff3f88ac00000000")
|
"1a70dc53b4998f4603e138ff3f88ac00000000")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class Wallet():
|
|||||||
init_vector = bytes.fromhex(init_vector)
|
init_vector = bytes.fromhex(init_vector)
|
||||||
else:
|
else:
|
||||||
init_vector = decode_base58_with_checksum(init_vector)
|
init_vector = decode_base58_with_checksum(init_vector)
|
||||||
elif is_xpublic_key_valid(init_vector):
|
elif is_xpublic_key_valid(init_vector):
|
||||||
if len(init_vector) == 156:
|
if len(init_vector) == 156:
|
||||||
init_vector = bytes.fromhex(init_vector)
|
init_vector = bytes.fromhex(init_vector)
|
||||||
else:
|
else:
|
||||||
@ -101,8 +101,6 @@ class Wallet():
|
|||||||
self.create_account("%s_internal" % account, [44|HARDENED_KEY, HARDENED_KEY, account, 1])
|
self.create_account("%s_internal" % account, [44|HARDENED_KEY, HARDENED_KEY, account, 1])
|
||||||
|
|
||||||
def get_bip44_address(self, i, chain="external", account_index=0, address_type="P2WPKH"):
|
def get_bip44_address(self, i, chain="external", account_index=0, address_type="P2WPKH"):
|
||||||
|
|
||||||
print(chain)
|
|
||||||
if chain not in ("internal", "external"):
|
if chain not in ("internal", "external"):
|
||||||
raise ValueError("chain should be inetrnal or external")
|
raise ValueError("chain should be inetrnal or external")
|
||||||
account_name = "%s_%s" % (account_index, chain)
|
account_name = "%s_%s" % (account_index, chain)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user