Skip to content

Commit

Permalink
rename block as solution
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Dec 16, 2021
1 parent b9e2a92 commit 73a14a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void submit_new_block(mining_worker_t *worker)

ssize_t buf_size = write_new_block(worker, write_buffer);
uv_buf_t buf = uv_buf_init((char *)write_buffer, buf_size);
print_hex("new block", (uint8_t *) hasher_buf(worker, true), 32);
print_hex("new solution", (uint8_t *) hasher_buf(worker, true), 32);

uv_write_t *write_req = (uv_write_t *)malloc(sizeof(uv_write_t));
uint32_t buf_count = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/template.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ 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 block mined, remove the outdated template\n");
printf("new solution found, remove the outdated template\n");
store_template(chain_index, NULL);
free_template(latest_template);
return true;
Expand Down

0 comments on commit 73a14a1

Please sign in to comment.