xmr-stak 挖矿 也是支持tls加密的,还是采用的tls1.3

xmr-stak 门罗币挖矿

cpu挖矿的下载:https://github.com/fireice-uk/xmr-stak/releases/download/1.0.4-rx/xmr-stak-rx-win64-1.0.4.zip (linux的也有,我是下载windows)

当然,gpu的下载需要去:https://github.com/fireice-uk/xmr-stak/releases/tag/2.10.8

 

下载后配置运行,会提示是否使用tls/ssl加密,我选择是:

D:\share\xmr-stak-rx-win64-1.0.5\xmr-stak-rx-win64-1.0.5>xmr-stak-rx.exe

Use simple setup method? (Y/n)

Configuration stored in file 'config.txt'
Please enter:
- Please enter the currency that you want to mine:
        - arqma
        - keva
        - loki
        - monero
        - safex
        - randomx
        - randomx_arqma
        - randomx_keva
        - randomx_loki
        - randomx_safex
        - randomx_wow
        - wownero

monero
- Pool address: e.g. pool.example.com:3333
pool.hashvault.pro:3333
- Username (wallet address or pool login):
48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD
- Password (mostly empty or x):
x
- Does this pool port support TLS/SSL? Use no if unknown. (y/N)
y
Pool configuration stored in file 'pools.txt'
[2022-07-12 11:21:46] : start self test for 'randomx' (can be disabled with the command line option '--noTest')
-------------------------------------------------------------------
xmr-stak-rx 1.0.5-rx 6091644

Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by tevador and SChernykh.
-------------------------------------------------------------------
You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
   #####   ______               ____
 ##     ## | ___ \             /  _ \
#    _    #| |_/ /_   _   ___  | / \/ _   _  _ _  _ _  ___  _ __    ___  _   _
#   |_|   #|    /| | | | / _ \ | |   | | | || '_|| '_|/ _ \| '_ \  / __|| | | |
#         #| |\ \| |_| || (_) || \_/\| |_| || |  | | |  __/| | | || (__ | |_| |
 ##     ## \_| \_|\__, | \___/ \____/ \__,_||_|  |_|  \___||_| |_| \___| \__, |
   #####           __/ |                                                  __/ |
                  |___/   https://ryo-currency.com                       |___/

This currency is a way for us to implement the ideas that we were unable to in
Monero. See https://github.com/fireice-uk/cryptonote-speedup-demo for details.
-------------------------------------------------------------------
[2022-07-12 11:22:11] : Mining coin: randomx
[2022-07-12 11:22:11] : CPU configuration stored in file 'cpu.txt'
[2022-07-12 11:22:11] : Starting 1x thread, affinity: 0.
[2022-07-12 11:22:11] : hwloc: memory pinned
[2022-07-12 11:22:11] : Starting 1x thread, affinity: 2.
[2022-07-12 11:22:11] : hwloc: memory pinned
[2022-07-12 11:22:11] : Starting 1x thread, affinity: 4.
[2022-07-12 11:22:11] : hwloc: memory pinned
[2022-07-12 11:22:11] : Starting 1x thread, affinity: 6.
[2022-07-12 11:22:11] : hwloc: memory pinned
[2022-07-12 11:22:11] : Starting 1x thread, affinity: 8.
[2022-07-12 11:22:11] : hwloc: memory pinned
[2022-07-12 11:22:11] : Starting 1x thread, affinity: 10.
[2022-07-12 11:22:11] : hwloc: memory pinned
[2022-07-12 11:22:11] : Fast-connecting to pool.hashvault.pro:3333 pool ...
[2022-07-12 11:22:11] : TLS fingerprint [pool.hashvault.pro:3333] SHA256:Qgx4UOCbfAvc90in2p6zZH2vhRVxjzbZzP3Wuf+DSxQ=
[2022-07-12 11:22:11] : Pool pool.hashvault.pro:3333 connected. Logging in...
[2022-07-12 11:22:12] : Difficulty changed. Now: 72000.
[2022-07-12 11:22:12] : Pool logged in.
[2022-07-12 11:23:01] : Difficulty changed. Now: 54684.
[2022-07-12 11:23:01] : New block detected.
[2022-07-12 11:23:08] : New block detected.
[2022-07-12 11:23:33] : CPU: Share accepted. Pool: pool.hashvault.pro:3333
^C
D:\share\xmr-stak-rx-win64-1.0.5\xmr-stak-rx-win64-1.0.5>ping pool.hashvault.pro

