Bitcoin Forum
April 25, 2024, 09:22:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 [408] 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805212 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
November 25, 2012, 10:54:09 PM
 #8141

send: {"method":"mining.notify","params":[["1-c9","0000000000e3441ba33cf51d11a8aef12e8ae6d01a5bd54e8ec7cc9a9c22837b","01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff56037c9600094269744d696e746572062f503253482f2cfabe6d6d8c53896d9815717a31ffc5 135ccd79527cec9e360aba3738261e0a338a827eb60100000000000000136465760100000000000 000c900000000000000ffffffff0100f2052a010000001976a914616c05127d60e61407f52bce21 a4f894268cd89588ac00000000","",[],"00000002","1c018167","50b292ad",false]],"id":1}

! :-)
Thanks slush. Tongue

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

Posts: 1714036920

View Profile Personal Message (Offline)

Ignore
1714036920
Reply with quote  #2

1714036920
Report to moderator
1714036920
Hero Member
*
Offline Offline

Posts: 1714036920

View Profile Personal Message (Offline)

Ignore
1714036920
Reply with quote  #2

1714036920
Report to moderator
1714036920
Hero Member
*
Offline Offline

Posts: 1714036920

View Profile Personal Message (Offline)

Ignore
1714036920
Reply with quote  #2

1714036920
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714036920
Hero Member
*
Offline Offline

Posts: 1714036920

View Profile Personal Message (Offline)

Ignore
1714036920
Reply with quote  #2

1714036920
Report to moderator
1714036920
Hero Member
*
Offline Offline

Posts: 1714036920

View Profile Personal Message (Offline)

Ignore
1714036920
Reply with quote  #2

1714036920
Report to moderator
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
November 25, 2012, 10:55:43 PM
 #8142

How goes preparing the first BIP draft, slush?

Not very well. I just found https://www.btcguild.com/new_protocol.php written by Eleuthria and I think this can be quite nice start for the BIP. In contrast to Eleuthria, I'm pretty bad writer and my expression capabilities are a bit limited.
Whatever you do, please EXPLICITLY say what significant bit and byte order the data is in Tongue

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

Activity: 1540
Merit: 1001



View Profile
November 25, 2012, 10:56:48 PM
 #8143

Ckolivas, is it my computer or graphics card that is giving me 46 stales in 8 hours?
Not being mean just asking cause I don't get it. :/

what pool are you pointing to?

M

I mine at Kano's Pool because it pays the best and is completely transparent!  Come join me!
sharky112065
Sr. Member
****
Offline Offline

Activity: 383
Merit: 250



View Profile
November 25, 2012, 10:57:27 PM
 #8144

Ckolivas, is it my computer or graphics card that is giving me 46 stales in 8 hours?
Not being mean just asking cause I don't get it. :/

How could he possibly answer that given that you gave so little information about your setup. Try giving him/us more details. What pool? What version of Cgminer? What is your hardware setup? ...

Note: if you are on p2pool there was a recent hard fork and issues should stabilize over time.

Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
November 25, 2012, 10:57:51 PM
 #8145

Thanks slush. Tongue

Since bitcoin donations have been discovered, it is not necessary to be grateful. :-P

awatson824
Newbie
*
Offline Offline

Activity: 60
Merit: 0



View Profile
November 25, 2012, 11:00:32 PM
 #8146

Ckolivas, is it my computer or graphics card that is giving me 46 stales in 8 hours?
Not being mean just asking cause I don't get it. :/

How could he possibly answer that given that you gave so little information about your setup. Try giving him/us more details. What pool? What version of Cgminer? What is your hardware setup? ...

Note: if you are on p2pool there was a recent hard fork and issues should stabilize over time.


BtcGuild, latest version and I tried with my 1 HD Radeon 6670
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
November 25, 2012, 11:03:45 PM
 #8147

BtcGuild, latest version and I tried with my 1 HD Radeon 6670

There may be many factors, but one of the main reason is roundtrip to the server. Can you check ping to btcguild?

awatson824
Newbie
*
Offline Offline

Activity: 60
Merit: 0



View Profile
November 25, 2012, 11:05:26 PM
 #8148

BtcGuild, latest version and I tried with my 1 HD Radeon 6670

There may be many factors, but one of the main reason is roundtrip to the server. Can you check ping to btcguild?
I have 79 ms to it if thats what your asking.
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
November 25, 2012, 11:06:01 PM
 #8149

Yes, and it is pretty low latency.

sharky112065
Sr. Member
****
Offline Offline

Activity: 383
Merit: 250



View Profile
November 25, 2012, 11:08:06 PM
 #8150

Ckolivas, is it my computer or graphics card that is giving me 46 stales in 8 hours?
Not being mean just asking cause I don't get it. :/

How could he possibly answer that given that you gave so little information about your setup. Try giving him/us more details. What pool? What version of Cgminer? What is your hardware setup? ...

