Merge pull request #5 from joemarct/master
Generating addresses for DASH testnet
This commit is contained in:
commit
7daf9870bd
@ -131,7 +131,7 @@ class Wallet(object):
|
|||||||
else:
|
else:
|
||||||
raise ValueError("parameter must be an int or long")
|
raise ValueError("parameter must be an int or long")
|
||||||
|
|
||||||
self.network = network
|
self.network = Wallet.get_network(network)
|
||||||
self.depth = l(depth)
|
self.depth = l(depth)
|
||||||
if (isinstance(parent_fingerprint, six.string_types) or
|
if (isinstance(parent_fingerprint, six.string_types) or
|
||||||
isinstance(parent_fingerprint, six.binary_type)):
|
isinstance(parent_fingerprint, six.binary_type)):
|
||||||
@ -657,6 +657,8 @@ class Wallet(object):
|
|||||||
response = BitcoinGoldMainNet
|
response = BitcoinGoldMainNet
|
||||||
elif network == "dash" or network == "DASH":
|
elif network == "dash" or network == "DASH":
|
||||||
response = DashMainNet
|
response = DashMainNet
|
||||||
|
elif network == 'dash_testnet' or network == 'DASHTEST':
|
||||||
|
response = DashTestNet
|
||||||
else:
|
else:
|
||||||
response = network
|
response = network
|
||||||
return response
|
return response
|
||||||
|
|||||||
@ -80,6 +80,8 @@ def get_network(network='btctest'):
|
|||||||
return BitcoinGoldMainNet
|
return BitcoinGoldMainNet
|
||||||
elif network == "dash" or network == "dash":
|
elif network == "dash" or network == "dash":
|
||||||
return DashMainNet
|
return DashMainNet
|
||||||
|
elif network == "dash_testnet" or network == 'dashtest':
|
||||||
|
return DashTestNet
|
||||||
|
|
||||||
return BitcoinTestNet
|
return BitcoinTestNet
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user