Bitcoin Forum
June 27, 2024, 06:32:44 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 »
  Print  
Author Topic: New stratum/getwork proxy with Web-based GUI and pools management  (Read 120841 times)
bitsum
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250


View Profile
October 13, 2014, 04:34:54 PM
 #261

If we can't control the difficulty then can we control the hashing period?

danilson
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
October 13, 2014, 05:41:01 PM
Last edit: October 13, 2014, 09:01:51 PM by danilson
 #262

i have a problem whit miningrental

if mining with my local miner no problem, if use miningrental i have this error




2014-10-13 22:19:01,129 INFO    Pool-coint-Thread:strat.mining.stratum.proxy.worker.StratumWorkerConnection - REJECTED share (diff: 78.91852393) from 1111@/107.170.50.27:8878 on coint. Booo !!!!. Error: JsonRpcError code=20, message=incorrect size of extranonce2, traceback=null

i have only rejected

what do I do ?
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
October 13, 2014, 09:30:58 PM
 #263

It is one of the main problem of renting system : you do not know which mining software is used by the miner.

The rejections with the bad extranonce2 size comes from a bug in cgminer3.7.2. This bug is fixed in cgminer4.x, all versions of sgminer and some cgminer3.7.2 forks. Some ASICs miners also have this problem (if their firmware is not up to date). This bug does not allow to use stratum proxies (mine, slush0 one, bfgminer...)

Before renting a rig, you should ask the miner owner which mining software he uses (and the version).

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
October 13, 2014, 10:00:20 PM
 #264

If we can't control the difficulty then can we control the hashing period?

What do you want to mean by "hashing period" ?

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
danilson
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
October 13, 2014, 10:42:48 PM
 #265

ok, thanks!


It is one of the main problem of renting system : you do not know which mining software is used by the miner.

The rejections with the bad extranonce2 size comes from a bug in cgminer3.7.2. This bug is fixed in cgminer4.x, all versions of sgminer and some cgminer3.7.2 forks. Some ASICs miners also have this problem (if their firmware is not up to date). This bug does not allow to use stratum proxies (mine, slush0 one, bfgminer...)

Before renting a rig, you should ask the miner owner which mining software he uses (and the version).
manfred87
Full Member
***
Offline Offline

Activity: 201
Merit: 100


View Profile
October 14, 2014, 11:49:59 AM
 #266

