litecoin CPU挖矿教程
litecoin CPU挖矿教程
1. 准备;
- 挖矿程序: CPU miner 下载地址
https://jaist.dl.sourceforge.net/project/cpuminer/pooler-cpuminer-2.5.0-win64.zip; - 矿机代理:mining_proxy 下载地址
https://slushpool.com/media/download/mining_proxy.exe;
2. 蚂蚁矿池注册旷工;
- 打开https://account.bitmain.com/sign_up注册一个账号
e01773ac-35c7-41a6-9457-838f61bdd6b0.jpg
-
完成注册后,在如下页面创建旷工
f96c8cab-4d28-45bf-93d1-f726ae82e3a3.jpg
3. 连接矿池
-
执行如下命令(本命令在cygwin中执行)连接莱币蚂蚁矿池:
./mining_proxy.exe -o stratum-ltc.antpool.com -p 8888
-
执行完命令之后,会在命令行里看到如下提示,代表连接上了矿池
INFO proxy mining_proxy.on_connect # Connected to Stratum pool at stratum-ltc.antpool.com:8888
WARNING proxy mining_proxy.main # PROXY IS LISTENING ON ALL IPs ON PORT 3333 (stratum) AND 8332 (getwork)
proxy 在监听了 3333 端口 stratum协议,众所周知stratum是一个去中心化的矿池管理协议,可以阻止矿池管理员作弊;8332端口,getwork传统矿池协议。
4. 开始挖矿
- 执行命令,连接8332端口挖矿
./minerd.exe -o http://127.0.0.1:8332 -O 旷工名:密码可以随意填不验证(不能留空)
示例:./minerd.exe -o http://127.0.0.1:8332 -O e4ting.c0m:1
[2017-12-26 06:07:09] 1 miner threads started, using 'scrypt' algorithm.
[2017-12-26 06:07:10] Starting Stratum on stratum+tcp://127.0.0.1:3333
[2017-12-26 06:07:10] Stratum requested work restart
[2017-12-26 06:07:11] thread 0: 4104 hashes, 6.27 khash/s
[2017-12-26 06:08:03] thread 0: 239844 hashes, 4.60 khash/s
[2017-12-26 06:08:03] accepted: 1/1 (100.00%), 4.60 khash/s (yay!!!)
[2017-12-26 06:08:59] thread 0: 275928 hashes, 4.92 khash/s
[2017-12-26 06:09:18] Stratum requested work restart
[2017-12-26 06:09:18] thread 0: 84720 hashes, 4.61 khash/s
[2017-12-26 06:09:28] Stratum requested work restart
[2017-12-26 06:09:28] thread 0: 34404 hashes, 3.27 khash/s
mini_proxy 上提示如下信息时,代表矿机完成了矿池分配的任务
2017-12-26 06:37:38,453 INFO proxy stratum_listener.submit # [72ms] Share from 'e4ting.c0m' accepted, diff 16