Skip to content

Commit

Permalink
Merge pull request #124 from Chia-Network/fix_harvester
Browse files Browse the repository at this point in the history
Fix Harvester
  • Loading branch information
Yostra authored Mar 24, 2020
2 parents f93095d + 51ae42d commit 02e9695
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ 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
)
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,
Expand Down

0 comments on commit 02e9695

Please sign in to comment.