From 791cf2aaafdc522bbcc91f766665cf6d780ad3e7 Mon Sep 17 00:00:00 2001 From: Joemar Taganna Date: Fri, 19 Jan 2018 23:29:46 +0800 Subject: [PATCH 1/3] Added DASH testnet in get_networks --- pywallet/wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pywallet/wallet.py b/pywallet/wallet.py index 691c970..e8c7426 100644 --- a/pywallet/wallet.py +++ b/pywallet/wallet.py @@ -80,6 +80,8 @@ def get_network(network='btctest'): return BitcoinGoldMainNet elif network == "dash" or network == "dash": return DashMainNet + elif network == "dash_testnet" or network == 'dashtest': + return DashTestNet return BitcoinTestNet From 9b4db25f86844d9bf54c43b8ceba0e0dfddc10bd Mon Sep 17 00:00:00 2001 From: Joemar Taganna Date: Sat, 20 Jan 2018 00:02:11 +0800 Subject: [PATCH 2/3] Update bip32.py --- pywallet/utils/bip32.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pywallet/utils/bip32.py b/pywallet/utils/bip32.py index b560315..51f07fc 100644 --- a/pywallet/utils/bip32.py +++ b/pywallet/utils/bip32.py @@ -657,6 +657,8 @@ class Wallet(object): response = BitcoinGoldMainNet elif network == "dash" or network == "DASH": response = DashMainNet + elif network == 'dash_testnet' or network == 'DASHTEST': + response = DashTestNet else: response = network return response From 64bdc5dd4d18eabe1633cf0bae9f8f3d9a920e1b Mon Sep 17 00:00:00 2001 From: Joemar Taganna Date: Sat, 20 Jan 2018 00:04:03 +0800 Subject: [PATCH 3/3] Update bip32.py --- pywallet/utils/bip32.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywallet/utils/bip32.py b/pywallet/utils/bip32.py index 51f07fc..50697a4 100644 --- a/pywallet/utils/bip32.py +++ b/pywallet/utils/bip32.py @@ -131,7 +131,7 @@ class Wallet(object): else: raise ValueError("parameter must be an int or long") - self.network = network + self.network = Wallet.get_network(network) self.depth = l(depth) if (isinstance(parent_fingerprint, six.string_types) or isinstance(parent_fingerprint, six.binary_type)):