removed extraneous write. check to make sure we dont submit same iter twice

This commit is contained in:
Bill Blanke 2019-11-27 16:34:23 -08:00
parent 43aff9c32c
commit e677754c71

View File

@ -404,19 +404,12 @@ class Timelord:
writer, _, _ = self.active_discriminants[
proof_of_space_info.challenge_hash
]
writer.write(
(
(
str(len(str(proof_of_space_info.iterations_needed)))
+ str(proof_of_space_info.iterations_needed)
).encode()
)
)
await writer.drain()
elif proof_of_space_info.challenge_hash in self.done_discriminants:
return
if proof_of_space_info.challenge_hash not in self.pending_iters:
self.pending_iters[proof_of_space_info.challenge_hash] = []
self.pending_iters[proof_of_space_info.challenge_hash].append(
proof_of_space_info.iterations_needed
if proof_of_space_info.iterations_needed not in self.pending_iters[proof_of_space_info.challenge_hash]:
self.pending_iters[proof_of_space_info.challenge_hash].append(
proof_of_space_info.iterations_needed
)