Pages:
Author

Topic: Stratum protocol discussion - page 3. (Read 9111 times)

staff
Activity: 4158
Merit: 8382
April 07, 2014, 01:35:14 AM
#22
Quote
Actually I'm on the track of protocol which will allow full democracy of the bitcoin miners like in p2pool, but still with possible zero variance (even pps with difficulty 1 payout scheme), which is something what is missing on p2pool. It should be also DDoS resilient as there won't be any real benefit in attacking the server which will just collect shares and stats...
If only it turned out that way. Instead, it doesn't do any of that at all, and displaced the less efficient GBT stuff that did, in theory, have that capability. Sad

None of this however involved any public discussion of what was actually developed for mining, alas.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
April 06, 2014, 12:28:31 PM
#21
It wasn't developed behind closed doors, you are just regurgitating
The initial development was secret to the public before it was up on slush's pool along with the python proxy. I'd always understood this to be a (anti- Smiley)competitive move.

There remains no BIP describing it, there was no design discussion prior to its release on bitcoin-development. Justifying the closed development, Slush wrote (in the second email my mailbox ever received mentioning stratum mining) "There's no requirement to have BIP for everything what people do. Stratum is NOT related to bitcoin protocol or bitcoin implementation, it is just custom, pooled-mining extension and bitcoin network doesn't need to know about Stratum existence at all."  Perhaps you were somehow an insider on it— if so, why didn't you discourage some of the poor choices in it? Smiley  But from my own perspective it really was developed in secret and, in my opinion, carries some of the predictable flaws of a protocol developed without broad input. It's not the end of the world, in any case. Far worse has been done elsewhere.
Yeah it was so secret that only people who visited bitcointalk and github could find out about it ....................

The basis for it (not as a mining protocol) was started in December 2011 ...
https://bitcointalksearch.org/topic/stratum-overlay-network-protocol-over-bitcoin-55842

https://github.com/slush0

He also made mention of the mining protocol here, but, no doubt, there are other details around:
https://bitcointalksearch.org/topic/m.702097

As I said, though you hid the end of it:
From a protocol development perspective, stratum being defined in terms of difficulty is an embarrassing flaw of the sort that would have been avoided if it hadn't been developed behind closed doors.
...
It wasn't developed behind closed doors, you are just regurgitating a lie spread by Luke.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
April 06, 2014, 10:24:54 AM
#20
No doubt Luke will claim ignorance of the relevance of this link to the discussion, but it is quite obviously relevant to anyone with the intelligence level necessary to understand ...
https://bitcointalksearch.org/topic/m.1180529
staff
Activity: 4158
Merit: 8382
April 05, 2014, 07:29:14 PM
#19
It wasn't developed behind closed doors, you are just regurgitating
The initial development was secret to the public before it was up on slush's pool along with the python proxy. I'd always understood this to be a (anti- Smiley)competitive move.

There remains no BIP describing it, there was no design discussion prior to its release on bitcoin-development. Justifying the closed development, Slush wrote (in the second email my mailbox ever received mentioning stratum mining) "There's no requirement to have BIP for everything what people do. Stratum is NOT related to bitcoin protocol or bitcoin implementation, it is just custom, pooled-mining extension and bitcoin network doesn't need to know about Stratum existence at all."  Perhaps you were somehow an insider on it— if so, why didn't you discourage some of the poor choices in it? Smiley  But from my own perspective it really was developed in secret and, in my opinion, carries some of the predictable flaws of a protocol developed without broad input. It's not the end of the world, in any case. Far worse has been done elsewhere.
legendary
Activity: 2576
Merit: 1186
April 05, 2014, 04:44:28 PM
#18
As someone who's working on a Stratum implementation right now, I must say this is a VERY narrow view of reality.

I've been using the following resources to gain my knowledge of the protocol:
https://bitcointalksearch.org/topic/stratum-overlay-network-protocol-over-bitcoin-55842
https://bitcointalksearch.org/topic/ann-stratum-mining-protocol-asic-ready-108533
http://mining.bitcoin.cz/stratum-mining
https://www.btcguild.com/new_protocol.php

Notice how 50% of those links were forum posts   Cheesy
You're free to reference whatever you want, but that doesn't change what "documentation" means.

But, I'm guessing none of the discussion here counts as documentation either and can be entirely ignored  Wink
Feel free to ignore the forum posts.
Unlike stratum, getblocktemplate is properly documented in Bitcoin standards and the wiki.

