Skip to content

Commit

Permalink
set target to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
zachchan105 committed Feb 11, 2024
1 parent 8708f5a commit 043cd38
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libethash-cuda/CUDAMiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,7 @@ void CUDAMiner::compileKernel(uint64_t period_seed, uint64_t dag_elms, CUfunctio

void CUDAMiner::search(uint8_t const* header, uint64_t target, uint64_t start_nonce, const dev::eth::WorkPackage& w)
{
set_header(*reinterpret_cast<hash32_t const*>(header));
if (m_current_target != target)
{
set_target(target);
m_current_target = target;
}
set_target(6);

// If upper 64 bits of target are 0xffffffffffffffff then any nonce would
// be considered valid by GPU. Skip job.
Expand Down

0 comments on commit 043cd38

Please sign in to comment.