正在 Ping pool.hashvault.pro [125.253.92.50] 具有 32 字节的数据:
来自 125.253.92.50 的回复: 字节=32 时间=126ms TTL=47
来自 125.253.92.50 的回复: 字节=32 时间=124ms TTL=47

125.253.92.50 的 Ping 统计信息:
    数据包: 已发送 = 2,已接收 = 2,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 124ms,最长 = 126ms,平均 = 125ms
Control-C
^C
D:\share\xmr-stak-rx-win64-1.0.5\xmr-stak-rx-win64-1.0.5>xmr-stak-rx.exe
[2022-07-12 11:25:31] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:31] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:31] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:31] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:31] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:31] : start self test for 'randomx' (can be disabled with the command line option '--noTest')
-------------------------------------------------------------------
xmr-stak-rx 1.0.5-rx 6091644

Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by tevador and SChernykh.
-------------------------------------------------------------------
You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
   #####   ______               ____
 ##     ## | ___ \             /  _ \
#    _    #| |_/ /_   _   ___  | / \/ _   _  _ _  _ _  ___  _ __    ___  _   _
#   |_|   #|    /| | | | / _ \ | |   | | | || '_|| '_|/ _ \| '_ \  / __|| | | |
#         #| |\ \| |_| || (_) || \_/\| |_| || |  | | |  __/| | | || (__ | |_| |
 ##     ## \_| \_|\__, | \___/ \____/ \__,_||_|  |_|  \___||_| |_| \___| \__, |
   #####           __/ |                                                  __/ |
                  |___/   https://ryo-currency.com                       |___/

This currency is a way for us to implement the ideas that we were unable to in
Monero. See https://github.com/fireice-uk/cryptonote-speedup-demo for details.
-------------------------------------------------------------------
[2022-07-12 11:25:55] : Mining coin: randomx
[2022-07-12 11:25:55] : Starting 1x thread, affinity: 0.
[2022-07-12 11:25:55] : hwloc: memory pinned
[2022-07-12 11:25:55] : Starting 1x thread, affinity: 2.
[2022-07-12 11:25:55] : hwloc: memory pinned
[2022-07-12 11:25:55] : Starting 1x thread, affinity: 4.
[2022-07-12 11:25:55] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:55] : hwloc: memory pinned
[2022-07-12 11:25:55] : Starting 1x thread, affinity: 6.
[2022-07-12 11:25:55] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:55] : hwloc: memory pinned
[2022-07-12 11:25:55] : Starting 1x thread, affinity: 8.
[2022-07-12 11:25:55] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:55] : hwloc: memory pinned
[2022-07-12 11:25:55] : Starting 1x thread, affinity: 10.
[2022-07-12 11:25:55] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:55] : hwloc: memory pinned
[2022-07-12 11:25:55] : Fast-connecting to pool.hashvault.pro:3333 pool ...
[2022-07-12 11:25:55] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 11:25:56] : TLS fingerprint [pool.hashvault.pro:3333] SHA256:Qgx4UOCbfAvc90in2p6zZH2vhRVxjzbZzP3Wuf+DSxQ=
[2022-07-12 11:25:56] : Pool pool.hashvault.pro:3333 connected. Logging in...
[2022-07-12 11:25:56] : Difficulty changed. Now: 72000.
[2022-07-12 11:25:56] : Pool logged in.
[2022-07-12 11:25:56] : New block detected.
[2022-07-12 11:26:01] : Difficulty changed. Now: 123429.
[2022-07-12 11:26:01] : New block detected.
[2022-07-12 11:26:29] : New block detected.

 

运行后可以看到cpu占用:

 

 网络通信情况如下:

可以看到,也是使用了tls1.3!

 

也就是说这些利用cpu挖矿的币种,都是支持tls加密传输的。

        - arqma
        - keva
        - loki
        - monero
        - safex
        - randomx
        - randomx_arqma
        - randomx_keva
        - randomx_loki
        - randomx_safex
        - randomx_wow
        - wownero

 比如我随便选择一个(当然钱包地址是乱写的。。。)

D:\share\xmr-stak-rx-win64-1.0.5\xmr-stak-rx-win64-1.0.5-test>xmr-stak-rx.exe

