Bitcoin Forum
September 27, 2018, 10:55:17 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Some blocks have earlier block times than their predecessing block, how/why?  (Read 814 times)
Kazimir
Legendary
*
Offline Offline

Activity: 1176
Merit: 1000



View Profile
August 09, 2015, 07:34:27 AM
 #1

I noticed that quite frequently a block is mined at an earlier time than its predecessor. At least according to its timestamp, which is generated by the server that mined the block, and obviously they can have some difference. But the differences are quite large sometimes (over 10 minutes).

For example:

Block 368511 was mined at 2015-08-05 15:49:19, and the next block was mined at 2015-08-05 15:37:55 (almost 12 minutes earlier).

Or block 367387 was mined at July 28th 2015, 22:36:45, and the next block was mined July 28th 2015, 22:25:56 (again, almost 12 minutes earlier).

I'm using different block explorers to indicate it's not a bug in a particular block explorer, these times are the same everywhere.

What's up with that? Is there a trustworthy method of restoring a block's actual, correct time of mining?

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
1538088918
Hero Member
*
Offline Offline

Posts: 1538088918

View Profile Personal Message (Offline)

Ignore
1538088918
Reply with quote  #2

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

Posts: 1538088918

View Profile Personal Message (Offline)

Ignore
1538088918
Reply with quote  #2

1538088918
Report to moderator
1538088918
Hero Member
*
Offline Offline

Posts: 1538088918

View Profile Personal Message (Offline)

Ignore
1538088918
Reply with quote  #2

1538088918
Report to moderator
heretolearn
Full Member
***
Offline Offline

Activity: 128
Merit: 100



View Profile
August 09, 2015, 07:56:55 AM
 #2

There is no central authority to keep track of time. The block is mined by computers running on different timezones worldwide. For a block to be included it must pass some basic sanity tests - the block time is not earlier than the median of the last 11 blocks. So as long as thats fine, its included.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1470
Merit: 1271


No I dont escrow anymore.


View Profile WWW
August 09, 2015, 08:42:50 AM
 #3

-snip-
What's up with that? Is there a trustworthy method of restoring a block's actual, correct time of mining?

No, because of what heretolearn said and the fact that the timestamp influences the blocks hash miners tend to manipulate the timestamp for mining purposes. The exact time for a block is not that crucial to the network.
Kazimir
Legendary
*
Offline Offline

Activity: 1176
Merit: 1000



View Profile
August 09, 2015, 09:20:36 AM
 #4

Then how do we agree on the next difficulty / retarget ?

Do we take the block time for that, even though we know they're not accurate? (I can see how that works, just wondering)

*edit* now that I think of it, I can see how that works with Bitcoin, taking the average over the past 2016 blocks, but how would that work with altcoins that retarget much faster, or even after every single block? (albeit a gradual retarget, e.g. gravity well formulas)

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
gmaxwell
Moderator
Legendary
*
qt
Offline Offline

Activity: 2520
Merit: 1514



View Profile
August 11, 2015, 11:20:56 PM
 #5

Who says what the altcoins do actually works-- many have just had spontanious failures due to ill advised changes like twiddling how retargeting works... and there is no reason to expect that most have ever been analyized from an adversarial perspective (much less  actually attacked). ... but thats a question for another subforum.

As you note, it works fine in Bitcoin as is... and, in fact, requiring the time to be monotonic would open up new attacks.  If you want a monotonic time out of bitcoin you can extract one by simply running a rolling maximum over the timestamps, forcing miners to conceal more information won't help anything.

Bitcoin will not be compromised
monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


View Profile
August 12, 2015, 09:14:20 AM
 #6

Having timestamps in blocks is a regrettable consequence of the requirement to adjust for difficulty.
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!