Bitcoin Forum
December 11, 2024, 09:28:04 AM *
News: Latest Bitcoin Core release: 28.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 120895 times)
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 02, 2014, 02:54:07 PM
 #121

cloud add muti-profies? can change profie live?

Could you expand on that ?

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

Activity: 217
Merit: 100


View Profile WWW
July 03, 2014, 04:01:32 PM
 #122

0.4.0 version released: https://github.com/Stratehm/stratum-proxy/releases/tag/0.4.0

-Add a GUI available by default at http://127.0.0.1:8888
-Add the --validate-sha256-getowrk-shares option to check the share validity of getwork miners before submitting to a pool. If share is not valid, it is not submitted. Only works for sha256 based pool.
-Fix a bug on the timer task management (may lead to some odd behaviors)
-Add some missing headers to Getwork responses
-Add isEnabled pool configuration property in configuration file.
-Fix an exception with --help option
-Fix an Exception on pool reconnection
-Fix the timer tasks cancel (general stability)
-Fix getwork job no more updated after a while. Several Getwork connections where created when getwork requests are received in burst.
-Add --conf-file (-f) option on command line to use a configuration file (sample files available in the package).
-Send a reply on worker subscribe extranonce request (Stratum).
-Improve error management on getwork connections.
-Fix some pool reconnection problem (an issue is still openned).
-Add a NeoDatis database to store hashrate history for users and pools.
-Update dependencies versions.
-Add midstate and hash1 in getwork resposne for old SHA256 miners.
-Fix a bug when shutdown is requested.

Example of the GUI:



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

Activity: 168
Merit: 100


View Profile
July 03, 2014, 04:40:16 PM
 #123

First off. Very nice JOB!

I'm confused by the graph.

It appears to be showing the hashrate but instead it is plotting the TOTAL SHARES or something.

I was just testing JHA (JackPot Coin) with 3 GPUs and it's showing over 400G hashrate in the graph (I wish).

Also I noticed it if you click on the Pool menu multiple times it keeps adding the same pool over and over to the webpage.

Carlo
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 03, 2014, 05:20:32 PM
 #124

First off. Very nice JOB!

I'm confused by the graph.

It appears to be showing the hashrate but instead it is plotting the TOTAL SHARES or something.

I was just testing JHA (JackPot Coin) with 3 GPUs and it's showing over 400G hashrate in the graph (I wish).

Also I noticed it if you click on the Pool menu multiple times it keeps adding the same pool over and over to the webpage.

Carlo

