|
|
|
@ -31,14 +31,9 @@ block = {
|
|
|
|
|
from time import time
|
|
|
|
|
start_time = time()
|
|
|
|
|
|
|
|
|
|
zeros = 6
|
|
|
|
|
zeros = 4
|
|
|
|
|
MAX_NONCE = 10**10
|
|
|
|
|
NONCES = list(range(MAX_NONCE))
|
|
|
|
|
print(NONCES)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit()
|
|
|
|
|
#for i in range(MAX_NONCE):
|
|
|
|
|
while True:
|
|
|
|
|
text = block["ph"] + str(block["nonce"]) + block["ts"]
|
|
|
|
|
|
|
|
|
@ -46,16 +41,7 @@ while True:
|
|
|
|
|
print("NONCE: ", block["nonce"])
|
|
|
|
|
print("Hash: ", sha(text))
|
|
|
|
|
break
|
|
|
|
|
# Gen new NONCE
|
|
|
|
|
#block["nonce"] = i
|
|
|
|
|
|
|
|
|
|
block["nonce"] = randint(1, MAX_NONCE)
|
|
|
|
|
|
|
|
|
|
print("--- %s seconds ---" % (time() - start_time))
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
from time import time
|
|
|
|
|
start_time = time()
|
|
|
|
|
print("--- %s seconds ---" % (time() - start_time))
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
#17.42
|
|
|
|
|