It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
- fprintf(stderr, "usAge: %s [command [ip/host [port]]]\n", argv[0]);
+ fprintf(stderr, "Usage: %s [command [ip/host [port]]]\n", argv[0]);
echo "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|
echo -n "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|
echo "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|
echo -n "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|
echo '{"command":"addpool", "parameter":"http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x"}' | nc localhost 4028
{"STATUS":[{"STATUS":"S","When":1371504122,"Code":55,"Msg":"Added pool 'http://p2pool.org:9327'","Description":"cgminer 3.2.2"}],"id":1}
gcc api-example.c -I compat/jansson -o cgminer-api
$ git diff
diff --git a/api-example.c b/api-example.c
index 71b5b00..90cfe5b 100644
--- a/api-example.c
+++ b/api-example.c
@@ -23,7 +23,6 @@
#include
#include "compat.h"
-#include "miner.h"
#if defined(unix)
#include
@@ -284,7 +283,7 @@ int main(int argc, char *argv[])
if (strcmp(argv[1], "-?") == 0
|| strcmp(argv[1], "-h") == 0
|| strcmp(argv[1], "--help") == 0) {
- fprintf(stderr, "usAge: %s [command [ip/host [port]]]\n", argv[0]);
+ fprintf(stderr, "Usage: %s [command [ip/host [port]]]\n", argv[0]);
return 1;
}
./cgminer-api 'addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x'
./cgminer-api 'pools|' locahost 4028
./cgminer-api -h
Usage: ./cgminer-api [command [ip/host [port]]]
echo "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|
[2013-06-17 10:08:48] Switching pool 1 http://p2pool.org:9327 to stratum+tcp://p2pool.org:9327
[2013-06-17 10:08:50] Pool 1 difficulty changed to 210.767276
[2013-06-17 10:08:50] Pool 1 difficulty changed to 205.967835
[2013-06-17 10:08:51] pool 1 JSON stratum auth failed: {
"data": null,
"code": -32700,
"message": "Parse error"
}
echo "addpool|http://p2pool.org:9327,Lc8TWMiKM7gRUrG8VB8pPNP1Yvt1SGZnoH,x" | nc localhost 4028
STATUS=S,When=1371456527,Code=55,Msg=Added pool 'http://p2pool.org:9327',Description=cgminer 3.2.2|
[2013-06-17 10:08:48] Switching pool 1 http://p2pool.org:9327 to stratum+tcp://p2pool.org:9327
[2013-06-17 10:08:50] Pool 1 difficulty changed to 210.767276
[2013-06-17 10:08:50] Pool 1 difficulty changed to 205.967835
[2013-06-17 10:08:51] pool 1 JSON stratum auth failed: {
"data": null,
"code": -32700,
"message": "Parse error"
}