How to make cpuminer for Zcash actually work with win32?

时间:2016-12-12 17:05:25

标签: c++ bitcoin zcash

Recently, I got a cpuminer for zcash from https://github.com/dakk/cpuminer-zcash并在Windows XP下使用MinGW进行编译,这与目标计算机的系统相同。

我修改了git来解决一些问题。

  1. 手动修改Makefile:将'-std = c ++ 11'更改为'-std = gnu ++ 0x'以使函数'strdup'有效。
  2. https://gist.github.com/PkmX/63dd23f28ba885be53a5添加portable_endian.h并将其包含在equihash / equihash.cpp中以修复有关'htole32'的错误。
  3. 修改了sha2.cpp和miner.h来修复“sha256_use_4​​way()'的未定义引用”
  4. 我得到了二进制文件,有一些问题:

    $minerd -o cn1-zcash.flypool.org:3333 -a equihash -u (my.wallet).work1
    [2016-12-13 00:11:30] Binding thread 7 to cpu 7
    [2016-12-13 00:11:30] 8 miner threads started, using algorithm.
    [2016-12-13 00:11:30] Binding thread 1 to cpu 1
    [2016-12-13 00:11:30] Binding thread 3 to cpu 3
    [2016-12-13 00:11:30] Binding thread 5 to cpu 5
    [2016-12-13 00:11:30] Binding thread 4 to cpu 4
    [2016-12-13 00:11:30] Binding thread 0 to cpu 0
    [2016-12-13 00:11:30] Binding thread 6 to cpu 6
    [2016-12-13 00:11:30] Binding thread 2 to cpu 2
    [2016-12-13 00:11:30] HTTP request failed: Recv failure: Connection reset by peer
    [2016-12-13 00:11:30] json_rpc_call failed, retry after 30 seconds
    [2016-12-13 00:12:01] JSON-RPC call failed:     [   20,   "Invalid JSON request"]
    [2016-12-13 00:12:01] getblocktemplate failed, falling back to getwork
    [2016-12-13 00:12:01] JSON-RPC call failed:     [   20,   "Invalid JSON request"]
    [2016-12-13 00:12:01] json_rpc_call failed, retry after 30 seconds
    

    如果我使用阶层式地址:

    $ minerd -o stratum+tcp://cn1-zcash.flypool.org:3333 -a equihash -u (mywallet).work1
    [2016-12-13 00:53:19] Starting Stratum on stratum+tcp://cn1-zcash.flypool.org:3333
    [2016-12-13 00:53:19] Binding thread 5 to cpu 5
    [2016-12-13 00:53:19] Binding thread 4 to cpu 4
    [2016-12-13 00:53:19] Binding thread 2 to cpu 2
    [2016-12-13 00:53:19] Binding thread 3 to cpu 3
    [2016-12-13 00:53:19] Binding thread 6 to cpu 6
    [2016-12-13 00:53:19] Binding thread 7 to cpu 7
    [2016-12-13 00:53:19] Binding thread 0 to cpu 0
    [2016-12-13 00:53:19] Binding thread 1 to cpu 1
    [2016-12-13 00:53:19] 8 miner threads started, using algorithm.
    [2016-12-13 00:53:24] Failed to get extranonce2_size
    [2016-12-13 00:53:25] Failed to get extranonce2_size
    [2016-12-13 00:53:25] ...retry after 30s
    

    如何让它像普通矿工一样工作?

0 个答案:

没有答案