Bitcoin Forum
November 22, 2017, 06:05:51 AM *
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 143543 times)
beekeeper
Sr. Member
****
Offline Offline

Activity: 406


LTC


View Profile WWW
October 04, 2012, 10:53:42 PM
 #161

Oh, this! Proxy is working in "compatibility mode" by default, to ensure that all, even very old miners, will work with it with no issues. If you have some modern miner (cgminer, poclbm or so), you can run it with --real-target. Currently the proxy is filtering low-diff shares, so you may see different numbers in the miner and on the pool. Thanks to --real-target, your numbers in miner won't be screwed anymore.

yes, I do that:

Quote
user   27107  1.6  1.3  28920 13692 ?        Sl   00:42   1:06 python ./mining_proxy.py -o stratum.btcguild.com -p 9332 -rt

there is no difference, still around 5% missing (I am using some custom miner):

Example vardiff worker:
Quote
total_unsolved_gws(superK)=4640(41.46%), total_solved_gws(superK)=6552(58.54%), (solved+unsolved)=11192

Example diff1, DE server worker:
Quote
total_solved_workunits_count=30078.00
total_failed_workunits_count=16128.00
If you compute second, total_solved_workunits_count is 65% of (total_solved_workunits_count + total_failed_workunits_count)

So I need a diff1 stratum connection to test if vardiff causes this difference or something else (network, etc.)

25Khs at 5W Litecoin USB dongle (FPGA), 45kHs overclocked
https://bitcointalk.org/index.php?topic=310926
Litecoin FPGA shop -> http://ltcgear.com
1511330751
Hero Member
*
Offline Offline

Posts: 1511330751

View Profile Personal Message (Offline)

Ignore
1511330751
Reply with quote  #2

1511330751
Report to moderator
1511330751
Hero Member
*
Offline Offline

Posts: 1511330751

View Profile Personal Message (Offline)

Ignore
1511330751
Reply with quote  #2

1511330751
Report to moderator
1511330751
Hero Member
*
Offline Offline

Posts: 1511330751

View Profile Personal Message (Offline)

Ignore
1511330751
Reply with quote  #2

1511330751
Report to moderator
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511330751
Hero Member
*
Offline Offline

Posts: 1511330751

View Profile Personal Message (Offline)

Ignore
1511330751
Reply with quote  #2

1511330751
Report to moderator
1511330751
Hero Member
*
Offline Offline

Posts: 1511330751

View Profile Personal Message (Offline)

Ignore
1511330751
Reply with quote  #2

1511330751
Report to moderator
optimator
Sr. Member
****
Offline Offline

Activity: 347



View Profile WWW
October 04, 2012, 11:12:40 PM
 #162

I think this discussion is a simple misunderstanding

Difficulty is not an attribute of job definition, which is clearly true

Difficulty not being an attribute of job definition is as the stratum protocol defines it.

However, this does not preclude a pool from tracking the difficulty associated with a job. It's up to the pool's implementation to determine how it will be handled. I suspect most pools will NOT let the miner lose credit for work created.

Whether to include or separate mining difficulty from the notify transaction may be interesting from an academic perspective, but the real life implementation of the protocol WILL NOT result in miners loosing credit for work.

dlasher
Sr. Member
****
Offline Offline

Activity: 417



View Profile WWW
October 04, 2012, 11:39:36 PM
 #163



Slush, I'm testing the new version of cgminer+stratum behind the proxy and I ran into an interesting question/issue.

BTCGuild returns stratum information in it's header, which the proxy passes through to cgminer. Cgminer then takes that IP and bypasses the proxy.

In theory, shouldn't the proxy be able to relabel the header response to keep itself in the chain? (maybe make that behavior a command-line-switch?)

kano
Legendary
*
Offline Offline

Activity: 2282


Linux since 1997 RedHat 4


View Profile
October 04, 2012, 11:57:06 PM
 #164

...
Whether to include or separate mining difficulty from the notify transaction may be interesting from an academic perspective, but the real life implementation of the protocol WILL NOT result in miners loosing credit for work.
Ah so you are getting around the problem of the protocol somehow by forcing the two pieces of data to be linked?
(instead of simply having them as one piece of data)

Across an internet connection ... then I presume you are somehow forcing both pieces of data to be in a single packet?
... so it's working around a design problem by ... doing something because it's not part of the notify ...
Why not just fix notify Tongue
Oh wait ... then slush's current code would require changes ... and that's out of the question - he's at the top of the curve - though which one?

While on the subject of good code - slush are you ever going to stop prioritising higher rate hashers on LP?
What you do at the moment means that low rate hashers lose a higher % of work on an LP ... the lower the hash rate - the higher the %.
Removing 'random' from that part of the equation has that obvious effect.

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
optimator
Sr. Member
****
Offline Offline

Activity: 347



View Profile WWW
October 05, 2012, 01:45:41 AM
 #165

Across an internet connection ... then I presume you are somehow forcing both pieces of data to be in a single packet?
... so it's working around a design problem by ... doing something because it's not part of the notify ...

Yes! That's what a good stratum pool will do. Again the effect result of a good implementation is the same to all miners - they don't lose credit for work they have completed.

slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
October 05, 2012, 05:01:51 AM
 #166

Proxying of Stratum protocol itself isn't finished in the proxy yet. For this reason proxy simply instruct Stratum miners to connect directly to the pool. I'm working on stratum-stratum mode right now and it will be available in version 1.0.0.

