Skip to content

Commit

Permalink
Revert "set target to 6"
Browse files Browse the repository at this point in the history
This reverts commit 043cd38.
  • Loading branch information
zachchan105 committed Feb 11, 2024
1 parent 043cd38 commit 6845332
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libethash-cuda/CUDAMiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,12 @@ 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_target(6);
set_header(*reinterpret_cast<hash32_t const*>(header));
if (m_current_target != target)
{
set_target(target);
m_current_target = target;
}

// 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 6845332

Please sign in to comment.