added block type filter for public get blocks endpoint
This commit is contained in:
parent
02cdbc75ce
commit
68a557daf5
4 changed files with 29 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue