Bitcoin Forum

Bitcoin => Mining => Topic started by: pieppiep on March 26, 2012, 10:30:36 AM



Title: Possible attack to disrupt difficulty?
Post by: pieppiep on March 26, 2012, 10:30:36 AM
Blocks can have an older timestamp than its previous block.
One example is this :
http://blockchain.info/block-height/171759 Timestamp 2012-03-18 19:31:32
http://blockchain.info/block-height/171760 Timestamp 2012-03-18 19:31:30

How much older can timestamp be?

If someone generates the last block of a difficulty with a timestamp of the first block of that difficulty plus 10 minutes the difficulty would get 2016 times as high.
If he adds less it would become even harder.

For this attack you don't need anything like 51%, just x% power of the network gives x% chance to do it, so in theory everybody can success with enough luck.


Title: Re: Possible attack to disrupt difficulty?
Post by: Meni Rosenfeld on March 26, 2012, 11:31:05 AM
It needs to be greater than the median timestamp of previous 11 blocks (https://en.bitcoin.it/wiki/Block_timestamp).

So you can't make it as early as you want, and making the timestamp early in one adjustment will mean that the span will be longer for the next adjustment.

There is a difficulty disruption attack, sometimes called "time warp", allowed by the off-by-one bug, which requires having >50%. It was originally described by ArtForz.