The graph display a capture of the hashrate every minute (but can be modified with command line option --hashrate-database-sampling-period or hashrateDatabaseSamplingPeriod of the configuration file). The hashrate is computed based on the submitted shares difficulty over 10 minutes (but can be modified with command line option --pool-hashrate-sampling-period or poolHashrateSamplingPeriod of the configuration file.

It seems that the Jackpot coin has a different difficulty-one target from bitcoin (the default proxy configuration). You may add the --scrypt option on your command line (or isScrypt in the configuration file) to modify this target and check if the reported hashrate is fine. If it does not solve the problem, I will add an option to modify the difficulty-one target for jackpot coin (or I will think about a better solution).

In conclusion, try the --scrypt option. If it works, you can clear the hashrate database by removing the database folder in your proxy installation directory.

Thank you for the pool menu button bug report. I will look at it.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
denned
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
July 03, 2014, 06:13:30 PM
 #125

work with getwork pool?
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 03, 2014, 07:01:44 PM
 #126

work with getwork pool?

No. Only stratum pools to stratum/getwork miners.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
arawrpc
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile WWW
July 04, 2014, 06:49:16 AM
 #127

Could this be made to work similar to the Stratum that betarigs uses?
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 04, 2014, 01:57:05 PM
 #128

Similar to betaris ? I do not understand

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

Activity: 462
Merit: 10


View Profile
July 04, 2014, 02:16:37 PM
 #129

Similar to betaris ? I do not understand

They meant here....https://www.betarigs.com/

I ran into issues using your proxy on that site, but that was like the first version you had. I haven't tried since then, since I am back and running on nicehash again Smiley
qiufeng
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
July 04, 2014, 03:08:22 PM
 #130

cloud add muti-profies? can change profie live?

Could you expand on that ?
i mean can add profies live, use your web ? and can active which profie to use or off
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 04, 2014, 03:29:55 PM
 #131

You can configure several pools and enable/disable them at demand through the API.  You can also add/remove pools through this API. All these features will soon be integrated in the web client.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
not.you
Legendary
*
Offline Offline

Activity: 1726
Merit: 1018


View Profile
July 09, 2014, 09:04:10 PM
 #132

I had a power outage and after I restarted the proxy would not run.  It had a bunch of errors (which I did not record - sorry).  I recopied the original files and deleted the database folder and it is working again.  I am guessing it was the deleting of the database folder which actually fixed it but you may want to code for that kind of crash.  You might even be able to reproduce it by killing the proxy miner processes.
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 09, 2014, 10:04:05 PM
 #133

Thank for the bug report. I will look at it. (Could you post the error message if it happens again ?)

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
not.you
Legendary
*
Offline Offline

Activity: 1726
Merit: 1018


View Profile
July 09, 2014, 10:12:43 PM
 #134

Thank for the bug report. I will look at it. (Could you post the error message if it happens again ?)

I will but I also put the computer on a UPS so it's not likely to happen again for me.
cayars
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
July 10, 2014, 01:05:14 PM
 #135

Any chance you might look into CryptoNight a bit closer?

I've been working with it a bit in ccminer.exe and it appears the only real changes are the use of JSON2.  Other than this I'm not really seeing any differences.

Carlo
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 10, 2014, 06:27:40 PM
 #136

Any chance you might look into CryptoNight a bit closer?

I've been working with it a bit in ccminer.exe and it appears the only real changes are the use of JSON2.  Other than this I'm not really seeing any differences.

Carlo

I have already looked at cpuminer-multi in the past to add the cryptonight currencies support to the proxy but unfortunately, the pool mining of these currencies use a stratum-like protocol, but not stratum (I don't know why). Stratum-like since it uses JSON-RPC (2.0 but it is not a problem) over a TCP connection, but all JSON-RPC methods are new (there is no mining.authorize but login, no mining.subscribe, no mining.notify but getwork and more...).

I do not want to add overhead on the proxy to add cryptonight support. I think the best solution is to fork the project and modify the "stratum" connections handling for cryptonight pools/miners.

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

Activity: 288
Merit: 105


View Profile
July 12, 2014, 07:33:42 PM
 #137

This is a really nice project.

I think it would be really cool if there were "groups" of connections. So when I want to switch my farm to another algo, I can switch the proxy to pools I like for that algo without remembering which ports and pools are associated with it. Just a suggestion Smiley

Thanks for all the hard work.
djbert
Member
**
Offline Offline

Activity: 462
Merit: 10


View Profile
July 15, 2014, 11:29:30 AM
 #138

Is it possible to run multiple instances of the proxy on the same computer? I tried and it just crashes. I want to run a proxy for my sha256 workers and the x11 proxy for my other ones, all on the same computer. I didn't see any options relating to this in the help. I am sure the crashes are due to the proxy using the same resources in each instance, since i can run one or the other no problem, just not both at the same time. thank you!
Pfool (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile WWW
July 15, 2014, 03:09:52 PM
 #139

Is it possible to run multiple instances of the proxy on the same computer? I tried and it just crashes. I want to run a proxy for my sha256 workers and the x11 proxy for my other ones, all on the same computer. I didn't see any options relating to this in the help. I am sure the crashes are due to the proxy using the same resources in each instance, since i can run one or the other no problem, just not both at the same time. thank you!

Yes. You have to specify some parameters.

On the command line, they are:
--stratum-listen-port, --rest-listen-port, --getwork-listen-port and --database-directory.

If you use the a configuration file, they are:
"stratumListenPort", "getworkListenPort", "apiListenPort" and "databaseDirectory".

All your instances have to have different values for all of these parameters.

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
ghotiphry
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile
July 15, 2014, 07:57:23 PM
 #140

Thank you for this, I'm using multiple proxy setups to maintain a single connection to a pool per algorithm.  Seems I was setting off some flag with connecting from each miner that was setting a temporary ban, this is a wonderful way around it.

I do have a question about appendWorkerNames, in that I can't get it to work.  Can you give me an example of how this should work, both from the stratum-proxy.conf file and how each miner would signify what name to append?  I'm using config files both to start the proxy and to connect the miners.
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!