Use simple setup method? (Y/n)
y
Configuration stored in file 'config.txt'
Please enter:
- Please enter the currency that you want to mine:
        - arqma
        - keva
        - loki
        - monero
        - safex
        - randomx
        - randomx_arqma
        - randomx_keva
        - randomx_loki
        - randomx_safex
        - randomx_wow
        - wownero

wownero
- Pool address: e.g. pool.example.com:3333
pool.example.com:3333
- Username (wallet address or pool login):
sdfsadfasfasdfsafsafsadfvsavcxz
- Password (mostly empty or x):
x
- Does this pool port support TLS/SSL? Use no if unknown. (y/N)
y
Pool configuration stored in file 'pools.txt'
[2022-07-12 12:03:41] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 12:03:41] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 12:03:41] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 12:03:41] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.
[2022-07-12 12:03:41] : MEMORY ALLOC FAILED: VirtualAlloc failed. Reboot might help.

 

然后我看到xmrig也是支持wownero挖矿的!!!链接:https://matters.news/@xiansheng/134851-%E4%BB%A5%E5%A4%AA%E5%9D%8A%E6%8C%81%E5%B8%81%E5%9C%B0%E5%9D%80%E8%B6%85%E8%BF%871-5%E4%BA%BF-wow%E6%8C%96%E7%9F%BF%E6%95%99%E7%A8%8B-%E8%AF%84%E7%BA%A73-%E6%BB%A1%E5%88%865-bafyreifnms7utar3jgk3sdpdx6w67uonx25hzzesyt35z5z2lqvhzc4uja

里面提到:

解压:

选择修改start.cmd文件。如果有XMRIG的小伙伴也可以用下面的修改:

@echo off

xmrig.exe -a rx/wow -o wownero.herominers.com:10660 -u WW37EWZVXqWc4bTF9jjjjvFDkdCgsoDVV9ibxht5V8iwBR3Tghx67qeDhQKkEA5AdkKm78YDHxh4MjkB5zwGAnEg1F3gaTvng.25000 -p xs  -k 

pause

不过上面这个地址失效了,找了一圈,也没看到活跃的矿池地址。 GG!看来国内挖矿的行情的确是不好啊!

 

 

工具介绍:https://github.com/fireice-uk/xmr-stak

 

 

运行:

    • Currency: ‘monero’ or ‘aeon’ (请选择你要挖矿的货币) 
      monero

    • Pool address: e.g. pool.usxmrpool.com:3333 (请在这里输入你的矿池地址) 
      pool.edog.online:5555

    • Username (wallet address or pool login): (这里输入你你钱包的地址) 
      42jg4jeip94E97DdMthJz2Mv8tPjdQ4fMaYQnUxAsNN82y6aPuY9mxUZnYgZeLzEzjN55p621rWpj14Qnw3y1S96Pod6wS3

    • Password (mostly empty or x): (这里输入矿池给你的密码,一般没有,请输入x) 
      x

    • Does this pool port support TLS/SSL? Use no if unknown. (y/N) (通讯是否加密。区分大小写,请回答N) 
      N

    • Do you want to use nicehash on this pool? (y/n) (nicehash一般只有代理才会用,请回答n) 
      n

    • Do you want to use multiple pools? (y/n) (问你要不要再输入一个矿池,回答n) 
      n

矿池:

1.https://xmr.nanopool.org 
矿池地址:xmr-us-east1.nanopool.org:14444 (冒号后为端口,下面不再说明) 
nanopool的难度固定设置为12万。矿池总税为1%,现手续费固定为0.015XMR,最低0.3提现。本矿池适合算力比较大的矿工。

2.https://supportxmr.com/ 
矿池地址: 
pool.supportxmr.com:7777 (最大难度2.5W) 
pool.supportxmr.com:5555(最大难度1.5W) 
pool.supportxmr.com:3333(最大难度3K)

supportxmr的矿池总税为0.6%,最低0.3提现,提现手续费不详。难度会根据你的电脑算力自动调整,一般的电脑连接5555端口即可。

2.https://supportxmr.com/ 
矿池地址: 
pool.supportxmr.com:7777 (最大难度2.5W) 
pool.supportxmr.com:5555(最大难度1.5W) 
pool.supportxmr.com:3333(最大难度3K)

supportxmr的矿池总税为0.6%,最低0.3提现,提现手续费不详。难度会根据你的电脑算力自动调整,一般的电脑连接5555端口即可。

