Skip to content

Commit

Permalink
decred algo for longpoll/getwork
Browse files Browse the repository at this point in the history
Signed-off-by: Tanguy Pruvot <[email protected]>
  • Loading branch information
tpruvot committed Feb 11, 2016
1 parent 6e9fe54 commit 6e95407
Show file tree
Hide file tree
Showing 11 changed files with 590 additions and 56 deletions.
6 changes: 3 additions & 3 deletions Algo256/blake256.cu
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ extern "C" int scanhash_blake256(int thr_id, struct work* work, uint32_t max_non

if (opt_benchmark) {
targetHigh = 0x1ULL << 32;
ptarget[6] = swab32(0x00ff);
ptarget[6] = swab32(0xff);
}

if (!init[thr_id])
Expand Down Expand Up @@ -519,9 +519,9 @@ extern "C" int scanhash_blake256(int thr_id, struct work* work, uint32_t max_non
if (foundNonce != UINT32_MAX)
{
uint32_t vhashcpu[8];
uint32_t Htarg = (uint32_t)targetHigh;
uint32_t Htarg = ptarget[6];

for (int k=0; k < 19; k++)
for (int k=16; k < 19; k++)
be32enc(&endiandata[k], pdata[k]);

be32enc(&endiandata[19], foundNonce);
Expand Down
Loading

0 comments on commit 6e95407

Please sign in to comment.