go-cpuminer

command module
v0.0.0-...-ff71aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 22 Imported by: 0

README

go-cpuminer

Go Report Card

go-cpuminer是go实现的cpu挖矿工具

Readme EN

特性

  • 纯golang实现,可支持任意平台
  • 支持的算法:cn/0,cn/1,cn/2,cn/r,cn/fast,cn/half,cn/xao,cn/rto,cn/rwz,cn/double,cn-lite/0,cn-lite/1,cn-heavy/0,cn-heavy/tube,cn-heavy/xhv,cn-pico,cn-pico/tlo
  • 支持stratum 2.0协议

编译

# go build

示例

  • hashvault haven挖矿
./go-cpuminer -server pool.hashvault.pro:80 -user hvxxwtgSqXaH9AZYYed9NbijK8hydEVtpb2k8SLv39ZrQxHacwP8QeeYriNunavkRf5fYbdf6BPj6g7yGmh2kS2i4toHRp4pdG -pass x -algo cn-heavy/xhv
  • herominers haven挖矿
./go-cpuminer -server hk.haven.herominers.com:10450 -user hvxxwtgSqXaH9AZYYed9NbijK8hydEVtpb2k8SLv39ZrQxHacwP8QeeYriNunavkRf5fYbdf6BPj6g7yGmh2kS2i4toHRp4pdG -pass x -algo cn-heavy/xhv
  • haven性能测试
./go-cpuminer -type benchmark -algo cn-heavy/xhv
  • haven挖矿测试
./go-cpuminer -type test -algo cn-heavy/xhv
  • 使用docker
docker run --name go-cpuminer -d --restart=always esrrhs/go-cpuminer ./go-cpuminer -server pool.hashvault.pro:80 -user hvxxwtgSqXaH9AZYYed9NbijK8hydEVtpb2k8SLv39ZrQxHacwP8QeeYriNunavkRf5fYbdf6BPj6g7yGmh2kS2i4toHRp4pdG -pass x -algo cn-heavy/xhv

性能

与xmrig的哈希速度比较

platform xmrig go-cpuminer
linux amd64 31H/s 18H/s

代码结构

powered by GoCity Goby 3D Visualization

参考

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL