Post
Topic
Board Mining software (miners)
Re: RPC Miners (CPU/4way/CUDA/OpenCL)
by
JollyGreen
on 20/02/2011, 22:39:06 UTC
Updated first post with latest release.  The only major change is this release will let you know if there was an issue getting work from the server and will stop hashing stale blocks.

I really appreciate those updates!  I got the new source and built, now I get:
Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=hidden.1 -pass=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 22

I'll start trying to figure out what's up with CURL...

Just a couple things I noticed using tcpdump -A and watching the html packets when executing /usr/bin/curl and rpcminer.  /usr/bin/curl sent a GET request and i'm not sure what data to expect as a response, but I got an HTTP/1.1 200 OK when using /usr/bin/curl manually and it responded back with that string I listed above, which looks like what you guys are probably parsing as the data input for the program.  When I run rpcminer, it is using a POST request, and from looking at the source you are using a content-type of "application/json" and I get an HTTP/1.1 401 UNAUTHORIZED as a response.  Are these recent builds working for anyone using linux/mac osx?  It could be my libcurl install is messed up somehow, but I used mac ports.  We could verify it is my setup of libcurl if someone else can compile the current source for linux/mac osx and it successfully gets data.

thanks for all the help and time so far!