Merge pull request #5 from joemarct/master

Generating addresses for DASH testnet
This commit is contained in:
Ran Aroussi 2018-01-22 16:37:10 +02:00 committed by GitHub
commit 7daf9870bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

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

View File

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