1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Make header larger on gen stratum work to accomodate \0 at the end.

This commit is contained in:
Con Kolivas 2012-11-11 22:57:48 +11:00
parent 96b372c1bf
commit 1832dbd7f6

View File

@ -5105,7 +5105,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
{ {
unsigned char *coinbase, merkle_root[32], merkle_sha[64], *merkle_hash; unsigned char *coinbase, merkle_root[32], merkle_sha[64], *merkle_hash;
int len, cb1_len, n1_len, cb2_len, i; int len, cb1_len, n1_len, cb2_len, i;
char header[256], *nonce2; char header[260], *nonce2;
uint32_t *data32, *swap32; uint32_t *data32, *swap32;
memset(work->job_id, 0, 64); memset(work->job_id, 0, 64);