Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yostra committed Mar 24, 2020
1 parent f93095d commit d51002b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,20 +120,20 @@ async def new_challenge(self, new_challenge: harvester_protocol.NewChallenge):
log.error(f"Retry-Error using prover object on {filename}. Giving up.")
quality_strings = None

if quality_strings is not None:
for index, quality_str in enumerate(quality_strings):
quality = ProofOfSpace.quality_str_to_quality(
new_challenge.challenge_hash, quality_str
)
self.challenge_hashes[quality] = (
new_challenge.challenge_hash,
filename,
uint8(index),
if quality_strings is not None:
for index, quality_str in enumerate(quality_strings):
quality = ProofOfSpace.quality_str_to_quality(
new_challenge.challenge_hash, quality_str
)
response: harvester_protocol.ChallengeResponse = harvester_protocol.ChallengeResponse(
new_challenge.challenge_hash, quality, prover.get_size()
)
all_responses.append(response)
self.challenge_hashes[quality] = (
new_challenge.challenge_hash,
filename,
uint8(index),
)
response: harvester_protocol.ChallengeResponse = harvester_protocol.ChallengeResponse(
new_challenge.challenge_hash, quality, prover.get_size()
)
all_responses.append(response)
for response in all_responses:
yield OutboundMessage(
NodeType.FARMER,
Expand Down

0 comments on commit d51002b

Please sign in to comment.