Bitcoin Forum
April 26, 2024, 06:55:33 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] 34 35 »
  Print  
Author Topic: [ANN] Stratum mining protocol - ASIC ready  (Read 145767 times)
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 23, 2014, 10:14:07 AM
 #641

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
1714114533
Hero Member
*
Offline Offline

Posts: 1714114533

View Profile Personal Message (Offline)

Ignore
1714114533
Reply with quote  #2

1714114533
Report to moderator
1714114533
Hero Member
*
Offline Offline

Posts: 1714114533

View Profile Personal Message (Offline)

Ignore
1714114533
Reply with quote  #2

1714114533
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714114533
Hero Member
*
Offline Offline

Posts: 1714114533

View Profile Personal Message (Offline)

Ignore
1714114533
Reply with quote  #2

1714114533
Report to moderator
djeZo
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 23, 2014, 10:37:52 AM
 #642

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 Offline

Activity: 19
Merit: 0


View Profile
February 24, 2014, 10:00:27 AM
 #643

Hi,

can somebody explain me what is the session in stratum?

Quote
{"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 Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 24, 2014, 10:02:30 AM
 #644

Hi,

can somebody explain me what is the session in stratum?

Quote
{"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 Offline

Activity: 19
Merit: 0


View Profile
February 24, 2014, 10:06:29 AM
 #645

Thanks Wink
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 24, 2014, 10:08:03 AM
 #646

Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Undecided

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
djeZo
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 24, 2014, 11:50:11 AM
 #647

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 Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 24, 2014, 12:23:12 PM
 #648

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
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 24, 2014, 12:45:06 PM
 #649

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
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile WWW
February 25, 2014, 04:54:10 PM
 #650

Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Undecided

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 Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 25, 2014, 08:39:01 PM
 #651

Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Undecided

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
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile WWW
February 25, 2014, 09:54:24 PM
 #652

Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Undecided

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

That'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 Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 25, 2014, 10:22:46 PM
 #653

Unfortunately very few pools currently support reconnect. We can't force them to implement a feature that only benefits miners Undecided

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

That'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
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile WWW
February 25, 2014, 10:58:18 PM
 #654

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
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 26, 2014, 12:10:50 AM
 #655

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 Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 26, 2014, 12:22:55 AM
 #656

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
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 26, 2014, 12:24:41 AM
 #657

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 Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 26, 2014, 12:25:44 AM
 #658

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 Offline

Activity: 17
Merit: 0


View Profile
February 26, 2014, 02:51:57 PM
 #659

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
Code:
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 Offline

Activity: 4
Merit: 0


View Profile WWW
March 09, 2014, 10:35:37 AM
 #660

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."

Code:
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
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] 34 35 »
  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!