mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Calculate midstate for gbt work and remove now unused variable.
This commit is contained in:
parent
0ba5f0f94b
commit
8bc677a6ca
@ -1506,6 +1506,7 @@ static void gen_gbt_work(struct pool *pool, struct work *work)
|
|||||||
free(header);
|
free(header);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
calc_midstate(work);
|
||||||
local_work++;
|
local_work++;
|
||||||
work->pool = pool;
|
work->pool = pool;
|
||||||
work->gbt = true;
|
work->gbt = true;
|
||||||
@ -2298,7 +2299,6 @@ static bool submit_upstream_work(struct work *work, CURL *curl, bool resubmit)
|
|||||||
if (work->gbt) {
|
if (work->gbt) {
|
||||||
char gbt_block[1024], *varint, *header;
|
char gbt_block[1024], *varint, *header;
|
||||||
unsigned char data[80];
|
unsigned char data[80];
|
||||||
int i;
|
|
||||||
|
|
||||||
flip256(data, work->data);
|
flip256(data, work->data);
|
||||||
header = bin2hex(data, 80);
|
header = bin2hex(data, 80);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user