Browse Source

Merge commit '64df34c' into stratum

Conflicts:
	miner.h
Luke Dashjr 13 years ago
parent
commit
549c80d199
1 changed files with 21 additions and 0 deletions
  1. 21 0
      miner.h

+ 21 - 0
miner.h

@@ -828,6 +828,26 @@ enum pool_protocol {
 	PLP_GETBLOCKTEMPLATE,
 };
 
+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;
@@ -905,6 +925,7 @@ struct pool {
 	int nonce2;
 	bool has_stratum;
 	bool stratum_active;
+	struct stratum_work swork;
 };
 
 #define GETWORK_MODE_TESTPOOL 'T'