https://en.bitcoin.it/wiki/Getblocktemplate
https://en.bitcoin.it/wiki/BIP_0022
https://en.bitcoin.it/wiki/BIP_0023
newbie
Activity: 56
Merit: 0
April 05, 2014, 01:06:47 PM
#17
Did you miss this sticky post?

I DID!!!!

Thank you!

Since we're talking drafts, and implementation. Both that sticky, and I think Slush's website, mention HTTP Poll as an optional transport mechanism. Do any mining apps support HTTP Poll? Standard TCP sockets seems to be the prevailing implementation.
-ck
legendary
Activity: 4018
Merit: 1622
Ruu \o/
April 05, 2014, 10:52:45 AM
#16
As someone who's working on a Stratum implementation right now, I must say this is a VERY narrow view of reality.

I've been using the following resources to gain my knowledge of the protocol:
https://bitcointalksearch.org/topic/stratum-overlay-network-protocol-over-bitcoin-55842
https://bitcointalksearch.org/topic/ann-stratum-mining-protocol-asic-ready-108533
http://mining.bitcoin.cz/stratum-mining
https://www.btcguild.com/new_protocol.php

Notice how 50% of those links were forum posts   Cheesy

But, I'm guessing none of the discussion here counts as documentation either and can be entirely ignored  Wink
Did you miss this sticky post?
https://bitcointalksearch.org/topic/stratum-protocol-documentation-557866
It's as close as it gets to the repository of the collated official documentation which was never written, only the draft proposal by slush which is quoted there.
newbie
Activity: 56
Merit: 0
April 05, 2014, 07:38:54 AM
#15
Forum posts are not documentation.

As someone who's working on a Stratum implementation right now, I must say this is a VERY narrow view of reality.

I've been using the following resources to gain my knowledge of the protocol:
https://bitcointalksearch.org/topic/stratum-overlay-network-protocol-over-bitcoin-55842
https://bitcointalksearch.org/topic/ann-stratum-mining-protocol-asic-ready-108533
http://mining.bitcoin.cz/stratum-mining
https://www.btcguild.com/new_protocol.php

Notice how 50% of those links were forum posts   Cheesy

But, I'm guessing none of the discussion here counts as documentation either and can be entirely ignored  Wink
legendary
Activity: 2576
Merit: 1186
April 05, 2014, 03:20:34 AM
#14
2013 Feb, after discussion, mining.subscribe was extended to take 2 arguments, so now it's mining.subscribe(String useragent, sessionid) where sessionid is optional, but if provided must match a previous session's mining.notify subscription id. If the server allows resuming a session, it will give you back the same subscription id and extranonce information.

BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
This post should have been on the other side of the split.
legendary
Activity: 2576
Merit: 1186
April 05, 2014, 03:10:58 AM
#13
Quote from: ckolivas
Here we go again  :-

Let the undocumented stuff coexist, it's rather unimportant anyway since most pools couldn't care less what the miner wants.
+1, suggest splitting side-discussion off to leave the thread to just the documentation posts.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
April 05, 2014, 02:58:45 AM
#12
From a protocol development perspective, stratum being defined in terms of difficulty is an embarrassing flaw of the sort that would have been avoided if it hadn't been developed behind closed doors.
...
It wasn't developed behind closed doors, you are just regurgitating a lie spread by Luke.
staff
Activity: 4158
Merit: 8382
April 05, 2014, 02:46:45 AM
#11
From a protocol development perspective, stratum being defined in terms of difficulty is an embarrassing flaw of the sort that would have been avoided if it hadn't been developed behind closed doors. ... The fact that it's a floating point value which cannot precisely specify the actual values used in bitcoin is a pretty big facepalm.  All of this really should have been using bits like the bitcoin protocol does both for precision and consistency sake (or an expanded target— to accommodate legacy stupidity, but then again people will just get the byte order confused and complain it wastes bandwidth. Smiley ).

In any case, should have beens aside— what am I missing here?  There is no formal specification for stratum at all, slush was apparently sucked into Trezor land before publishing it.  AFAICT nothing is implementing the difficulty based message that was suggested way in the past, but at least luke's stuff has implemented the target based approach.  Whats to debate?
-ck
legendary
Activity: 4018
Merit: 1622
Ruu \o/
April 05, 2014, 02:27:26 AM
#10
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
No, there isn't. Nothing implements this, and it isn't documented anywhere.

