Bitcoin Forum
November 18, 2017, 04:18:38 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Understanding difficulty  (Read 1553 times)
Altoidnerd
Sr. Member
****
Offline Offline

Activity: 406


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
1511021918
Hero Member
*
Offline Offline

Posts: 1511021918

View Profile Personal Message (Offline)

Ignore
1511021918
Reply with quote  #2

1511021918
Report to moderator
1511021918
Hero Member
*
Offline Offline

Posts: 1511021918

View Profile Personal Message (Offline)

Ignore
1511021918
Reply with quote  #2

1511021918
Report to moderator
1511021918
Hero Member
*
Offline Offline

Posts: 1511021918

View Profile Personal Message (Offline)

Ignore
1511021918
Reply with quote  #2

1511021918
Report to moderator
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.
konradp
Full Member
***
Offline Offline

Activity: 127



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

Thank you all.
-ck
Staff
Legendary
*
Offline Offline

Activity: 2338


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.

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

Activity: 35


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.

Hear no evil, see no evil.
-ck
Staff
Legendary
*
Offline Offline

Activity: 2338


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.

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

Activity: 1484



View Profile
April 01, 2014, 10:43:22 PM
 #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
Staff
Legendary
*
Offline Offline

Activity: 2338


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.

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

Activity: 1218


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
Staff
Legendary
*
Offline Offline

Activity: 2338


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.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Pages: « 1 [2]  All
  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!