Update SHS.py

This commit is contained in:
Satoshi Nakamoto 2024-08-15 00:19:55 +02:00 committed by GitHub
parent 5eb1ebd76c
commit 6edd710e17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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