Closed alanpearce closed 13 years ago
I decided to see what curl would do. For some reason I had difficulty with the command-line version, so I wrote some short PHP code to test it. Here's what it spat out:
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Sat, 18 Jun 2011 12:11:37 GMT
Server: Cherokee/1.2.2 (Gentoo Linux)
X-Source-Code: https://github.com/cdhowie/Bitcoin-mining-proxy
Content-Type: application/json-rpc
{"error":"No enabled pools responded to the work request.","result":null,"id":1}1
I took the error_reporting directive out so that I could see what was happening. $http_response_header was undefined. At first I thought it was part of pecl_http, but actually it's just a php.ini setting that needs to be enabled: allow_url_fopen = On
. You might want to add this to the readme. You could set it with ini_set or .htaccess, but not every server allows the former or supports the latter.
There was another notice: Undefined variable: force_getwork in /.../htdocs/index.php
Just add $force_getwork = null;
before the if statement, starting near # Check request
(line 94)
Fixed. Thanks for investigating this.
I've managed to install and configure the proxy (adding pools, workers, and adding workers to pools), but when I point a miner to it, it seems that only the authentication happens. Here's what phoenix spits out:
Phoenix r101 does not give any error messages, but stays at 0Mhash/s I've also tried using
bitcoin getwork
, to which I geterror: no response from server
. I'm not sure if this should work, howeverThe proxy is on PHP 5.3.6-pl0-gentoo (fpm-fcgi) on Cherokee 1.2.2