V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
virushuo
V2EX  ›  Bitcoin

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

  •  
  •   virushuo · May 22, 2011 · 5544 views
    This topic created in 5463 days ago, the information mentioned may be changed or developed.
    用curl倒是能访问…这就是pool的模型吧?其他pool的程序只是为了更快的分发和把成果分发给参与的用户什么的?
    9 replies    1970-01-01 08:00:00 +08:00
    seerhut
        1
    seerhut  
       May 22, 2011
    原版bitcoin(d)是独立mining,所谓pool是大家一起合作mining,缩短每个人的付出/回报周期。
    每个miner都有自己的rpc接口,不过在趋向统一。
    sycx
        2
    sycx  
       May 22, 2011
    我在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
       May 22, 2011
    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  
       May 22, 2011
    Bitcoin.app 至少要有1 connection
    virushuo
        5
    virushuo  
    OP
       May 22, 2011
    @sycx 有链接。而且就算没有链接本地的json-rpc总也应该连的上啊。
    sycx
        6
    sycx  
       May 22, 2011
    @virushuo 怀疑是你url端口后面的"/"符号导致的错误
    virushuo
        7
    virushuo  
    OP
       May 22, 2011
    @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  
       May 22, 2011
    @virushuo 试试看换用DiabloMiner连接看看,Debug信息会比较详细..
    virushuo
        9
    virushuo  
    OP
       May 22, 2011
    @sycx 我在服务器上搞的,没有gpu…所以才用cpuminer的…
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3358 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 11:23 · PVG 19:23 · LAX 04:23 · JFK 07:23
    ♥ Do have faith in what you're doing.