比特币(BSV)知识库:比特币协议-区块时间戳(Block timestamp)

特别提示:

比特币(BSV)知识库-Bitcoin wiki-目前为全英文内容,暂无中文译文,并且仍在持续编写和补充中。欢迎中国的开发者在文章底部评论,进行阐述和探讨。

比特币(BSV)知识库:比特币协议-区块时间戳(Block timestamp)_第1张图片

Block timestamp

Each block contains a Unix time timestamp. In addition to serving as a source of variation for the block hash, these timestamps serve as proof of existence for the information stored in the transactions that the block validates.

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. As a result, block timestamps are not exactly accurate, and they do not need to be. Block times are accurate only to within an hour or two.

Whenever a node connects to another node, it gets a UTC timestamp from it, and stores its offset from node-local UTC. The network-adjusted time is then the node-local UTC plus the median offset from all connected nodes. Network time is never adjusted more than 70 minutes from local system time, however.

Bitcoin uses an unsigned integer for the timestamp, so the year 2038 problem is delayed for another 68 years.

Attribution

This content is based on content sourced from https://en.bitcoin.it/wiki/Block_timestamp under Creative Commons Attribution 3.0. Although it may have been extensively revised and updated we acknowledge the original authors.

声明:

比特币(BSV)知识库项目由比特币协会(Bitcoin Association)发起并支持,更多信息请参见知识库官网:https://wiki.bitcoinsv.io/

你可能感兴趣的:(Bitcoin,wiki,比特币,区块链,BSV)