added testnet support
This commit is contained in:
parent
03d44bf6eb
commit
467b4e5f63
@ -159,7 +159,7 @@ def DecodeBase58Check(psz):
|
|||||||
def SecretToASecret(privkey):
|
def SecretToASecret(privkey):
|
||||||
vchSecret = privkey[9:9+32]
|
vchSecret = privkey[9:9+32]
|
||||||
# add 1-byte version number
|
# add 1-byte version number
|
||||||
vchIn = "\x80" + vchSecret
|
vchIn = chr(addrtype+128) + vchSecret
|
||||||
return EncodeBase58Check(vchIn)
|
return EncodeBase58Check(vchIn)
|
||||||
|
|
||||||
def ASecretToSecret(key):
|
def ASecretToSecret(key):
|
||||||
@ -706,7 +706,6 @@ def main():
|
|||||||
|
|
||||||
if options.dump:
|
if options.dump:
|
||||||
print json.dumps(json_db, sort_keys=True, indent=4)
|
print json.dumps(json_db, sort_keys=True, indent=4)
|
||||||
|
|
||||||
elif options.key:
|
elif options.key:
|
||||||
if json_db['version'] > max_version:
|
if json_db['version'] > max_version:
|
||||||
print "Version mismatch (must be <= %d)" % max_version
|
print "Version mismatch (must be <= %d)" % max_version
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user