比特币(BSV)知识库:比特币原理-区块链(Blockchain)
发布日期:2021-05-13 19:32:28 浏览次数:20 分类:精选文章

本文共 2737 字,大约阅读时间需要 9 分钟。

特别提示:

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

(Redirected from )

The Bitcoin block chain is the transaction database that is built by nodes participating in the  process on the Bitcoin network. The block chain contains  validated and processed by miners on the network. With this information, one can calculate and trace the ownership record of all bitcoins managed on the ledger at any point in history.

Every  contains a reference to the block it builds upon. This has the effect of creating a chain of blocks from the  to the current block. Blocks become computationally impractical to modify they have been built upon for a period of time due to the amount of  that would need to be regenerated.

Miners extend the blockchain by building on what they consider to be the most recent valid block in the longest chain of proof of work. Miners can dispute blocks by choosing not to build upon them. A block that is not built upon is called an .

For any block on the chain, there is only one path to the genesis block. Coming from the genesis block, however, there can be forks. Forks can be created from time to time when two valid blocks are created just a few seconds apart. When this happens, nodes will attempt to build a new block whichever one of the blocks they received first. When a new block is found, the block it built upon becomes part of the longest chain, orphaning its competitor.

Forks can also occur when nodes disagree on network rules. Two notable forks have occurred on Bitcoin, the first in 2017 when Bitcoin was forked onto the BCH network when BTC nodes elected to adopt Segregated Witness into the BTC network rules, and again in November 2018 when BCH nodes elected to implement new opcodes and consensus rules that were unaligned with the original protocol.

Blocks in shorter chains (or invalid chains) are not used for anything. If a node detects the creation of a longer chain than the one it is working on, all valid transactions of the block template inside the shorter chain are re-added to the pool of queued transactions and will be included in another block. The reward for the blocks on the shorter chain will not be present in the longest chain, so they will be practically lost, which is why a network-enforced 100-block maturation time for generations exists.

Because a block can only reference one previous block, it is impossible for two forked chains to merge.

Blocks are broadcast to all nodes on the networking using the Bitcoin Network protocol.

Attribution

This content is based on content sourced from  under . Although it may have been extensively revised and updated we acknowledge the original authors.

声明:

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

 

上一篇:比特币(BSV)知识库:应用-区块浏览器(Block explorer)
下一篇:比特币(BSV)知识库:比特币协议-SHA-256

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2025年04月20日 15时44分26秒