Commit 1f15d7eafa6fed45c2d22ba2ef12e7f1c04bf0a2

Luke Dashjr 2011-09-09T17:52:21

Advertise rollntime extension support Thanks to raijin for testing!

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 50723d4..5344586 100644
--- a/util.c
+++ b/util.c
@@ -339,6 +339,8 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 
 	headers = curl_slist_append(headers,
 		"Content-type: application/json");
+	headers = curl_slist_append(headers,
+		"X-Mining-Extensions: rollntime");
 	headers = curl_slist_append(headers, len_hdr);
 	headers = curl_slist_append(headers, user_agent_hdr);
 	headers = curl_slist_append(headers, "Expect:"); /* disable Expect hdr*/