mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-15 12:50:38 +02:00
Update SHS.py
This commit is contained in:
parent
5eb1ebd76c
commit
6edd710e17
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ host = 'pool.pyblock.xyz'
|
|||
port = 3333
|
||||
|
||||
def main():
|
||||
print("Satoshi:{}\n\nNonce:{}\n".format(address,nonce))
|
||||
print("\nSatoshi:{}\n\nNonce:{}\n".format(address,nonce))
|
||||
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.connect((host,port))
|
||||
|
|
@ -64,7 +64,7 @@ def main():
|
|||
|
||||
hash = hashlib.sha256(hashlib.sha256(binascii.unhexlify(blockheader)).digest()).digest()
|
||||
hash = binascii.hexlify(hash).decode()
|
||||
if(hash[:5] == '00000'): print('Hash: {}\n'.format(hash))
|
||||
if(hash[:5] == '00000'): print('Hash: {}'.format(hash))
|
||||
if hash < target :
|
||||
print('\nSuccess!!\n')
|
||||
print('\nHash: {}\n'.format(hash))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue