Skip to content

Commit

Permalink
1.0.0.9-Leisure Upgrade
Browse files Browse the repository at this point in the history
- Ensure time is encoded properly for both stratum & non-stratum modes
  • Loading branch information
biblepay committed Oct 24, 2019
1 parent 66cb3a2 commit 3008c89
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion algo/x11.c
Expand Up @@ -157,7 +157,7 @@ int scanhash_pobh2(int thr_id, uint32_t *pdata, const uint32_t *ptarget, uint32_
uint32_t endiandata[20] __attribute__((aligned(128)));
const uint32_t first_nonce = pdata[19];
const uint32_t starttime = pdata[17] + thr_id;
be32enc(&pdata[17], starttime);
le32enc(&pdata[17], starttime);
uint32_t nonce = first_nonce;
bool fLate = false;
uint8_t pobhhash[32] = {0x0};
Expand Down
Binary file modified binaries/bbpminer-x86.exe
Binary file not shown.
Binary file modified binaries/bbpminer32.exe
Binary file not shown.
Binary file modified binaries/bbpminer_linux
Binary file not shown.
6 changes: 3 additions & 3 deletions cpu-miner.c
Expand Up @@ -118,7 +118,7 @@ static const char *algo_names[] = {
[ALGO_SHA256D] = "sha256d",
};

int BBP_VERSION = 1008;
int BBP_VERSION = 1009;
bool fSolo = false;
bool fDebug = false;
bool opt_debug = false;
Expand Down Expand Up @@ -913,8 +913,8 @@ static bool submit_upstream_work(CURL *curl, struct work *work)
{
uint32_t ntime, nonce;
char ntimestr[9], noncestr[9], *xnonce2str, *req;

le32enc(&ntime, work->data[17]);
// ? Nomp requires be32enc time here: Solo mining requires le32 (as-is)
be32enc(&ntime, work->data[17]);
le32enc(&nonce, work->data[19]);
bin2hex(ntimestr, (const unsigned char *)(&ntime), 4);
bin2hex(noncestr, (const unsigned char *)(&nonce), 4);
Expand Down

0 comments on commit 3008c89

Please sign in to comment.