Bitcoin Forum
November 23, 2017, 04:56:04 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 143605 times)
beekeeper
Sr. Member
****
Offline Offline

Activity: 406


LTC


View Profile WWW
November 21, 2012, 03:12:27 PM
 #301

python on win7 64 bits have the same issue with redirections.

25Khs at 5W Litecoin USB dongle (FPGA), 45kHs overclocked
https://bitcointalk.org/index.php?topic=310926
Litecoin FPGA shop -> http://ltcgear.com
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511456164
Hero Member
*
Offline Offline

Posts: 1511456164

View Profile Personal Message (Offline)

Ignore
1511456164
Reply with quote  #2

1511456164
Report to moderator
antirack
Hero Member
*****
Offline Offline

Activity: 488


Immersionist


View Profile
November 21, 2012, 03:16:03 PM
 #302

I am on Ubuntu.

It works now, for some reason it only works directly in a bash shell but not in a GNU Screen session.
slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
November 25, 2012, 09:41:42 PM
 #303

I just changed "official" documentation of Stratum protocol at https://mining.bitcoin.cz/stratum-mining to reflect recent discussion about changing the difficulty.

Specifically I added following sentence to chapter "Server can occasionally ask miner to change share difficulty":

Quote
This means that difficulty 2 will be applied to every next job received from the server.

Although I understand this is not breath-taking and verbose explanation, it is basically enough to fix recently discussed issues about difficulty changes.

Reasoning for this change is described here: https://bitcointalk.org/index.php?topic=108533.msg1344456#msg1344456 and this change is backward compatible with all existing mining software (cgminer, proxy, poclbm). It should be also compatible with existing pool implementations (at least with BtcGuild implementation, and I'm not aware of any reason why it should break other implementations), so it is up to poolops if their Stratum pools will gain from this change.

DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
November 25, 2012, 10:17:14 PM
 #304

Thanks, Slush. Just in time for my server implementation Grin

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
December 01, 2012, 11:49:01 AM
 #305

Is the X-Stratum HTTP header documented somewhere?

What should be the contents?

How should it be interpreted by miners? As "stratum is there, if you want it" or "stratum is there, switch to that"

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 01, 2012, 12:32:53 PM
 #306

Is the X-Stratum HTTP header documented somewhere?

I don't think so. It should be "getwork extension", but I'm not aware of any process how to "standardize it". Maybe just edit wiki? :-)

Quote
What should be the contents?

stratum+tcp://url:port

Quote
How should it be interpreted by miners? As "stratum is there, if you want it" or "stratum is there, switch to that"

Existing miners (cgminer, poclbm) implement it as "Stratum is there, switch to that". Thanks to this, users (who don't understand difference between getwork/stratum) don't need to change anything in their config, just update miner.

slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 01, 2012, 12:45:57 PM
 #307

I edited bitcoin.it wiki: https://en.bitcoin.it/wiki/Getwork

DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
December 01, 2012, 07:38:37 PM
 #308

I edited bitcoin.it wiki: https://en.bitcoin.it/wiki/Getwork

Thanks Smiley

So current miners try GBT first, and if it has a Stratum HTTP header they switch to Stratum. If GBT fails completely they switch to getwork, which could also have a Stratum header, but that is never looked at if GBT is supported.

If you implement both GBT and Stratum, the server will decide the default by including a Stratum HTTP header in GBT responses or not.

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
December 02, 2012, 12:23:18 PM
 #309

Currently testing Stratum at BitMinter: https://bitcointalk.org/index.php?topic=27062.msg1372864#msg1372864

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 02, 2012, 12:25:09 PM
 #310

So current miners try GBT first, and if it has a Stratum HTTP header they switch to Stratum.

I have no idea how it works with GBT in miners. That X-Stratum is for getwork protocol...

-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
December 02, 2012, 12:27:50 PM
 #311

So current miners try GBT first, and if it has a Stratum HTTP header they switch to Stratum.

I have no idea how it works with GBT in miners. That X-Stratum is for getwork protocol...
GBT is all done in http so the headers can just as easily contain x-stratum as getwork does, and cgminer will still switch to stratum if it finds the header in gbt comms.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 02, 2012, 12:28:58 PM
 #312

Thanks ckolivas, good to know.

slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 02, 2012, 11:14:29 PM
 #313

Stratum proxy 1.2.0 has been released. Changelog:

* Fixes major bug in C extension for calculating midstate (thanks verement for bug report & pull request).
* Fixes network issues - proxy now actively reconnects after two minutes of pool inactivity (also disconnect miners to indicate connection issues).
* Fixes get_version message.

DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
December 03, 2012, 09:53:02 AM
 #314

What would be recommended server behavior in the case that, after authentication, a worker's credentials are no longer valid. For instance due to the password changing, the worker being deleted, the user being banned or the user account deleted.

And does it make sense to implement more commands than the ones in the docs at bitcoin.cz?

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
December 03, 2012, 09:54:35 AM
 #315

What would be recommended server behavior in the case that, after authentication, a worker's credentials are no longer valid. For instance due to the password changing, the worker being deleted, the user being banned or the user account deleted.

And does it make sense to implement more commands than the ones in the docs at bitcoin.cz?
I'd say just drop the connection since that would mandate they try to reauthorise.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
December 04, 2012, 12:28:55 AM
 #316

I'd say just drop the connection since that would mandate they try to reauthorise.

Yeah, will do that.

Didn't see this until now: https://en.bitcoin.it/wiki/Stratum

Are all those RPC methods documented somewhere?

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 04, 2012, 09:30:14 AM
 #317

https://github.com/luke-jr/bfgminer/issues/186

Do we have any nice solution how to provide enough information for miners to inspect block templates, but prevent pool from overloading? As I see now, these two requirements are going against each other.

slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
December 04, 2012, 09:34:28 AM
 #318

Didn't see this until now: https://en.bitcoin.it/wiki/Stratum
Are all those RPC methods documented somewhere?

AFAIK docs is only there:
https://docs.google.com/a/palatinus.cz/spreadsheet/ccc?key=0Al5UmiyYRxBudENwV2pVVmJsOEJMM1VnSDdHM0JhZlE#gid=0

There's reference implementation of some of them:
https://github.com/slush0/stratum-mining-proxy/blob/master/mining_libs/client_service.py


-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
December 04, 2012, 09:43:39 AM
 #319

https://github.com/luke-jr/bfgminer/issues/186

Do we have any nice solution how to provide enough information for miners to inspect block templates, but prevent pool from overloading? As I see now, these two requirements are going against each other.
luke-jr's code is intentionally checking far too often, trying to make stratum look worse than GBT. Enough of his crap, don't let his influence ruin stratum too.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Graet
VIP
Legendary
*
Offline Offline

Activity: 980



View Profile WWW
December 04, 2012, 09:56:47 AM
 #320

https://github.com/luke-jr/bfgminer/issues/186

Do we have any nice solution how to provide enough information for miners to inspect block templates, but prevent pool from overloading? As I see now, these two requirements are going against each other.
luke-jr's code is intentionally checking far too often, trying to make stratum look worse than GBT. Enough of his crap, don't let his influence ruin stratum too.
+1

| Ozcoin Pooled Mining Pty Ltd https://ozcoin.net Double Geometric Reward System https://lc.ozcoin.net for Litecoin mining DGM| https://crowncloud.net VPS and Dedicated Servers for the BTC community
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!