Bitcoin Forum
August 31, 2024, 01:05:56 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how network time data is it enforced in the blockchain?  (Read 491 times)
rosemaryy (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 15, 2014, 04:11:43 PM
 #1

I've seen how nodes gather network time data, but how is it enforced in the blockchain?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3472
Merit: 4790



View Profile
January 15, 2014, 04:32:02 PM
 #2

I've seen how nodes gather network time data, but how is it enforced in the blockchain?

Each node checks the timestamp of the block before forwarding it to any peers:

https://en.bitcoin.it/wiki/Block_timestamp
Quote
A timestamp is accepted as valid if it is greater than the median timestamp of previous 11 blocks, and less than the network-adjusted time + 2 hours. "Network-adjusted time" is the median of the timestamps returned by all nodes connected to you

If the timestamp is found to be invalid, then the block is invalid and is not relayed to any peers.
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!