Note: if you are on p2pool there was a recent hard fork and issues should stabilize over time.


BtcGuild, latest version and I tried with my 1 HD Radeon 6670

And how many accepts? What percentage is your rejects?

Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
awatson824
Newbie
*
Offline Offline

Activity: 60
Merit: 0



View Profile
November 25, 2012, 11:10:38 PM
 #8151

Ckolivas, is it my computer or graphics card that is giving me 46 stales in 8 hours?
Not being mean just asking cause I don't get it. :/

How could he possibly answer that given that you gave so little information about your setup. Try giving him/us more details. What pool? What version of Cgminer? What is your hardware setup? ...

Note: if you are on p2pool there was a recent hard fork and issues should stabilize over time.


BtcGuild, latest version and I tried with my 1 HD Radeon 6670

And how many accepts? What percentage is your rejects?
I got about 800 accepts and 40-60 stales
gyverlb
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1000



View Profile
November 25, 2012, 11:11:25 PM
 #8152

...
D. Diff falls in the round-trip window period as cgminer has discarded a share that would now be adequate as cgminer is not aware of the new diff
...
Scenario D:
cgminer can't do anything about it, and this work is lost. Any decrease of diff by a pool can elicit this, and the more often the difficulty is lowered, the more shares are lost. No rejects are induced.
In fact there is something that may be done and it would prevent any share being lost if the difficulty changes are bounded.
Keep shares from the last seconds (this window should probably be a tunable) that satisfy difficulty >= target / max_retarget_factor where max_retarget_factor is either a constant, user-parameter, provided by pool, ...
If there is a decrease in diff, submit the shares that satisfy it.

It's a kludge but shouldn't it work?

P2pool tuning guide
Trade BTC for €/$ at bitcoin.de (referral), it's cheaper and faster (acts as escrow and lets the buyers do bank transfers).
Tip: 17bdPfKXXvr7zETKRkPG14dEjfgBt5k2dd
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
November 25, 2012, 11:16:24 PM
 #8153

ckolivas, maybe you can now simplify the vardiff code by storing currently known difficulty with the job which has been notified by the server? Practically it may work as if difficulty is a part of the notify message itself. This will still work with existing pools, code for managing it is much simpler and solves some uncertainity in edge cases...

-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
November 25, 2012, 11:17:26 PM
 #8154

ckolivas, maybe you can now simplify the vardiff code by storing currently known difficulty with the job which has been notified by the server? Practically it may work as if difficulty is a part of the notify message itself. This will still work with existing pools, code for managing it is much simpler and solves some uncertainity in edge cases...
I already do that.

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

Activity: 1386
Merit: 1097



View Profile WWW
November 26, 2012, 12:05:18 AM
 #8155

There are 4 distinctly different scenarios with changing diff separate from work.
A. Diff rises before cgminer submits lower diff share and cgminer is aware of it
B. Diff falls before cgminer submits now adequate diff share and cgminer is aware of it
C. Diff rises in the round-trip window period as cgminer has already submitted a share below difficulty and cgminer is not aware of the new diff
D. Diff falls in the round-trip window period as cgminer has discarded a share that would now be adequate as cgminer is not aware of the new diff

If I understand it correctly, these scenarios cannot happen after the change in set_difficulty meaning, because difficulty is always received before the job (there cannot be any race condition because both messages are pipelined over the same socket). Am I correct?

That say, I feel that there's some misunderstanding and I'd like to clarify that we all work with the same information.

Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
November 26, 2012, 12:07:43 AM
 #8156

Ok... I think maybe part of the fundamental problem here is that Slush's view is that all work sent out to a miner is related to work that has come before it (and work that will be sent after it), whereas, at least in my view, work that is sent out is discrete; it's completely immaterial what's come before or what is going to come after.  Correct me if I'm wrong here, but it seems that this is the root of the issue and why difficulty is not tied to work in Stratum.  

Maybe if you (Slush) can explain why a work packet being sent to a miner needs to be related to another work packet (either being sent to the same miner or someone else) as opposed to being discrete?  I'm just not seeing why work at difficulty X needs to be related to work at difficulty X + 1.  The miner is assigned work at difficulty X.  If they do the work, they should be rewarded for that work, regardless of the fact that difficulty changed since the work was sent out... they still did the work!  So rejecting the work because the pool arbitrarily decided to change the difficulty on the miner is rude if not outright dishonest.

Rejecting shares because difficulty changes AFTER the fact could easily be exploited by a malicious pool and amount to a very, very significant income stream at a miners expense.  For example, say I setup a malicious pool... every 10th share, I code the pool to raise the difficulty (then reduce it a short while later), thereby "rejecting" 1 out of every 10 shares that miner sends back... but I keep those shares and assign them to another user or the pool itself, etc... because those shares are still valid.  Now the pool gets 10% of the shares a user sends, the user thinks "crap, I'm getting 10% rejects because of my hashrate" or whatever reason you want to assign to it and it looks totally legitimate.  Now reduce that to .1% and spread that across 100 TH and 2000 miners... the miners won't notice such a small amount, but now the pool op gets the equivalent 100 GH/s for free and no one is the wiser.  This is what the Stratum protocol allows as designed, and if I'm wrong about this please let me know and explain why this can't be done?  This is also why difficulty needs to be tied to the work, so that work performed is never rejected because the pool decided to change the rules after the fact.