Slush, I'm testing the new version of cgminer+stratum behind the proxy and I ran into an interesting question/issue.
BTCGuild returns stratum information in it's header, which the proxy passes through to cgminer. Cgminer then takes that IP and bypasses the proxy.
In theory, shouldn't the proxy be able to relabel the header response to keep itself in the chain? (maybe make that behavior a command-line-switch?)

slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
October 05, 2012, 05:04:09 AM
 #167

So I need a diff1 stratum connection to test if vardiff causes this difference or something else (network, etc.)

You can test it on my pool, it is still working on diff1. About that losing work - you'll probably need to discuss this with Eleuthria and ask him to check server logs.

beekeeper
Sr. Member
****
Offline Offline

Activity: 406


LTC


View Profile WWW
October 05, 2012, 07:22:00 AM
 #168

Ok, I will. TY

25Khs at 5W Litecoin USB dongle (FPGA), 45kHs overclocked
https://bitcointalk.org/index.php?topic=310926
Litecoin FPGA shop -> http://ltcgear.com
slush
Legendary
*
Offline Offline

Activity: 1372



View Profile WWW
October 06, 2012, 01:57:46 AM
 #169

I just published version 1.0.0 of proxy on github (I'll publish EXE in few days if there won't be any major bug). This version introduces "Stratum subpool" feature: now can proxy serve not only getwork jobs, but also Stratum jobs for native Stratum miners. Thanks to this, you can now point up to 256 Stratum-powered miners to Stratum proxy and it will use just one upstream connection to the pool, keeping network overhead at minimum.

Edit: Version 1.0.0 requires stratum library 0.2.7, so after "git pull" you'll need to re-run "setup.py install" or run "easy_install -U stratum".

In theory, shouldn't the proxy be able to relabel the header response to keep itself in the chain? (maybe make that behavior a command-line-switch?)


-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
October 07, 2012, 08:52:38 AM
 #170

Stratum support is now in an official cgminer release, version 2.8.0:

https://bitcointalk.org/index.php?topic=28402.msg1252632#msg1252632

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
October 07, 2012, 09:57:21 AM
 #171

That's excellent news! Btw did you fix that reconnection issue?

Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
October 07, 2012, 09:57:40 AM
 #172

cool
Stratum support is now in an official cgminer release, version 2.8.0:

https://bitcointalk.org/index.php?topic=28402.msg1252632#msg1252632

Cool
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
October 07, 2012, 10:00:13 AM
 #173

That's excellent news! Btw did you fix that reconnection issue?
Yes it works generically by reconnecting if possible after a clear disconnection, or 2 minutes of no communication from the pool.

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
October 07, 2012, 10:04:19 AM
 #174

Perfect!

Graet
VIP
Legendary
*
Offline Offline

Activity: 980



View Profile WWW
October 07, 2012, 10:11:10 AM
 #175

Stratum support is now in an official cgminer release, version 2.8.0:

https://bitcointalk.org/index.php?topic=28402.msg1252632#msg1252632

Awesome work ckolivas
I sent a 5btc donation from the pool, I know our miners will appreciate it when we have stratum support Smiley
Coming soontm

| 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
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
October 07, 2012, 10:14:35 AM
 #176

Stratum support is now in an official cgminer release, version 2.8.0:

https://bitcointalk.org/index.php?topic=28402.msg1252632#msg1252632

Awesome work ckolivas
I sent a 5btc donation from the pool, I know our miners will appreciate it when we have stratum support Smiley
Coming soontm
Thanks! Glad someone appreciates the effort  Grin It was quite a bit of work...

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

Activity: 1750



View Profile
October 07, 2012, 05:26:35 PM
 #177

Stratum support is now in an official cgminer release, version 2.8.0:

https://bitcointalk.org/index.php?topic=28402.msg1252632#msg1252632

Awesome work ckolivas
I sent a 5btc donation from the pool, I know our miners will appreciate it when we have stratum support Smiley
Coming soontm
Thanks! Glad someone appreciates the effort  Grin It was quite a bit of work...

Thanks for your work ckolivas.  Before I send it, please just confirm that the donation should be sent to the address in your sig: 148KkS2vgVi4VzUi4JcKzM2PMaMVPi3nnq

RIP BTC Guild, April 2011 - June 2015
Graet
VIP
Legendary
*
Offline Offline

Activity: 980



View Profile WWW
October 07, 2012, 05:36:37 PM
 #178

he is asleep, but it is correct Smiley

| 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
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
October 07, 2012, 10:58:26 PM
 #179

Stratum support is now in an official cgminer release, version 2.8.0:

https://bitcointalk.org/index.php?topic=28402.msg1252632#msg1252632

Awesome work ckolivas
I sent a 5btc donation from the pool, I know our miners will appreciate it when we have stratum support Smiley
Coming soontm
Thanks! Glad someone appreciates the effort  Grin It was quite a bit of work...

Thanks for your work ckolivas.  Before I send it, please just confirm that the donation should be sent to the address in your sig: 148KkS2vgVi4VzUi4JcKzM2PMaMVPi3nnq
Much appreciated, thanks.  Smiley

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
October 08, 2012, 11:16:57 PM
 #180

I just found a bug in Stratum 1.0.0 + stratum-enabled miner (cgminer/poclbm). I'm working on bugfix right now, but users using Stratum proxy 1.0.0 on my pool should check their miners, because they most likely crashed during pool app restart 10 minutes ago.

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!