Skip to content

Commit

Permalink
numpy 64 bit balance support
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaacdelly authored Dec 8, 2017
1 parent b91e1b0 commit 45b8d53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plutus.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import ecdsa
import hashlib
import time
import numpy

class pause:
p = 0
Expand All @@ -22,9 +23,7 @@ def publicKey(privatekey):

def address(publickey):
alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
c = '0'
byte = '00'
zero = 0
c = '0'; byte = '00'; zero = 0
var = hashlib.new('ripemd160')
var.update(hashlib.sha256(binascii.unhexlify(publickey.encode())).digest())
a = (byte + var.hexdigest())
Expand Down Expand Up @@ -60,7 +59,7 @@ def balance(address):
print("\nHTTP Error Code: " + str(API.status_code) + "\nRetrying in 5 seconds\n")
time.sleep(5)
return -1
balance = int(API.text)
balance = numpy.int64(API.text)
pause.p = 0
return balance
except:
Expand Down

0 comments on commit 45b8d53

Please sign in to comment.