@@ -120,20 +120,20 @@ async def new_challenge(self, new_challenge: harvester_protocol.NewChallenge):
120120 log .error (f"Retry-Error using prover object on { filename } . Giving up." )
121121 quality_strings = None
122122
123- if quality_strings is not None :
124- for index , quality_str in enumerate (quality_strings ):
125- quality = ProofOfSpace .quality_str_to_quality (
126- new_challenge .challenge_hash , quality_str
127- )
128- self .challenge_hashes [quality ] = (
129- new_challenge .challenge_hash ,
130- filename ,
131- uint8 (index ),
123+ if quality_strings is not None :
124+ for index , quality_str in enumerate (quality_strings ):
125+ quality = ProofOfSpace .quality_str_to_quality (
126+ new_challenge .challenge_hash , quality_str
132127 )
133- response : harvester_protocol .ChallengeResponse = harvester_protocol .ChallengeResponse (
134- new_challenge .challenge_hash , quality , prover .get_size ()
135- )
136- all_responses .append (response )
128+ self .challenge_hashes [quality ] = (
129+ new_challenge .challenge_hash ,
130+ filename ,
131+ uint8 (index ),
132+ )
133+ response : harvester_protocol .ChallengeResponse = harvester_protocol .ChallengeResponse (
134+ new_challenge .challenge_hash , quality , prover .get_size ()
135+ )
136+ all_responses .append (response )
137137 for response in all_responses :
138138 yield OutboundMessage (
139139 NodeType .FARMER ,
0 commit comments