Author

Topic: Calculating Difficulty of Entire Chain (Read 1205 times)

administrator
Activity: 5222
Merit: 13032
January 11, 2011, 09:20:48 PM
#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.
legendary
Activity: 1372
Merit: 1008
1davout
January 11, 2011, 11:14:01 AM
#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
hero member
Activity: 770
Merit: 566
fractally
January 11, 2011, 11:12:27 AM
#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?

Jump to: