Bitcoin Forum
May 04, 2024, 10:53:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do bitcoin clients agree on what time it is?  (Read 996 times)
nimda (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


0xFB0D8D1534241423


View Profile
September 16, 2012, 04:08:52 AM
 #1

In order for the difficulty to be changed every 2016 blocks, the clients need to know how long it has been since the last retarget. Clocks aren't perfect, though, and there could be malicious clients. How do nodes agree?
1714820001
Hero Member
*
Offline Offline

Posts: 1714820001

View Profile Personal Message (Offline)

Ignore
1714820001
Reply with quote  #2

1714820001
Report to moderator
1714820001
Hero Member
*
Offline Offline

Posts: 1714820001

View Profile Personal Message (Offline)

Ignore
1714820001
Reply with quote  #2

1714820001
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
September 16, 2012, 04:15:38 AM
 #2

https://en.bitcoin.it/wiki/Block_timestamp

Timestamps are checked against network time and your local time.  Nodes refuse to relay if the block's time is too far off.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
finkleshnorts
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
September 16, 2012, 05:22:31 AM
 #3

I read a paper once, posted here on these forums, about this being a potential attack vector.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
September 16, 2012, 06:46:06 AM
 #4

I read a paper once, posted here on these forums, about this being a potential attack vector.

Probably here:

 - http://bitcointalk.org/index.php?topic=43692.msg521772#msg521772

Unichange.me

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


nimda (OP)
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


0xFB0D8D1534241423


View Profile
September 16, 2012, 03:13:01 PM
 #5

Does this mean that a large miner or a pool op could timestamp blocks either at the minimum or maximum variance allowed to manipulate the difficulty?
Revalin
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g


View Profile
September 16, 2012, 03:38:41 PM
 #6

Yes, a corrupt operator can slightly manipulate the timestamps for a marginal benefit.

Doing a it would in a big way would require a significant 51% attack where considerable amounts of history were rewritten in order to achieve a moderate benefit. It is theoretically a problem, but the risk/cost/reward is poor.  As such I don't think anyone has ever bothered.

      War is God's way of teaching Americans geography.  --Ambrose Bierce
Bitcoin is the Devil's way of teaching geeks economics.  --Revalin 165YUuQUWhBz3d27iXKxRiazQnjEtJNG9g
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!