V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
virushuo
V2EX  ›  Bitcoin

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

  •  
  •   virushuo · 2011-05-22 19:00:48 +08:00 · 4499 次点击
    这是一个创建于 4724 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用curl倒是能访问…这就是pool的模型吧?其他pool的程序只是为了更快的分发和把成果分发给参与的用户什么的?
    9 条回复    1970-01-01 08:00:00 +08:00
    seerhut
        1
    seerhut  
       2011-05-22 19:07:07 +08:00
    原版bitcoin(d)是独立mining,所谓pool是大家一起合作mining,缩短每个人的付出/回报周期。
    每个miner都有自己的rpc接口,不过在趋向统一。
    sycx
        2
    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
        3
    virushuo  
    OP
       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
        4
    sycx  
       2011-05-22 19:51:35 +08:00
    Bitcoin.app 至少要有1 connection
    virushuo
        5
    virushuo  
    OP
       2011-05-22 20:43:43 +08:00
    @sycx 有链接。而且就算没有链接本地的json-rpc总也应该连的上啊。
    sycx
        6
    sycx  
       2011-05-22 21:13:48 +08:00
    @virushuo 怀疑是你url端口后面的"/"符号导致的错误
    virushuo
        7
    virushuo  
    OP
       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
        8
    sycx  
       2011-05-22 21:53:14 +08:00
    @virushuo 试试看换用DiabloMiner连接看看,Debug信息会比较详细..
    virushuo
        9
    virushuo  
    OP
       2011-05-22 22:01:38 +08:00
    @sycx 我在服务器上搞的,没有gpu…所以才用cpuminer的…
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1077 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:11 · PVG 07:11 · LAX 16:11 · JFK 19:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.