2014-10-13 22:19:01,129 INFO    Pool-coint-Thread:strat.mining.stratum.proxy.worker.StratumWorkerConnection - REJECTED share (diff: 78.91852393) from 1111@/107.170.50.27:8878 on coint. Booo !!!!. Error: JsonRpcError code=20, message=incorrect size of extranonce2, traceback=null
The rejections with the bad extranonce2 size comes from a bug in cgminer3.7.2. This bug is fixed in cgminer4.x, all versions of sgminer and some cgminer3.7.2 forks. Some ASICs miners also have this problem (if their firmware is not up to date). This bug does not allow to use stratum proxies (mine, slush0 one, bfgminer...)
There is a simple solution to this: I programmed a little proxy for myself.. it takes every command from client and server and sends it to each other ( my aim: some commands get deleted, like "stratum.reconnect". my proxy then does the reconnect ). Problem: you can only have 1 client instead of 10 clients ( as extranonce2 is not changed, two clients could produce duplicate shares ).. but when multiple clients show up, i simply open new connections to the same server ( so every client has it's own extranonce1 )

anyways: as a proxy you could simply change the pool diff.. of course you could not lower it.. but if the server accepts >1024 , it should be no problem if every client sends >2048 !? ( 2048 is alway bigger than 1024 ). so you could increase the diff, and so lower network traffic, without loosing hashrate!? ( if the client is fast enough for one 2048-share /second of course... )
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
October 14, 2014, 12:52:29 PM
 #267

2014-10-13 22:19:01,129 INFO    Pool-coint-Thread:strat.mining.stratum.proxy.worker.StratumWorkerConnection - REJECTED share (diff: 78.91852393) from 1111@/107.170.50.27:8878 on coint. Booo !!!!. Error: JsonRpcError code=20, message=incorrect size of extranonce2, traceback=null
The rejections with the bad extranonce2 size comes from a bug in cgminer3.7.2. This bug is fixed in cgminer4.x, all versions of sgminer and some cgminer3.7.2 forks. Some ASICs miners also have this problem (if their firmware is not up to date). This bug does not allow to use stratum proxies (mine, slush0 one, bfgminer...)
There is a simple solution to this: I programmed a little proxy for myself.. it takes every command from client and server and sends it to each other ( my aim: some commands get deleted, like "stratum.reconnect". my proxy then does the reconnect ). Problem: you can only have 1 client instead of 10 clients ( as extranonce2 is not changed, two clients could produce duplicate shares ).. but when multiple clients show up, i simply open new connections to the same server ( so every client has it's own extranonce1 )
This is indeed a solution, but it is not the one used for this proxy for several reasons:
-This approach is only useful (AFAIK) as a (partial) workaround for the cgminer 3.7.2 extranonce2 size bug and I consider that cgminer version as deprecated. If this version is really needed, getwork can be used behind the proxy instead of stratum. I said partial, since it will not work for some pools which have an extranonce2size > 4 (like Nicehash).
-The support of getwork with this approach is more painful (even if not impossible)
-The pool switching is a bit more complicated since several pool connections have to be managed at the same time.

I do not know if you want to release your proxy for everyone, but it would be nice. Users would have more choices and could find a proxy that matches their needs.  Smiley (You can post here the link to your proxy if it is already open-source)

Quote
anyways: as a proxy you could simply change the pool diff.. of course you could not lower it.. but if the server accepts >1024 , it should be no problem if every client sends >2048 !? ( 2048 is alway bigger than 1024 ). so you could increase the diff, and so lower network traffic, without loosing hashrate!? ( if the client is fast enough for one 2048-share /second of course... )


For the difficulty management by the proxy, I could indeed change the pool difficulty on the fly (it is in the TODO list, but not enough time, as usual). But, I can only DECREASE it, not increase it:
(Reminder: the pool take into account the number of shares sumbitted and the pool difficulty, not the real share difficulty)

-If the proxy decrease the difficulty (let's say diff1024 sent by the pool, and the proxy accept diff512 shares), the miners will sumbit twice the number of shares to the proxy. The proxy will have to check the real share difficulty sent by miners and submit to the pool only shares with diff>=1024 (else, there would be a lots of rejects with "Share above target" error). So, the hashrate estimated by the proxy will be more accurate for miners and profit will not be impacted since the pool receives the same number of shares with at least a diff of 1024.

-But if the pool increase the difficulty (let's say diff1024 sent by the pool, and the proxy accepts diff2048 shares), miners will submit only half the number of shares. So the profit will be divided by 2 since the pool receives less shares, even if the shares have diff >= 2048.


Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
manfred87
Full Member
***
Offline Offline

Activity: 201
Merit: 100


View Profile
October 14, 2014, 07:27:08 PM
 #268

ah okay..i thought the pool would count the submitted difficulty .. my pool shoes submitted difficulty in the share overview.. so it would make sense.. at least he would need it to show the actual hashrate, or can he count it only with shares?

but i think you are mixing something up.. the target has to be low, thats right.. in principle we are guessing a random number, which has to be below the target.  but a low target means a high difficulty... ( difficulty = difficulty_1_target / current_target ).. so i would expect a pool with d=1024 would call a d=512-share as "above target" .. it would be very bad for the pool if he would reject very good solutions for his problem Smiley

again on nicehash: maybe it is company policy to deliver "bad" hashrate... it says "you only pay for accepted shares" .. so they are proxyfying everything, without cheching the content.. and if you have "bad miners" who want to manipulate the system, they will not be stopped.. but the pool then decides which hashes are good or bad..

maybe i will publish my solution soon.. Smiley but still working on it!

by the way: can you recommend a good documentation for the stratum protocol? the official document ( https://mining.bitcoin.cz/stratum-mining ) is not very extensive..
bitsum
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250


View Profile
October 15, 2014, 11:32:51 AM
 #269

Is it possible to set the acceptable difficulty limit in the proxy?

Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
October 15, 2014, 01:11:36 PM
 #270

Is it possible to set the acceptable difficulty limit in the proxy?

No, there is no such feature.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Goldenboyz
Full Member
***
Offline Offline

Activity: 224
Merit: 100


A Blockchain Mobile Operator With Token Rewards


View Profile
October 19, 2014, 08:23:14 PM
 #271

i have error connecting with bfgminer for zeus( https://litecointalk.org/index.php?topic=20477.0 ):
Code:
2014-10-19 22:18:49,318 ERROR    [/2.234.124.164:56220-Thread]:strat.mining.stratum.proxy.network.StratumConnection - JSON-RPC Parsing error with line: {"id": "auth", "method": "mining.authorize", "params": ["user", "pass"]}
2014-10-19 22:19:22,616 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line ÉÅTDÊö¹!0‹[ónSèsRÕ G)]JéWÖ¾}¥J\ÀÀ.
2014-10-19 22:19:22,617 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line À.
2014-10-19 22:19:22,618 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line 42 .
2014-10-19 22:19:22,619 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line .
with cgminer no problem, just to check if there is something wrong

M!R△CLE TELE     BRINGING MAGIC TO THE TELECOM INDUSTRY     JOIN US NOW!
▐▐   40% Biweekly Rewards     ▬▬▬   Calls at €0.2   ▬▬▬     Traffic from €0.01 worldwide   ▌▌
▬▬▬▬▬▬   ANN  Lightpaper  Bounty  Facebook  Twitter  Telegram   ▬▬▬▬▬▬
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
October 20, 2014, 12:19:38 PM
 #272

i have error connecting with bfgminer for zeus( https://litecointalk.org/index.php?topic=20477.0 ):
Code:
2014-10-19 22:18:49,318 ERROR    [/2.234.124.164:56220-Thread]:strat.mining.stratum.proxy.network.StratumConnection - JSON-RPC Parsing error with line: {"id": "auth", "method": "mining.authorize", "params": ["user", "pass"]}
2014-10-19 22:19:22,616 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line ÉÅTDÊö¹!0‹[ónSèsRÕ G)]JéWÖ¾}¥J\ÀÀ.
2014-10-19 22:19:22,617 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line À.
2014-10-19 22:19:22,618 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line 42 .
2014-10-19 22:19:22,619 ERROR    [/2.234.124.164:50062-Thread]:strat.mining.stratum.proxy.worker.StratumWorkerConnection - Parsing error on worker connection /2.234.124.164:50062. Failed to parse line .
with cgminer no problem, just to check if there is something wrong

bfgminer firstly tries to open a SSL connection before using a RAW TCP connection. I have tried to fix this kind of error, but it seems it is not fixed.

Try to add this parameter at the end of the URL in bfgminer: #notls


Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Goldenboyz
Full Member
***
Offline Offline

Activity: 224
Merit: 100


A Blockchain Mobile Operator With Token Rewards


View Profile
October 20, 2014, 09:02:29 PM
 #273

#notls seems to not sort any effect, it can't find the pool.
bfgminer version is BFGminer_4.3.1_ZEUS_Windows and bfgminer 4.9 for reference .

M!R△CLE TELE     BRINGING MAGIC TO THE TELECOM INDUSTRY     JOIN US NOW!
▐▐   40% Biweekly Rewards     ▬▬▬   Calls at €0.2   ▬▬▬     Traffic from €0.01 worldwide   ▌▌
▬▬▬▬▬▬   ANN  Lightpaper  Bounty  Facebook  Twitter  Telegram   ▬▬▬▬▬▬
iulius99
Full Member
***
Offline Offline

Activity: 240
Merit: 100



View Profile
October 27, 2014, 01:03:24 PM
 #274


  Pool A <---+                                                                      
 (Active)     |                                                                                
                 |                                                      
                 |                                                                              
  Pool B <---+ StratumProxy  <-------------+ Rig1                                
(Active)      |                                                                                
                 |                                                
                 |                                                                                
  Pool C <---+                              
(Active)                                      
                                            

Hello! It is possible to have this config? Eventually with more Rig ... ?

yslyung
Legendary
*
Offline Offline

Activity: 1500
Merit: 1002


Mine Mine Mine


View Profile
October 27, 2014, 10:58:18 PM
 #275

wow, much to read & learn... following thx to op for contributing his time & help to the community ! +1
yslyung
Legendary
*
Offline Offline

Activity: 1500
Merit: 1002


Mine Mine Mine


View Profile
October 30, 2014, 09:50:17 PM
 #276

i can't connect my miners Huh it says pool is dead Huh using dragon miner

set at pool #1 : stratum+tcp://192.168.1.3:3333

tried http://192.168.1.3:8332

tried http://127.0.0.1:3333

worker name is x and password is x since worker and password is already set in config file or via web interface but also no joy if i leave worker + password in miner.

no joy at all but i manage to launch stratum with a very basic config file and i can view it via web using 192.168.1.3:8888 or 127.0.0.1:8888.

any help is appreciated.

yslyung
Legendary
*
Offline Offline

Activity: 1500
Merit: 1002


Mine Mine Mine


View Profile
October 31, 2014, 03:05:27 AM
 #277

Can someone please post a working config file for nicehash sha-256 config please, I would like to point several S3 Antminers to my box thats running this program and then point the box at nicehash.. Any help would be much appreciated.

This basic configuration file should work (just replace the "user" value with your BTC address) :

Code:
{
  "pools" : [ {
    "name" : "Nicehash SHA-256",
    "host" : "stratum.nicehash.com:3334",
    "user" : "19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi",
    "password" : "d=2048",
    "enableExtranonceSubscribe" : true,
  }  ]
}

This configuration file is the minimal configuration with default values for all other parameters.

If you want to use Stratum, just point your miner to stratum+tcp://proxyIp:3333. Else, to use Getwork, point your miner to http://proxyIp:8332. The username and password configured in your miner can be anything.



I did the exact same think but my miner won't start mining. Proxy launches successfully.  Web interface is great. The ip of my lappy is 192.168.1.3 which is running the stratum proxy. I'm using dragon miner it shows pool (my ip address) dead. I've tried various add such as with and without stratum, port 3333,8332 etc as described. Running on win8.

TIA for your help.
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
November 04, 2014, 11:29:02 PM
Last edit: November 05, 2014, 11:06:53 AM by Amph
 #278

"no subscribe request recieved from..."

i can't connect from my host to my VM, using this stratum proxy
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
November 05, 2014, 04:24:54 PM
 #279


  Pool A <---+                                                                      
 (Active)     |                                                                                
                 |                                                      
                 |                                                                              
  Pool B <---+ StratumProxy  <-------------+ Rig1                                
(Active)      |                                                                                
                 |                                                
                 |                                                                                
  Pool C <---+                              
(Active)                                      
                                            

Hello! It is possible to have this config? Eventually with more Rig ... ?



Only one pool can be active at the same time on the proxy. The whole hashing power is directed to the active pool. Split of hashing power is not implemented.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
November 05, 2014, 04:26:56 PM
 #280

i can't connect my miners Huh it says pool is dead Huh using dragon miner

set at pool #1 : stratum+tcp://192.168.1.3:3333

tried http://192.168.1.3:8332

tried http://127.0.0.1:3333

worker name is x and password is x since worker and password is already set in config file or via web interface but also no joy if i leave worker + password in miner.

no joy at all but i manage to launch stratum with a very basic config file and i can view it via web using 192.168.1.3:8888 or 127.0.0.1:8888.

any help is appreciated.



I will need your configuration file and the proxy log file.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 »
  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!