mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 03:24:26 +00:00
Create a stratum work structure to store current work variables.
This commit is contained in:
parent
30b665f021
commit
64df34cd4e
21
miner.h
21
miner.h
@ -751,6 +751,26 @@ enum pool_enable {
|
||||
POOL_REJECTING,
|
||||
};
|
||||
|
||||
struct stratum_work {
|
||||
/* id we sent to receive this work */
|
||||
int id;
|
||||
/* Reference to json structure all the following were extracted from */
|
||||
json_t *json_val;
|
||||
|
||||
char *job_id;
|
||||
char *prev_hash;
|
||||
char *coinbase1;
|
||||
char *coinbase2;
|
||||
char *merkle1;
|
||||
char *merkle2;
|
||||
char *bbversion;
|
||||
char *nbit;
|
||||
char *ntime;
|
||||
bool clean;
|
||||
|
||||
int diff;
|
||||
};
|
||||
|
||||
struct pool {
|
||||
int pool_no;
|
||||
int prio;
|
||||
@ -822,6 +842,7 @@ struct pool {
|
||||
int nonce2;
|
||||
bool has_stratum;
|
||||
bool stratum_active;
|
||||
struct stratum_work swork;
|
||||
};
|
||||
|
||||
#define GETWORK_MODE_TESTPOOL 'T'
|
||||
|
Loading…
x
Reference in New Issue
Block a user