Browse Source

Merge branch 'cg_merges_20130207' into bfgminer

Luke Dashjr 13 years ago
parent
commit
7e41ecaf7e
2 changed files with 7 additions and 1 deletions
  1. 6 0
      API.class
  2. 1 1
      api-example.c

+ 6 - 0
API.class

@@ -1,3 +1,9 @@
+BFGMiner Version 2.10.5 - Future
+
+- Fix logic fail on partial writes with stratum send that was leading to corrupt
+message submissions.
+
+
 BFGMiner Version 2.10.4 - February 7, 2013
 
 - New platform ports: OpenWrt and Win64

+ 1 - 1
api-example.c

@@ -1020,7 +1020,7 @@ static bool __stratum_send(struct pool *pool, char *s, ssize_t len)
 			sent = 0;
 		}
 		ssent += sent;
-		len -= ssent;
+		len -= sent;
 	}
 
 	pool->cgminer_pool_stats.times_sent++;