Skip to content
Permalink
Browse files

1.0.0.9-Leisure Upgrade

- Ensure time is encoded properly for both stratum & non-stratum modes
  • Loading branch information
biblepay committed Oct 24, 2019
1 parent 66cb3a2 commit 3008c89150a72c69c9bf7d1f7f0fcd98ee45637f
@@ -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};
BIN +0 Bytes (100%) binaries/bbpminer-x86.exe
Binary file not shown.
BIN +0 Bytes (100%) binaries/bbpminer32.exe
Binary file not shown.
BIN +40 Bytes (100%) binaries/bbpminer_linux
Binary file not shown.
@@ -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;
@@ -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);

0 comments on commit 3008c89

Please sign in to comment.
You can’t perform that action at this time.