Bitcoin-Core
ccminer JSON-RPC 呼叫失敗:找不到方法
我在使用 bitcoin-qt.exe 執行ccminer時遇到問題(單獨挖礦)
我在開始時收到以下錯誤:
[2017-01-26 14:23:57] 1 miner thread started, using 'bitcoin' algorithm [2017-01-26 14:23:57] Binding thread 0 to cpu 0 (mask 1) [2017-01-26 14:23:57] JSON-RPC call failed: Method not found [2017-01-26 14:23:57] json_rpc_call failed, retry after 5 seconds
如何解決這個問題?
我做了什麼:
我的 ccminer 執行參數:
ccminer -a bitcoin -o http://127.0.0.1:8332 -u USER -p 123456789 -R 5 -D
我的 bitcoin.conf 文件:
rpcuser=USER rpcpassword=123456789 server=1 daemon=1 listen=1 #rpcallowip=127.0.0.1 rpcport=8332
我曾嘗試將 -P 添加到 ccminer 執行參數中,結果是
* Rebuilt URL to: http://127.0.0.1:8332/ * Hostname 127.0.0.1 was found in DNS cache * Trying 127.0.0.1... * TCP_NODELAY set * Connected to 127.0.0.1 (127.0.0.1) port 8332 (#1) * Server auth using Basic with user 'USER' > POST / HTTP/1.1 Host: 127.0.0.1:8332 Authorization: Basic xxxxxxSOME_BASE64xxx Accept-Encoding: identity Content-Type: application/json Content-Length: 45 User-Agent: ccminer/8.05-KlausT X-Mining-Extensions: longpoll noncerange reject-reason X-Mining-Hashrate: 0 < HTTP/1.1 404 Not Found < Content-Type: application/json < Date: Thu, 26 Jan 2017 11:19:41 GMT < Content-Length: 76 * HTTP error before end of send, stop sending < * Curl_http_done: called premature == 0 * Closing connection 1 [2017-01-26 16:19:41] JSON protocol response: { "error": { "code": -32601, "message": "Method not found" }, "result": null, "id": 0 } [2017-01-26 16:19:41] JSON-RPC call failed: Method not found [2017-01-26 16:19:41] json_rpc_call failed, retry after 30 seconds
我想,也許 bitcoin-qt.exe 不接受任何連接,但是當我使用參數執行 bfgminer 時:
bfgminer -S opencl:auto -o http://127.0.0.1:8332 -u USER -p 123456789 2>logfile.txt
一切正常…
PS一切都是最新的:
Bitcoin v0.13.2 (64 bit) ccminer v8.05-KlausT pthreads static 2, 9, 1, 0 libcurl/7.50.3 WinSSL WinIDN
提前致謝
上面的問題也在Github上被問到
對不起,但不再支持比特幣單獨挖礦,因為他們刪除了 getwork 命令。反正想挖比特幣也沒用,難度太高了。