Skip to content

Commit

Permalink
Merge pull request #44 from alephium/submit-solutions-always
Browse files Browse the repository at this point in the history
Submit solutions always
  • Loading branch information
polarker authored Dec 19, 2021
2 parents 35cdbf6 + f259e62 commit 865df98
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ std::mutex write_mutex;
uint8_t write_buffer[4096 * 1024];
void submit_new_block(mining_worker_t *worker)
{
if (!expire_template_for_new_block(load_worker__template(worker)))
{
printf("mined a parallel block, will not submit\n");
return;
}
expire_template_for_new_block(load_worker__template(worker));

const std::lock_guard<std::mutex> lock(write_mutex);

Expand Down Expand Up @@ -139,8 +135,6 @@ void worker_stream_callback(cudaStream_t stream, cudaError_t status, void *data)
free_template(template_ptr);
worker->async.data = worker;
uv_async_send(&(worker->async));


}

void start_mining()
Expand Down

0 comments on commit 865df98

Please sign in to comment.