Skip to content

Commit

Permalink
Adding missing failure check and continue
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-andersen committed Jun 20, 2014
1 parent b3dc6d3 commit 903f81c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/miner/simpleminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ namespace mining
else if(!apply_addendums(resp.addms))
{
LOG_PRINT_L0("Failed to apply_addendum, requesting full scratchpad...");
get_whole_scratchpad();
if (!get_whole_scratchpad())
continue;
}

if (job_requested && resp.job.blob.empty() && resp.job.difficulty.empty() && resp.job.job_id.empty())
Expand Down

0 comments on commit 903f81c

Please sign in to comment.