Bitcoin Forum
December 06, 2016, 12:20:32 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Calculating Difficulty of Entire Chain  (Read 921 times)
bytemaster
Hero Member
*****
Offline Offline

Activity: 728

BitShares


View Profile WWW
January 11, 2011, 04:12:27 PM
 #1

Given two chains of similar length, one is clearly more difficult than the other.  For example suppose the test network was 'compatible' with the official network and as a result of a network merge a client had to pick which of the two chains to use.  The only difference is the amount of CPU time that went into generating each, but they are of the same length.

I presume you could simply sum the difficulty of each block and the chain with the highest sum is chosen over the 'longest' chain?


https://steemit.com  Blogging is the new Mining
1481026832
Hero Member
*
Offline Offline

Posts: 1481026832

View Profile Personal Message (Offline)

Ignore
1481026832
Reply with quote  #2

1481026832
Report to moderator
1481026832
Hero Member
*
Offline Offline

Posts: 1481026832

View Profile Personal Message (Offline)

Ignore
1481026832
Reply with quote  #2

1481026832
Report to moderator
1481026832
Hero Member
*
Offline Offline

Posts: 1481026832

View Profile Personal Message (Offline)

Ignore
1481026832
Reply with quote  #2

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

Posts: 1481026832

View Profile Personal Message (Offline)

Ignore
1481026832
Reply with quote  #2

1481026832
Report to moderator
1481026832
Hero Member
*
Offline Offline

Posts: 1481026832

View Profile Personal Message (Offline)

Ignore
1481026832
Reply with quote  #2

1481026832
Report to moderator
1481026832
Hero Member
*
Offline Offline

Posts: 1481026832

View Profile Personal Message (Offline)

Ignore
1481026832
Reply with quote  #2

1481026832
Report to moderator
davout
Legendary
*
Offline Offline

Activity: 1358


1davout


View Profile WWW
January 11, 2011, 04:14:01 PM
 #2

I presume you could simply sum the difficulty of each block and the chain with the highest sum is chosen over the 'longest' chain?
Yup

theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2492


View Profile
January 12, 2011, 02:20:48 AM
 #3

I presume you could simply sum the difficulty of each block and the chain with the highest sum is chosen over the 'longest' chain?

Bitcoin does something like this. Look for "work=" in debug.log.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  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!