Bitcoin Forum
April 26, 2024, 03:06:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Understanding difficulty  (Read 1855 times)
Altoidnerd
Sr. Member
****
Offline Offline

Activity: 406
Merit: 251


http://altoidnerd.com


View Profile WWW
March 28, 2014, 05:16:08 PM
 #21

4/1 means it found a difficulty 4 share, but it only need a difficulty 1 share.  It counts as a difficulty 1 share still when you submit it.

Does the mining software determine the sharediff of an Accepted share, or does the pool respond?

How is the fraction x/y arrived at for a given submission?  Is it a measure of the leading zeros?

Do you even mine?
http://altoidnerd.com 
12gKRdrz7yy7erg5apUvSRGemypTUvBRuJ
1714100773
Hero Member
*
Offline Offline

Posts: 1714100773

View Profile Personal Message (Offline)

Ignore
1714100773
Reply with quote  #2

1714100773
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714100773
Hero Member
*
Offline Offline

Posts: 1714100773

View Profile Personal Message (Offline)

Ignore
1714100773
Reply with quote  #2

1714100773
Report to moderator
1714100773
Hero Member
*
Offline Offline

Posts: 1714100773

View Profile Personal Message (Offline)

Ignore
1714100773
Reply with quote  #2

1714100773
Report to moderator
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
April 01, 2014, 06:16:12 AM
 #22

Thank you all.
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
April 01, 2014, 06:21:17 AM
 #23

Share diff is chosen by the pool to find an optimal spread between bandwidth to the pool and variance to the miner. The choice of value chosen by the pool is arbitrary but most target diff to work out to somewhere around 20 shares submitted by the miner per minute. Difficulty of the share submitted is paid only based on the share difficulty asked for by the pool, though it can be much much higher (and ideally higher than the network difficulty in order to solve a block for the pool). Difficulty is internally determined in cgminer by checking the ratio of the share hash to diff1 where diff 1 is 26959535291011309493156476344723991336010898738574164086137773096960. Imagine every share's hash is just one massive number.

The 65536 constant mentioned earlier has nothing to do with bitcoin. Ignore it.

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

Activity: 35
Merit: 0


View Profile
April 01, 2014, 03:02:38 PM
 #24

If difficulty grows by 20% do my earnings tank by 20%? Any reputable site that predicts difficulty? There are a few but they estimate different values.
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
April 01, 2014, 10:04:04 PM
 #25

If difficulty grows by 20% do my earnings tank by 20%? Any reputable site that predicts difficulty? There are a few but they estimate different values.
Yes and no respectively.

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

Activity: 1484
Merit: 1005



View Profile
April 01, 2014, 10:43:22 PM
Last edit: April 01, 2014, 11:01:59 PM by tacotime
 #26

http://bitcoin.stackexchange.com/questions/2924/how-to-calculate-new-bits-value

is the explanation I like to give.

Bitcoin has difficulty 1 set as eight leading zeroes for a share (0x00000000FFFF0000000000000000000000000000000000000000000000000000 in expanded form).  Then you get the numerical difficulty we're familiar with if you divide this by the current target (nBits) in expanded form.

Difficulty and nBits (target) are interconvertible; note that pools often use 256-bit expanded form: 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF being diff 1.

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
April 02, 2014, 12:23:50 AM
 #27

Difficulty and nBits (target) are interconvertible; note that pools often use 256-bit expanded form: 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF being diff 1.
This was only true of the getwork mining era. All stratum pools (should) use true diff 1 as their base now.

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

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
April 02, 2014, 05:39:16 AM
 #28

65536 is the average number of hashes to be computed in order to find a 1 share at mining difficulty 1 for a bitcoin based coin.

Not sure where you got 65536 from but it isn't correct.  It takes 2^32 hashes on average to find one which meets the target for difficulty 1. 
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
April 02, 2014, 10:26:30 AM
 #29

65536 is the average number of hashes to be computed in order to find a 1 share at mining difficulty 1 for a bitcoin based coin.

Not sure where you got 65536 from but it isn't correct.  It takes 2^32 hashes on average to find one which meets the target for difficulty 1. 
Look at his name, that will give you the clue where the 65536 comes from. It's an scrypt mining quirk.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: « 1 [2]  All
  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!