Browse Source

Merge branch 'tmpl_nonce' into bfgminer

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
10cbbf2270
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -1792,6 +1792,7 @@ static bool work_decode(struct pool *pool, struct work *work, json_t *val)
 				ssize_t ae = blkmk_append_coinbase_safe(work->tmpl, &template_nonce, sizeof(template_nonce));
 				if (ae < (ssize_t)sizeof(template_nonce))
 					applog(LOG_WARNING, "Cannot append template-nonce to coinbase on pool %u (%"PRId64") - you might be wasting hashing!", work->pool->pool_no, (int64_t)ae);
+				++template_nonce;
 			}
 		}
 #endif