Browse Source

Bugfix: Include nonce in data buffer for debugging

Luke Dashjr 13 years ago
parent
commit
538ada6a90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miner.c

+ 2 - 2
miner.c

@@ -2100,8 +2100,8 @@ static bool submit_upstream_work(const struct work *work, CURL *curl, bool resub
 	char hashshow[64+1] = "";
 
 	if (work->tmpl) {
-		unsigned char data[76];
-		swap32yes(data, work->data, 76 / 4);
+		unsigned char data[80];
+		swap32yes(data, work->data, 80 / 4);
 		json_t *req = blkmk_submit_jansson(work->tmpl, data, work->dataid, *((uint32_t*)&work->data[76]));
 		s = json_dumps(req, 0);
 		sd = bin2hex(data, 80);