Bitcoin Forum
June 17, 2024, 01:24:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 求教如何使用代理Stratum proxy?  (Read 4525 times)
szmarco (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
May 31, 2013, 02:53:39 AM
Last edit: June 01, 2013, 04:21:02 PM by HorseRider
 #1

抱歉,因为英文能力实在有限,我在论坛搜索了一下,实在无法找到答案。所以提出以下问题望高手赐教。

我从 http://mining.bitcoin.cz/mining-proxy-howto 这个地址下载了mining_proxy,运行以后一切正常。我的疑问是,我的客户端链接这个proxy以后,他如何指定特定的矿池?还是本身不需要指定任何矿池?到底这个proxy的原理是什么?

多谢!
flowice
Full Member
***
Offline Offline

Activity: 208
Merit: 100


View Profile WWW
May 31, 2013, 03:00:32 AM
 #2

mining_proxy -o 实际矿池的地址 -p 实际矿池的端口号
然后用你的挖矿软件,矿池地址:127.0.0.1,端口号:8332,矿工名:实际矿池的矿工名,密码:实际矿池的密码。
这个软件的主要作用是让不支持Stratum的挖矿软件挖只支持Stratum的矿池。

The most secure web wallet. 2 factor auth, PIN keypad, session management, email authorization, GPG auth.. http://1v.io/flowice
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1288
Merit: 1227


Away on an extended break


View Profile
May 31, 2013, 03:03:37 AM
 #3

mining_proxy.exe -o us2.eclipsemc.com -p 3333 -sh localhost -sp 3333 -oh localhost -gp 8332 -nm -q

在你的挖矿软件上:

矿池地址:localhost,端口号:8332,矿工名:实际矿池的矿工名,密码:实际矿池的密码。
flowice
Full Member
***
Offline Offline

Activity: 208
Merit: 100


View Profile WWW
May 31, 2013, 03:08:24 AM
 #4

mining_proxy.exe -o us2.eclipsemc.com -p 3333 -sh localhost -sp 3333 -oh localhost -gp 8332 -nm -q

在你的挖矿软件上:

矿池地址:localhost,端口号:8332,矿工名:实际矿池的矿工名,密码:实际矿池的密码。

请教John,-rt 这个参数是什么意思?

The most secure web wallet. 2 factor auth, PIN keypad, session management, email authorization, GPG auth.. http://1v.io/flowice
szmarco (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
May 31, 2013, 03:13:25 AM
 #5

Thank you all!  Wink
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1288
Merit: 1227


Away on an extended break


View Profile
May 31, 2013, 03:22:56 AM
 #6

mining_proxy.exe -o us2.eclipsemc.com -p 3333 -sh localhost -sp 3333 -oh localhost -gp 8332 -nm -q

在你的挖矿软件上:

矿池地址:localhost,端口号:8332,矿工名:实际矿池的矿工名,密码:实际矿池的密码。

请教John,-rt 这个参数是什么意思?

-rt 是 real-target, 意思是把真正的difficulty pass 给挖矿软件. 建议try 看看,若是效果好不好.

optional arguments:
  -h, --help            show this help message and exit
  -o HOST, --host HOST  Hostname of Stratum mining pool
  -p PORT, --port PORT  Port of Stratum mining pool
  -sh STRATUM_HOST, --stratum-host STRATUM_HOST
                        On which network interface listen for stratum miners.
                        Use "localhost" for listening on internal IP only.
  -sp STRATUM_PORT, --stratum-port STRATUM_PORT
                        Port on which port listen for stratum miners.
  -oh GETWORK_HOST, --getwork-host GETWORK_HOST
                        On which network interface listen for getwork miners.
                        Use "localhost" for listening on internal IP only.
  -gp GETWORK_PORT, --getwork-port GETWORK_PORT
                        Port on which port listen for getwork miners. Use
                        another port if you have bitcoind RPC running on this
                        machine already.
  -nm, --no-midstate    Don't compute midstate for getwork. This has
                        outstanding performance boost, but some old miners
                        like Diablo don't work without midstate.
  -rt, --real-target    Propagate >diff1 target to getwork miners. Some miners
                        work incorrectly with higher difficulty.
  -cl CUSTOM_LP, --custom-lp CUSTOM_LP
                        Override URL provided in X-Long-Polling header
  -cs CUSTOM_STRATUM, --custom-stratum CUSTOM_STRATUM
                        Override URL provided in X-Stratum header
  -cu CUSTOM_USER, --custom-user CUSTOM_USER
                        Use this username for submitting shares
  -cp CUSTOM_PASSWORD, --custom-password CUSTOM_PASSWORD
                        Use this password for submitting shares
  --old-target          Provides backward compatible targets for some
                        deprecated getwork miners.
  --blocknotify BLOCKNOTIFY_CMD
                        Execute command when the best block changes (%s in
                        BLOCKNOTIFY_CMD is replaced by block hash)
  --socks PROXY         Use socks5 proxy for upstream Stratum connection,
                        specify as host:port
  --tor                 Configure proxy to mine over Tor (requires Tor running
                        on local machine)
  -t, --test            Run performance test on startup
  -v, --verbose         Enable low-level debugging messages
  -q, --quiet           Make output more quiet
  -i PID_FILE, --pid-file PID_FILE
                        Store process pid to the file
HorseRider
Donator
Legendary
*
Offline Offline

Activity: 1120
Merit: 1001


View Profile
May 31, 2013, 05:01:45 AM
 #7

怎样才能设置stratum proxy连接多个矿池呢?这样一个矿池有矿难的时候,能够自动跳转到另外一个矿池去。

16SvwJtQET7mkHZFFbJpgPaDA1Pxtmbm5P
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1288
Merit: 1227


Away on an extended break


View Profile
May 31, 2013, 05:07:23 AM
 #8

怎样才能设置stratum proxy连接多个矿池呢?这样一个矿池有矿难的时候,能够自动跳转到另外一个矿池去。

Run multiple instances of Stratum proxy, by running the first one at  port 8332, second at 8333 and so on. Connect via CGMiner with backup pools pointing to port 8333 and so on.
Jimmy2011
Hero Member
*****
Offline Offline

Activity: 589
Merit: 500



View Profile
May 31, 2013, 08:03:06 AM
 #9

怎样才能设置stratum proxy连接多个矿池呢?这样一个矿池有矿难的时候,能够自动跳转到另外一个矿池去。

--help 查看帮助。如果您在linux下,运行多个proxy, 印象中是设置 -gp,设置每个proxy不同的端口,端口只要跟系统中已有和正在运行的不冲突就行。这样一方面可以实现你说的自动跳转,也可以使得多个矿机(刀片)在不同的矿池挖矿,或者挖不同的币种。
szmarco (OP)
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500



View Profile
June 01, 2013, 08:07:51 AM
 #10

请问是否只有部分矿池支持mining proxy,支持这个软件的矿池有哪些?
flowice
Full Member
***
Offline Offline

Activity: 208
Merit: 100


View Profile WWW
June 01, 2013, 11:52:37 AM
 #11

请问是否只有部分矿池支持mining proxy,支持这个软件的矿池有哪些?

支持Stratum的矿池都可以用mining_proxy,现在几乎所有矿池都支持Stratum。

问题是你为什么要用mining_proxy呢?

The most secure web wallet. 2 factor auth, PIN keypad, session management, email authorization, GPG auth.. http://1v.io/flowice
Blue777
Sr. Member
****
Offline Offline

Activity: 245
Merit: 250



View Profile
June 01, 2013, 02:25:48 PM
 #12

请问是否只有部分矿池支持mining proxy,支持这个软件的矿池有哪些?

支持Stratum的矿池都可以用mining_proxy,现在几乎所有矿池都支持Stratum。

问题是你为什么要用mining_proxy呢?
因为矿机不支持stratum吧
Blue777
Sr. Member
****
Offline Offline

Activity: 245
Merit: 250



View Profile
June 01, 2013, 02:30:47 PM
 #13

我有个问题  我买了烤猫的BLADE  这东西不支持STRATUM  所以我不得不下载了个MINING STRATUM PROXY 来连接矿池
可是我的BLADE如果每天24小时开着 那我的电脑也得24小时开着(用来运行PROXY) 有没有什么办法不用24 小时开着电脑啊
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1288
Merit: 1227


Away on an extended break


View Profile
June 02, 2013, 03:18:42 AM
 #14

我有个问题  我买了烤猫的BLADE  这东西不支持STRATUM  所以我不得不下载了个MINING STRATUM PROXY 来连接矿池
可是我的BLADE如果每天24小时开着 那我的电脑也得24小时开着(用来运行PROXY) 有没有什么办法不用24 小时开着电脑啊
买一个便宜电脑 - Raspberry PI etc.
goldlyre
Hero Member
*****
Offline Offline

Activity: 1101
Merit: 512


View Profile
June 02, 2013, 04:49:41 AM
 #15

我从不挖矿,也不懂这个,但我对所有的Miners都表示崇高的敬礼,因为没有他们就没有Bitcoin本身。从这个意义上说,我们所有的speculators都是坐享其成者。所以我每次交易都支付0.0005BTC,没有一次例外,我至今可能至少做了500-800次交易了,仅半年多的时间里。
flowice
Full Member
***
Offline Offline

Activity: 208
Merit: 100


View Profile WWW
June 02, 2013, 01:21:34 PM
 #16

我有个问题  我买了烤猫的BLADE  这东西不支持STRATUM  所以我不得不下载了个MINING STRATUM PROXY 来连接矿池
可是我的BLADE如果每天24小时开着 那我的电脑也得24小时开着(用来运行PROXY) 有没有什么办法不用24 小时开着电脑啊

topool.pw吧,不需要支持STRATUM也可以挖矿。 

The most secure web wallet. 2 factor auth, PIN keypad, session management, email authorization, GPG auth.. http://1v.io/flowice
innovation
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250



View Profile
June 02, 2013, 08:01:36 PM
 #17

我有个问题  我买了烤猫的BLADE  这东西不支持STRATUM  所以我不得不下载了个MINING STRATUM PROXY 来连接矿池
可是我的BLADE如果每天24小时开着 那我的电脑也得24小时开着(用来运行PROXY) 有没有什么办法不用24 小时开着电脑啊
买一个便宜电脑 - Raspberry PI etc.
对,买个便宜的HPTC或者客厅电脑什么的,1000元以下。挑选静音,省电,稳定的。我有一个联想客厅电脑,功率大概36瓦,可以上网,有正版的windows系统。挺不错。
Raspberry PI 没有玩过就别玩了。
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!