Browse Source

Merge commit 'ad02627' into bfgminer

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
1b01409fa0
1 changed files with 2 additions and 4 deletions
  1. 2 4
      miner.c

+ 2 - 4
miner.c

@@ -1865,6 +1865,7 @@ static void get_benchmark_work(struct work *work)
 	memset(work, 0, sizeof(work));
 	memset(work, 0, sizeof(work));
 	memcpy(work, &bench_block, min_size);
 	memcpy(work, &bench_block, min_size);
 	work->mandatory = true;
 	work->mandatory = true;
+	work->pool = pools[0];
 }
 }
 
 
 static bool get_upstream_work(struct work *work, CURL *curl)
 static bool get_upstream_work(struct work *work, CURL *curl)
@@ -5206,10 +5207,7 @@ int main(int argc, char *argv[])
 		struct pool *pool;
 		struct pool *pool;
 
 
 		want_longpoll = false;
 		want_longpoll = false;
-		pool = calloc(sizeof(struct pool), 1);
-		pool->pool_no = 0;
-		pools[total_pools++] = pool;
-		pthread_mutex_init(&pool->pool_lock, NULL);
+		pool = add_pool();
 		pool->rpc_url = malloc(255);
 		pool->rpc_url = malloc(255);
 		strcpy(pool->rpc_url, "Benchmark");
 		strcpy(pool->rpc_url, "Benchmark");
 		pool->rpc_user = pool->rpc_url;
 		pool->rpc_user = pool->rpc_url;