bitcoind 启动之后本地有了个json rpc的接口,是不是就可以连接到这上面计算了?但是我用cpuminder连接不上

2011-05-22 19:00:48 +08:00
 virushuo
用curl倒是能访问…这就是pool的模型吧?其他pool的程序只是为了更快的分发和把成果分发给参与的用户什么的?
4510 次点击
所在节点    Bitcoin
9 条回复
seerhut
2011-05-22 19:07:07 +08:00
原版bitcoin(d)是独立mining,所谓pool是大家一起合作mining,缩短每个人的付出/回报周期。
每个miner都有自己的rpc接口,不过在趋向统一。
sycx
2011-05-22 19:37:02 +08:00
我在Mac OSX下的操作
1.打开(或者新建)文件 ~/Library/Application\ Support/Bitcoin/bitcoin.conf
加入以下两行
rpcuser= 自己定义一个用户名
rpcpassword= 自己定义一个密码

2.运行 /Applications/Bitcoin.app/Contents/MacOS/bitcoin -server &
3../minerd --url http://127.0.0.1:8332 --userpass user:password -a 4way -t 2
virushuo
2011-05-22 19:44:39 +08:00
minerd --userpass user:password --url http://127.0.0.1:8332/
[2011-05-22 19:39:57] HTTP request failed: The requested URL returned error: 500
[2011-05-22 19:39:57] json_rpc_call failed, retry after 30 seconds
[2011-05-22 19:39:58] 1 miner threads started, using SHA256 'c' algorithm

但是用curl连接是没问题的。奇怪了。
sycx
2011-05-22 19:51:35 +08:00
Bitcoin.app 至少要有1 connection
virushuo
2011-05-22 20:43:43 +08:00
@sycx 有链接。而且就算没有链接本地的json-rpc总也应该连的上啊。
sycx
2011-05-22 21:13:48 +08:00
@virushuo 怀疑是你url端口后面的"/"符号导致的错误
virushuo
2011-05-22 21:33:45 +08:00
@sycx minerd --userpass user:aBc.123 --url http://127.0.0.1:8332
[2011-05-22 21:30:12] HTTP request failed: The requested URL returned error: 500
[2011-05-22 21:30:12] json_rpc_call failed, retry after 30 seconds
[2011-05-22 21:30:13] 1 miner threads started, using SHA256 'c' algorithm.

囧,还是这样…
sycx
2011-05-22 21:53:14 +08:00
@virushuo 试试看换用DiabloMiner连接看看,Debug信息会比较详细..
virushuo
2011-05-22 22:01:38 +08:00
@sycx 我在服务器上搞的,没有gpu…所以才用cpuminer的…

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/13349

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX