Commit 453101d9e9f8b7408ca645dd174aa3e8af1d87ac

Jeff Garzik 2011-01-29T23:55:11

Remove "PROOF OF WORK FOUND?" debug output; redundant.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/cpu-miner.c b/cpu-miner.c
index 847e74b..f9be60c 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -203,12 +203,12 @@ static void submit_work(struct work *work)
 	json_t *val, *res;
 	char s[345];
 
-	printf("PROOF OF WORK FOUND?  submitting...\n");
-
 	/* build hex string */
 	hexstr = bin2hex(work->data, sizeof(work->data));
-	if (!hexstr)
+	if (!hexstr) {
+		fprintf(stderr, "submit_work OOM\n");
 		goto out;
+	}
 
 	/* build JSON-RPC request */
 	sprintf(s,