-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 23, 2014, 10:14:07 AM |
|
I thought this would be the solution too, but I get extremely high value, 500.000.000, when in fact doing only <200kH/s. So this formula can't be correct (at least not for scrypt mining)
Scrypt is nonsense and uses 65536 * the actual difficulty as a defacto standard because it started at too low a difficulty to begin with.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
djeZo
|
|
February 23, 2014, 10:37:52 AM |
|
I thought this would be the solution too, but I get extremely high value, 500.000.000, when in fact doing only <200kH/s. So this formula can't be correct (at least not for scrypt mining)
Scrypt is nonsense and uses 65536 * the actual difficulty as a defacto standard because it started at too low a difficulty to begin with. So, my "guessed" formula is then correct?
|
|
|
|
Sannin
Newbie
Offline
Activity: 19
Merit: 0
|
|
February 24, 2014, 10:00:27 AM |
|
Hi, can somebody explain me what is the session in stratum? {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]} Can I ignore this parameter? What is it? Can I set this parameter? Thanks for reply Analyzing stratum myself and it looks like this one isn't being used anywhere. Maybe reserved for later usage? I analyzed cgminer code and I think that 'sessionid' is used only to reconnect. Am I right?
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 24, 2014, 10:02:30 AM |
|
Hi, can somebody explain me what is the session in stratum? {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]} Can I ignore this parameter? What is it? Can I set this parameter? Thanks for reply Analyzing stratum myself and it looks like this one isn't being used anywhere. Maybe reserved for later usage? I analyzed cgminer code and I think that 'sessionid' is used only to reconnect. Am I right? Correct. Whether the pool uses it or not is implementation dependent, but it is required to support reconnect.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
Sannin
Newbie
Offline
Activity: 19
Merit: 0
|
|
February 24, 2014, 10:06:29 AM |
|
Thanks
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 24, 2014, 10:08:03 AM |
|
Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
djeZo
|
|
February 24, 2014, 11:50:11 AM |
|
ckolivas, since you made cgminer, I am sure you will know to answer this question about stratum protocol; is it possible to turn stratum client into a pool, so that incoming stratum work is further divided into work for other clients. I am building a proxy that sits between pool and multiple instances of cgminer, so that the pool "thinks" it is in fact only one miner running. I know there is existing implementation that does stratum->getwork, but why should I go that heavy load path. I need to develop something light and fast, doing it in C and every cycle is important.
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 24, 2014, 12:23:12 PM |
|
ckolivas, since you made cgminer, I am sure you will know to answer this question about stratum protocol; is it possible to turn stratum client into a pool, so that incoming stratum work is further divided into work for other clients. I am building a proxy that sits between pool and multiple instances of cgminer, so that the pool "thinks" it is in fact only one miner running. I know there is existing implementation that does stratum->getwork, but why should I go that heavy load path. I need to develop something light and fast, doing it in C and every cycle is important.
Possible yes. Someone has to implement it though, and I have no interest in turning cgminer into pool or proxy software at this stage with so much else to do.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
djeZo
|
|
February 24, 2014, 12:45:06 PM |
|
ckolivas, since you made cgminer, I am sure you will know to answer this question about stratum protocol; is it possible to turn stratum client into a pool, so that incoming stratum work is further divided into work for other clients. I am building a proxy that sits between pool and multiple instances of cgminer, so that the pool "thinks" it is in fact only one miner running. I know there is existing implementation that does stratum->getwork, but why should I go that heavy load path. I need to develop something light and fast, doing it in C and every cycle is important.
Possible yes. Someone has to implement it though, and I have no interest in turning cgminer into pool or proxy software at this stage with so much else to do. I will do it, I just need to know theory behind it. Formulas or pseudocode, whatever that can help me to understand what has to be done for it to work.
|
|
|
|
gh2k
|
|
February 25, 2014, 04:54:10 PM |
|
Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Where is the documentation on 'reconnect'? This sounds like it would be useful to me, but I can't find it on slush's page.
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 25, 2014, 08:39:01 PM |
|
Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Where is the documentation on 'reconnect'? This sounds like it would be useful to me, but I can't find it on slush's page. My post here is as close to the official documentation as it gets: https://bitcointalk.org/index.php?topic=108533.msg1557099#msg1557099
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
gh2k
|
|
February 25, 2014, 09:54:24 PM |
|
Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Where is the documentation on 'reconnect'? This sounds like it would be useful to me, but I can't find it on slush's page. My post here is as close to the official documentation as it gets: https://bitcointalk.org/index.php?topic=108533.msg1557099#msg1557099That's excellent. Thanks. Unfortunately, I was hoping to find a way to tell the miner to reconnect (other than just tearing down the connection) so that I could nefariously switch the extranonce for a different one. I misread the post.
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 25, 2014, 10:22:46 PM |
|
Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Where is the documentation on 'reconnect'? This sounds like it would be useful to me, but I can't find it on slush's page. My post here is as close to the official documentation as it gets: https://bitcointalk.org/index.php?topic=108533.msg1557099#msg1557099That's excellent. Thanks. Unfortunately, I was hoping to find a way to tell the miner to reconnect (other than just tearing down the connection) so that I could nefariously switch the extranonce for a different one. I misread the post. Ah no, what you want then is client.reconnect . If you give the client a reconnect and just send it the same stratum url it will reconnect to the same url with a new connection.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
gh2k
|
|
February 25, 2014, 10:58:18 PM |
|
Ah no, what you want then is client.reconnect . If you give the client a reconnect and just send it the same stratum url it will reconnect to the same url with a new connection.
Thanks, that's the one I want! It would be nice if this were documented somewhere. Maybe I'll have a crack at reading your source and making a wiki page about it, once I'm done with my current project.
|
|
|
|
djeZo
|
|
February 26, 2014, 12:10:50 AM |
|
ckolivas, are you aware of cgminer bug (in ver 3.7.2) that causes cgminer to crash - it is related to stratum networking. When there are network issues, it can happen.
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 26, 2014, 12:22:55 AM |
|
ckolivas, are you aware of cgminer bug (in ver 3.7.2) that causes cgminer to crash - it is related to stratum networking. When there are network issues, it can happen.
I have no interest in bug reports for old versions.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
djeZo
|
|
February 26, 2014, 12:24:41 AM |
|
ckolivas, are you aware of cgminer bug (in ver 3.7.2) that causes cgminer to crash - it is related to stratum networking. When there are network issues, it can happen.
I have no interest in bug reports for old versions. I know, I am just asking if it was reported and fixed in later versions.
|
|
|
|
-ck
Legendary
Offline
Activity: 4256
Merit: 1645
Ruu \o/
|
|
February 26, 2014, 12:25:44 AM |
|
ckolivas, are you aware of cgminer bug (in ver 3.7.2) that causes cgminer to crash - it is related to stratum networking. When there are network issues, it can happen.
I have no interest in bug reports for old versions. I know, I am just asking if it was reported and fixed in later versions. Check the changelogs, I recall a few stratum patches.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
orddie
Newbie
Offline
Activity: 17
Merit: 0
|
|
February 26, 2014, 02:51:57 PM |
|
has anyone got anything in the scripts folder to work? when i try and add, refresh, or update i get Error during request: tuple index out of range 2014-02-26 09:46:45,229 ERROR protocol # [Failure instance: Traceback: <type 'exceptions.IndexError'>: tuple index out of range /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/protocol.py:192:dataReceived /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/protocol.py:238:lineReceived /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:13:_handle_event /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:81:call --- <exception caught here> --- /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:134:maybeDeferred /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:78:_run /usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:213:inner ] if I kill the server and start it over again... it launches. I guess my hope is that i can switch the mining without doing a shutdown and launch again.
|
|
|
|
cyborgminer
Newbie
Offline
Activity: 4
Merit: 0
|
|
March 09, 2014, 10:35:37 AM |
|
Hi guys I'm trying to setup a simple http request to stratum mining pool in c#. I'm getting this error: "Underlaying connection was closed." string json = "{\"method\": \"getblocktemplate\", \"params\": [], \"id\": \"0\"}"; WebClient w = new WebClient(); w.Credentials = new NetworkCredential("user", "pass"); w.Headers.Add("Content-type", "application/stratum"); j = wc.UploadString("http://blabla.com:3333", json);
Please help
|
|
|
|
|