@@ -203,8 +203,8 @@ std::pair<std::string, Program> Finder::checkProgramBasic(
203
203
if (!is_new) {
204
204
// check if another miner already submitted a program for this sequence
205
205
if (change_type == first) {
206
- Log::get ().warn (" Skipping update of " + seq.id_str () +
207
- " because program is not new" );
206
+ Log::get ().debug (" Skipping update of " + seq.id_str () +
207
+ " because program is not new" );
208
208
return result;
209
209
}
210
210
// fall back to default validation if metadata is missing
@@ -216,8 +216,8 @@ std::pair<std::string, Program> Finder::checkProgramBasic(
216
216
}
217
217
// compare with hash of existing program
218
218
if (previous_hash != ProgramUtil::hash (existing)) {
219
- Log::get ().warn (" Skipping update of " + seq.id_str () +
220
- " because of hash mismatch" );
219
+ Log::get ().debug (" Skipping update of " + seq.id_str () +
220
+ " because of hash mismatch" );
221
221
return result;
222
222
}
223
223
}
@@ -353,12 +353,12 @@ std::string Finder::isOptimizedBetter(Program existing, Program optimized,
353
353
const auto existing_steps = evaluator.eval (existing, tmp, num_terms, false );
354
354
355
355
// compare number of successfully computed terms
356
- int64_t existing_runs = existing_steps. runs ;
357
- int64_t optimized_runs = static_cast <int64_t >(
358
- static_cast < double >( optimized_steps.runs ) * THRESHOLD_BETTER) ;
359
- if (optimized_runs > existing_runs ) {
356
+ int64_t existing_terms = static_cast < int64_t >(
357
+ static_cast <double >(existing_steps. runs ) * THRESHOLD_BETTER);
358
+ int64_t optimized_terms = optimized_steps.runs ;
359
+ if (optimized_terms > existing_terms ) {
360
360
return " Better" ;
361
- } else if (optimized_runs < existing_runs ) {
361
+ } else if (optimized_terms < existing_terms ) {
362
362
return not_better; // worse
363
363
}
364
364
0 commit comments