Using a target fixes the inherent problems with using difficulty as a Number:
  • There is no agreement over which difficulty measurement is to be used. The official spec says bdiff; BTCGuild uses pdiff; various scrypt pools use Ldiff
  • Some common targets (such as pdiff 1) cannot be accurately conveyed without huge data sizes
  • Implementing conversion to/from difficulty accurately requires a bignum library, so often (eg, *gminer) it is just approximated.
Seems like a valid concern to me since it was described over a year ago and yours isn't documented anywhere except as part of your code. Of course you're free to implement whatever you want on top of stratum. Cgminer happily works with any arbitrary diffs and does not have problems with the accuracy of the shares it returns in response, using true diff 1 as the base for all stratum operations. I wasn't aware there was any controversy about the move to true diff1; that old simplification only affected getwork. Since work in stratum is even defined in terms of difficulty, it makes even less sense to then request a difficulty as a target. I don't see a problem with you using it for your software and your pool but I can't see why it should be seen as part of the stratum spec.
legendary
Activity: 2576
Merit: 1186
April 05, 2014, 02:22:42 AM
#9
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
No, there isn't. Nothing implements this, and it isn't documented anywhere.
If you say something that contradicts facts in front of your face, oddly enough, that just makes you look foolish.
Try a little sense in your posts.

One of the posts above, shows where it was documented, over a year ago:
https://bitcointalksearch.org/topic/m.1543341
Forum posts are not documentation.
You've been flipping too many burgers at McDonalds - it's softening your brain and you are forgetting things:
https://bitcointalksearch.org/topic/m.1543185

But I guess that's to be expected.
Hard to see how I forget something I never read in the first place.
I don't see anything relevant there anyway. Con agreed to implement slush's spec and then never did. How is this relevant?
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
April 05, 2014, 01:09:30 AM
#8
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
No, there isn't. Nothing implements this, and it isn't documented anywhere.
If you say something that contradicts facts in front of your face, oddly enough, that just makes you look foolish.
Try a little sense in your posts.

One of the posts above, shows where it was documented, over a year ago:
https://bitcointalksearch.org/topic/m.1543341
Forum posts are not documentation.
You've been flipping too many burgers at McDonalds - it's softening your brain and you are forgetting things:
https://bitcointalksearch.org/topic/m.1543185

But I guess that's to be expected.
legendary
Activity: 2576
Merit: 1186
April 05, 2014, 01:06:11 AM
#7
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
No, there isn't. Nothing implements this, and it isn't documented anywhere.
If you say something that contradicts facts in front of your face, oddly enough, that just makes you look foolish.
Try a little sense in your posts.

One of the posts above, shows where it was documented, over a year ago:
https://bitcointalksearch.org/topic/m.1543341
Forum posts are not documentation.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
April 05, 2014, 01:04:51 AM
#6
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
No, there isn't. Nothing implements this, and it isn't documented anywhere.
If you say something that contradicts facts in front of your face, oddly enough, that just makes you look foolish.
Try a little sense in your posts.

One of the posts above, shows where it was documented, over a year ago:
https://bitcointalksearch.org/topic/m.1543341

Edit: and of course on the same page:
https://bitcointalksearch.org/topic/m.1543185
full member
Activity: 134
Merit: 100
April 05, 2014, 12:36:44 AM
#5
Let me be the first to say thank you first designing, implementing and now collecting this information for all.  Much more concise reading than https://bitcointalk.org/index.php?topic=108533.660 or what else I've found on the pools pages.
legendary
Activity: 2576
Merit: 1186
April 05, 2014, 12:01:40 AM
#4
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
No, there isn't. Nothing implements this, and it isn't documented anywhere.

Using a target fixes the inherent problems with using difficulty as a Number:
  • There is no agreement over which difficulty measurement is to be used. The official spec says bdiff; BTCGuild uses pdiff; various scrypt pools use Ldiff
  • Some common targets (such as pdiff 1) cannot be accurately conveyed without huge data sizes
  • Implementing conversion to/from difficulty accurately requires a bignum library, so often (eg, *gminer) it is just approximated.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
April 04, 2014, 11:27:54 PM
#3
...
BFGMiner (at least) will also send mining.suggest_target("hex target") upon connection, if the user has a preferred target.
Why would it do this?
There is already mining.suggest_difficulty(difficulty)
Someone didn't read the docs and added it to their non-standard miner clone?
Pages:
Jump to: