mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Fix endianness of nonce submitted for stratum.
This commit is contained in:
parent
aa6aa29c4d
commit
61360952f5
@ -2738,7 +2738,7 @@ static void *submit_work_thread(void *userdata)
|
|||||||
mutex_unlock(&sshare_lock);
|
mutex_unlock(&sshare_lock);
|
||||||
|
|
||||||
sprintf(s, "{\"params\": [\"%s\", \"%s\", \"%s\", \"%s\", \"%08lx\"], \"id\": %d, \"method\": \"mining.submit\"}",
|
sprintf(s, "{\"params\": [\"%s\", \"%s\", \"%s\", \"%s\", \"%08lx\"], \"id\": %d, \"method\": \"mining.submit\"}",
|
||||||
pool->rpc_user, work->job_id, work->nonce2, work->ntime, (unsigned long)work->blk.nonce, sshare->id);
|
pool->rpc_user, work->job_id, work->nonce2, work->ntime, (unsigned long)htobe32(work->blk.nonce), sshare->id);
|
||||||
|
|
||||||
sock_send(pool->sock, s, strlen(s));
|
sock_send(pool->sock, s, strlen(s));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user