A more extreme example would be:  Pool keeps increasing the difficulty every set interval, causing all shares to be discarded by a miner until a valid block share is found.  Now that miner gets credit for 1 share, even though they should have sent 20,000 shares.  Yeah, this is unrealistic, but it illustrates the point that it's possible to exploit the protocol to the detriment of the miner.

I will be happy if I'm wrong and if someone can point out where I'm mistaken.  This is really my only major problem with Stratum at the moment, everything else is fairly minor in comparison.  I apologize if my tone appears aggressive towards you, Slush.  It was not intended to be, beyond my minor irritation with the way Stratum was rolled out... and that irritation is minor and not worth complaining about.  My "bashing" of Stratum is because the problem has been beat to death and you basically ignored anyone who disagreed with the work/difficulty being uncoupled.  Regardless, moving on to the solution you mentioned:

How does it address the following scenario:

Miner is given work at difficulty 2.  Miner begins processing work at difficulty 2 and finds a valid share... while processing the work Stratum sends mining.set_difficulty 3.  

What happens to that share found at difficulty 2, which was valid at the time it was issued?  The miner did the work based on the rules it was given, but the rules got changed after it already agreed to the work.



If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
November 26, 2012, 12:14:01 AM
 #8157

Miner is given work at difficulty 2.  Miner begins processing work at difficulty 2 and finds a valid share... while processing the work Stratum sends mining.set_difficulty 3.  

What happens to that share found at difficulty 2, which was valid at the time it was issued?  The miner did the work based on the rules it was given, but the rules got changed after it already agreed to the work.

What exactly is unclear on the sentence (from stratum docs):

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

If pool sends new difficulty, but then receive the solution from previous job, user must be credited for previous difficulty.

Edit: Although I don't fully understand these scenarios described by you, I think understanding of ^^ will give you the answer to some points. Also, if I understand some of your questions, Stratum proposal doesn't target scenarios with poolop cheating with counting shares.

Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
November 26, 2012, 12:18:16 AM
 #8158

Ok, if that's the case then that solves the issue.  Conman, does that resolve the rapid difficulty change issue with EMC then if that particular method is implemented to handle difficulty from the Stratum protocol side of things?

Quote
Edit: Although I don't fully understand these scenarios described by you, I think understanding of ^^ will give you the answer to some points. Also, if I understand some of your questions, Stratum proposal doesn't target scenarios with poolop cheating with counting shares.

It needs to... not to keep pool ops honest so much as to allow miners to verify that what they THINK is happening is really happening.  It's about empowering the miners, not policing the pool ops.

Quote
No, this still does not address D.

Is this relevant though?  I'm not sure I'm comfortable with this, as it flips the exploit over to the miners side (although it has much less of an impact).  I don't want to issue difficulty 32 shares, have them reduce their hashrate while they save up a bunch of shares until their difficulty reduces then submit them all as valid.  Again, we go back to difficulty being tied to the work sent out.  Allowing it to "leak" out to other work/difficulty relationships is not the correct way to go about it IMHO.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
-ck (OP)
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
November 26, 2012, 12:29:41 AM
 #8159

Ok, if that's the case then that solves the issue.  Conman, does that resolve the rapid difficulty change issue with EMC then if that particular method is implemented to handle difficulty from the Stratum protocol side of things?
For scenario A, if the old diff applies to work given out prior to the diff change it's almost the same as tying it with the work, and is how cgminer currently manages difficulty already for rising diff. Scenario C will sort itself out as well. So this works for me.

What about if diff drops as in scenario B? Do you credit work to the new difficulty or does the old difficulty still apply?

There is still the potential for lost opportunity in scenario D, and this would be no different if difficulty is tied with work or not, with gbt or stratum, as every window lost is the time of a one way trip from the server to the miner. While small, if done often it would start to add up. Thus it would still be prudent to minimise the diff changes to avoid this.

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

Activity: 1260
Merit: 1000



View Profile WWW
November 26, 2012, 12:50:07 AM
 #8160

For scenario B, the old difficulty would still apply to work for that discrete issue of work.  I definitely do not want to create a potential scenario where it could be exploited by forcing a difficulty change.  One way can be exploited by pool ops (not accepting work once difficulty changed), one way can be exploited by miners (accepting work for higher difficulty work as valid once work drops) and one way (tying difficulty to work) can not be exploited by either, and this seems the most sane way to handle it. 


If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
Pages: « 1 ... 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 [408] 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 ... 843 »
  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!