Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Dec 18, 2021
1 parent da25d24 commit 35cdbf6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/blake3/original-blake.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ __global__ void blake3_hasher_mine(void *global_hasher)

if (check_hash(hasher->hash, hasher->target, hasher->from_group, hasher->to_group))
{
printf("tid %d found it !!\n", tid);
if (atomicCAS(&reinterpret_cast<blake3_hasher*>(global_hasher)->found_good_hash, 0, 1) == 0)
{
copy_good_nonce(hasher, reinterpret_cast<blake3_hasher*>(global_hasher));
Expand Down
2 changes: 1 addition & 1 deletion src/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ int main(int argc, char **argv)

uv_timer_t log_timer;
uv_timer_init(loop, &log_timer);
uv_timer_start(&log_timer, log_hashrate, 5000, 5000);
uv_timer_start(&log_timer, log_hashrate, 5000, 20000);

uv_run(loop, UV_RUN_DEFAULT);

Expand Down
1 change: 0 additions & 1 deletion src/template.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ bool expire_template_for_new_block(mining_template_t *template_ptr)

mining_template_t *latest_template = load_template(chain_index);
if (latest_template) {
printf("new solution found, remove the outdated template\n");
store_template(chain_index, NULL);
free_template(latest_template);
return true;
Expand Down
1 change: 0 additions & 1 deletion src/worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ ssize_t write_new_block(mining_worker_t *worker, uint8_t *write_buf) {
ssize_t block_size = 24 + job->header_blob.len + job->txs_blob.len;
ssize_t message_size = 1 + 4 + block_size;

printf("message: %zd\n", message_size);
write_size(&write_pos, message_size);
write_byte(&write_pos, 0); // message type
write_size(&write_pos, block_size);
Expand Down

0 comments on commit 35cdbf6

Please sign in to comment.