Bitcoin Forum
May 04, 2024, 10:12:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Evolution of difficulty on testnet3  (Read 620 times)
mriou (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
February 01, 2014, 09:49:18 PM
 #1

Hi,

I'm trying to implement the difficulty calculation algo and test it on testnet3. But I can't explain how it seems to go down even though ranges of 2016 blocks (a block every 10 min for 2 weeks) are added in much less than 2 weeks. For example between block 6048 and 8064:

http://blockexplorer.com/testnet/block/000000000be66197ad285aedd52e56036f28d595fe281858bc5d562173d4d6de
http://blockexplorer.com/testnet/block/00000000118da1e2165a19307b86f87eba814845e8a0f99734dce279ca3fb029

There's only a little over 5 min between those 2016 blocks so the difficulty should have gone up by the maximum factor of 4 from 16 to 64. However it decreased instead from 16 back to 4.

Could someone help me understand this? I've looked everywhere including the rules for testnet3 and the difficulty calculations as well as the source code but nothing seems to explain this behavior.

Thanks a ton!
1714860756
Hero Member
*
Offline Offline

Posts: 1714860756

View Profile Personal Message (Offline)

Ignore
1714860756
Reply with quote  #2

1714860756
Report to moderator
1714860756
Hero Member
*
Offline Offline

Posts: 1714860756

View Profile Personal Message (Offline)

Ignore
1714860756
Reply with quote  #2

1714860756
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714860756
Hero Member
*
Offline Offline

Posts: 1714860756

View Profile Personal Message (Offline)

Ignore
1714860756
Reply with quote  #2

1714860756
Report to moderator
johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 238


View Profile
February 03, 2014, 07:23:36 PM
 #2

I guess this is because of the fake time stamp in block 8063, which is two months in the future.  It seems that someone wanted to test exactly this behaviour.

Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
February 03, 2014, 09:54:02 PM
 #3

You're welcome.
Pages: [1]
  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!