Skip to content

Commit

Permalink
Fix critical submission target bug
Browse files Browse the repository at this point in the history
  • Loading branch information
azlehria committed Mar 24, 2018
1 parent 32b5a6e commit 5330384
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions cpp/hybridminer/cuda_sha3.cu
Expand Up @@ -567,12 +567,11 @@ bool find_message( uint64_t target, uint8_t * hash_prefix )
print_counter++;

// maybe breaking the control codes into macros is a good idea . . .
printf( "\x1b[s\x1b[3;67f\x1b[38;5;221m%*.2f\x1b[0m\x1b[u",
8, ( (double)printable_hashrate_cnt / t / 1000000 ) );
}

printf( "\x1b[s\x1b[3;29f\x1b[38;5;208m%*" PRIu64 "\x1b[0m\x1b[u",
printf( "\x1b[s\x1b[3;67f\x1b[38;5;221m%*.2f\x1b[0m\x1b[u"
"\x1b[s\x1b[3;29f\x1b[38;5;208m%*" PRIu64 "\x1b[0m\x1b[u",
8, ( (double)printable_hashrate_cnt / t / 1000000 ),
26, printable_hashrate_cnt );
}

return ( h_done[0] > 0 );
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/hybridminer/cudasolver.cu
Expand Up @@ -251,7 +251,7 @@ CUDASolver::bytes_t CUDASolver::findSolution()
hash_prefix[i + 32] = (uint8_t)m_address[i];
}

uint32_t diff = m_diff;
uint64_t diff = m_diff;

CUDASolver::bytes_t byte_solution( 32 );
h_done[0] = 0;
Expand Down

0 comments on commit 5330384

Please sign in to comment.