Browse Source

Re-set work thr_id on share submissions, to ensure the result gets credited to the correct device in case of shared job queues (as in BitForce long boards)

Luke Dashjr 12 years ago
parent
commit
e6e36668f0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -7123,6 +7123,7 @@ bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce)
 
 
 	cgtime(&tv_work_found);
 	cgtime(&tv_work_found);
 	*work_nonce = htole32(nonce);
 	*work_nonce = htole32(nonce);
+	work->thr_id = thr->id;
 
 
 	mutex_lock(&stats_lock);
 	mutex_lock(&stats_lock);
 	total_diff1++;
 	total_diff1++;