Browse Source

Update exactone diff.

Con Kolivas 13 years ago
parent
commit
72cd8fe28e
2 changed files with 4 additions and 1 deletions
  1. 1 1
      cgminer.c
  2. 3 0
      util.c

+ 1 - 1
cgminer.c

@@ -2610,7 +2610,7 @@ static inline struct pool *select_pool(bool lagging)
 	return pool;
 }
 
-static double DIFFEXACTONE = 26959946667150639794667015087019630673637144422540572481103610249216.0;
+static double DIFFEXACTONE = 26959946667150639794667015087019630673637144422540572481103610249215.0;
 
 /*
  * Calculate the work share difficulty

+ 3 - 0
util.c

@@ -1522,8 +1522,11 @@ bool initiate_stratum(struct pool *pool)
 		applog(LOG_INFO, "Failed to get nonce1 in initiate_stratum");
 		goto out;
 	}
+
+	cg_wlock(&pool->data_lock);
 	pool->n1_len = strlen(pool->nonce1) / 2;
 	pool->n2size = json_integer_value(json_array_get(res_val, 2));
+	cg_wunlock(&pool->data_lock);
 	if (!pool->n2size) {
 		applog(LOG_INFO, "Failed to get n2size in initiate_stratum");
 		goto out;