3.http://www.minexmr.com/ 
矿池地址: 
Europe (France, Germany): pool.minexmr.com 
France: fr.minexmr.com 
Germany: de.minexmr.com 
Canada: ca.minexmr.com

端口: 4444,5555,起始难度15000 
端口: 7777, 80, 443,起始难度35000 
端口: 3333,起始难度200000 
端口: 6666,起始难度35000

本矿池特点是有80和443端口,适合于公司或者企业防火墙策略屏蔽掉对外网其它端口访问的人群。矿池总税为1%。.

4 . https://get.bi-chi.com 
碧池,这个应该是国内挖矿人数最多的门罗币矿池,相对于上述几家,总算力大概7到8W,略低。经营者是在我们国内,但是服务器是在国外。 
矿池: 
get.bi-chi.com:3333 
get.bi-chi.com:5555 
get.bi-chi.com:7777 
以上矿池难度从地到高,但是矿池会根据你电脑算力来自动调整,一般1K以下的算力,就选择5555端口好了。矿池总税为1.6%

5.https://monero.crypto-pool.fr/ 
这是一个法国的矿池,但是我们测试的时候惊人地发现这个矿池的ping值非常小,几乎相当于在国内。 
矿池地址:xmr.crypto-pool.fr 
矿池端口:3333 6666 7777, 80,8080,443。难度18000 
矿池端口:8888,难度30000 
矿池端口:9999,8443,难度50000 
矿池总税2%。此矿池开通80和443端口,对于防火墙策略屏蔽了对外网端口访问的,也可以使用此矿池。

下面说说XMR-STAK怎么挖矿。此软件仅时候64位Win7以上的系统使用。我们假定你已经有了一个钱包。 
使用这个软件,需要把大内存开启,可以达到最优的算力。因此在挖矿前,我们需要对电脑做一下简单设置。

 


1.首先需要打开大内存,这个在正文中已有讲解,不再啰嗦。

2.将电脑的虚拟内存设置为4G以上。由于windows系列系统过多,这里仅以Win10为例:

在桌面上“我的电脑”(或”此电脑“)图标上点击鼠标右键

在弹出来的菜单中选择“属性”

在弹出的“系统对话框”中点击“高级系统设置”菜单,如下图:

在弹出的“系统属性”对话框中依次点击“高级”-》”设置“,如下图:

在弹出的“性能选项”对话框中依次点击“高级”-》“更改”,如下图:

在弹出的“虚拟内存”对话框中将“自动管理所有驱动器分页大小”的勾去掉,选择一个剩余空间比较多的盘符,勾选”自定义大小“,填上初始大小和最大值,并点击”设置“,最后确定退出。如下图:

3.在软件运行后,会生成一个CPU.txt的文件,重点讲下设个文件的优化。

xmr-stak主要根据cpu.txt里面的cpu_threads_conf这一节内容来生成线程。大多数情况下,默认生成的cpu.txt基本上可以达到最高效率,但是也有例外,你可以尝试修改cpu.txt文件里面的cpu_threads_conf这一节,来测试你的电脑极限速度是多少。一般而言,电脑的核心会有一半是超线程,比如把8核16线程说成是16核,把32核64线程说是64核。xmr-stak生成的cpu.txt是根据核心数量来生成软件的线程的,比如8核,会生成0,2,4,6序号的四个线程:


"cpu_threads_conf" :

[

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },

],

 

这个节段里面的0,2,4,6表示CPU的序号(从0开始),你可以在里面添加其它CPU核心线程的内容。比如我们可以尝试添加两节,把CPU的第6和第8个CPU核心添加上去,因为CPU序号是从0开始的,那么我们就需要添加5,7这两个序号。最后的cpu_threads_conf内容如下:

"cpu_threads_conf" :

[

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },

    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 7 },

],

添加完成之后,我们再启动以下xmr-stak,和添加之前的内容进行对比,看速度有没有升高。如果没有,那么说明之前的线程已经是xmr-stak的工作极限,你需要再修改一下cpu.txt,把添加的内容删除!如果速度提高了,你可以继续重复上述的步骤,再添加别的CPU线程。

一般而言,CPU占用率在70%以内会达到最大的工作速率,请不要盲目地追求CPU占用率!

 

参考:

https://blog.csdn.net/crackwei/article/details/78908024


posted @ 2022-07-12 12:06  bonelee  阅读(1368)  评论(0编辑  收藏  举报