Bitcoin Forum
May 08, 2024, 02:56:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to sync clocks to Bitcoin's timestamp?  (Read 793 times)
mczarnek (OP)
Hero Member
*****
Offline Offline

Activity: 527
Merit: 502


View Profile
October 04, 2015, 12:59:25 AM
 #1

I had an interesting thought, given that every block in Bitcoin has a timestamp attached to it, is there a way to use the timestamps plus the time that you saw an average block in order to sync your clock to the time on the network?  What if someone fakes the timestamp and fudges a little bit, can you at least stay within say 15 seconds assuming the majority is honest and it takes 10 seconds for a block to propagate to 75% of the network?

On a similar note, how do Proof of Stake blockchains agree to time?  After all many of those algorithms involve a time component based on the time since the network saw the last block.. in those cases does the network need to have it's clocks in sync in order to mine together? Or can they work together to agree on a time based on blockchain info?

BitSend ◢◤Clients | Source
www.bitsend.info
█▄
█████▄
████████▄
███████████▄
██████████████
███████████▀
████████▀
█████▀
█▀












Segwit | Core 0.14 | Masternodes
XEVAN | DK3 | Electrum soon
Bitcore - BTX/BTC -Project












BSD -USDT | Bittrex | C.Gather | S.Exchange
Cryptopia | NovaExchange | Livecoin
Litebit.eu | Faucet | Bitsend Airdrop













████
 ████
  ████
   ████
    ████
     ████
      ████
       ████
        ████
       ████
      ████
     ████
    ████
   ████
  ████
 ████
████

████
 ████
  ████
   ████
    ████
     ████
      ████
       ████
        ████
       ████
      ████
     ████
    ████
   ████
  ████
 ████
████
1715136993
Hero Member
*
Offline Offline

Posts: 1715136993

View Profile Personal Message (Offline)

Ignore
1715136993
Reply with quote  #2

1715136993
Report to moderator
1715136993
Hero Member
*
Offline Offline

Posts: 1715136993

View Profile Personal Message (Offline)

Ignore
1715136993
Reply with quote  #2

1715136993
Report to moderator
1715136993
Hero Member
*
Offline Offline

Posts: 1715136993

View Profile Personal Message (Offline)

Ignore
1715136993
Reply with quote  #2

1715136993
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715136993
Hero Member
*
Offline Offline

Posts: 1715136993

View Profile Personal Message (Offline)

Ignore
1715136993
Reply with quote  #2

1715136993
Report to moderator
1715136993
Hero Member
*
Offline Offline

Posts: 1715136993

View Profile Personal Message (Offline)

Ignore
1715136993
Reply with quote  #2

1715136993
Report to moderator
1715136993
Hero Member
*
Offline Offline

Posts: 1715136993

View Profile Personal Message (Offline)

Ignore
1715136993
Reply with quote  #2

1715136993
Report to moderator
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
October 04, 2015, 09:16:53 AM
 #2

I had an interesting thought, given that every block in Bitcoin has a timestamp attached to it, is there a way to use the timestamps plus the time that you saw an average block in order to sync your clock to the time on the network?  What if someone fakes the timestamp and fudges a little bit, can you at least stay within say 15 seconds assuming the majority is honest and it takes 10 seconds for a block to propagate to 75% of the network?
-snip-

Timestamps or modified as part of finding a valid block, they are not reliable and do not have to be incremental either. Block n can have a later timestamp than block n+1 as long as its within certain bounds.

Im not really here, its just your imagination.
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 275


View Profile
October 05, 2015, 12:19:38 AM
 #3

A blocks median-time-past IS guaranteed to increase (there is a proposal to have locktime use this instead of that included in a block header), so it may still work.

Bitwasp Developer.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
October 05, 2015, 09:51:50 AM
 #4

A blocks median-time-past IS guaranteed to increase (there is a proposal to have locktime use this instead of that included in a block header), so it may still work.

If you are fine with a clock that is correct within a 2 hour limit, sure.

Im not really here, its just your imagination.
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!