added block type filter for public get blocks endpoint

This commit is contained in:
Kevin Froman 2020-09-25 05:17:08 +00:00
parent 02cdbc75ce
commit 68a557daf5
4 changed files with 29 additions and 26 deletions

View file

@ -116,7 +116,6 @@ class SubprocessPOW:
metadata['n'] = secrets.randbits(16)
puzzle = self.puzzle
difficulty = self.difficulty
start = time.time()
while True:
# Break if shutdown received
@ -136,6 +135,5 @@ class SubprocessPOW:
token = bytesconverter.bytes_to_str(token)
if puzzle == token[0:difficulty]:
pipe.send(payload)
print(metadata['pow'], time.time() - start)
break
nonce += 1