比特币创世论文《Bitcoin: A Peer-to-Peer Electronic Cash System》研读之六:网络

原文翻译

 

5. Network

The steps to run the network are as follows:

1)  New transactions are broadcast to all nodes.

2)  Each node collects new transactions into a block.

3)  Each node works on finding a difficult proof-of-work for its block.

4)  When a node finds a proof-of-work, it broadcasts the block to all nodes.

5)  Nodes accept the block only if all transactions in it are valid and not already spent.

6)  Nodes express their acceptance of the block by working on creating the next block in the

chain, using the hash of the accepted block as the previous hash.

Nodes always consider the longest chain to be the correct one and will keep working on extending it. If two nodes broadcast different versions of the next block simultaneously, some nodes may receive one or the other first. In that case, they work on the first one they received, but save the other branch in case it becomes longer. The tie will be broken when the next proof-of-work is found and one branch becomes longer; the nodes that were working on the other branch will then switch to the longer one.

New transaction broadcasts do not necessarily need to reach all nodes. As long as they reach many nodes, they will get into a block before long. Block broadcasts are also tolerant of dropped messages. If a node does not receive a block, it will request it when it receives the next block and realizes it missed one.

4.网络

运行网络的步骤如下:

1)  新的交易被广播到所有节点。

2)  每一个节点都把新的交易收集到区块链中。

3)  每dang个节点都试图找到适用于其区块的工作量证明。

4) 一个节点找到了适用于其区块的工作量证明,它将其广播到所有节点。

5) 节点当且仅当该被广播的区块中所有交易都合法以及没有双重支付的前提下才接受该区块。

6) 节点通过使用该被广播的区块中的哈希值开始计算下一个区块来表示其接受该被广播的区块。

节点永远将最长链视为正确的链并基于它开始工作尝试延长它。如果两个节点同时广播了不同版本的下一区块,一些节点可能会先收到一个或先收到另一个。在这种情况下,它们基于它们先收到的那个开始工作,但同时保存另一个以防万一它变成了更长的链。当下一个区块被找到其中一个分支就会变得更长,这种情形就会被打破;哪些基于另一条分支工作的节点就会切换到更长的那条链上。

新交易的广播没有必要到达所有的节点。只要到达很多节点,它们很快就会进入区块。区块的广播同样也可以容忍消息丢失,如果一个节点没有收到一个区块,当它收到下一个区块时,就会意识到它丢失了一个区块,并会去请求它。

细节解读


What is ''

什么是”“



《Bitcoin: A Peer-to-Peer Electronic Cash System》论文原文地址如下:https://bitcoin.org/bitcoin.pdf


版权所有声明

版权所有归属作者,未经允许不得转载、复制或用作它途。否则作者将具有追究法律责任的权利。

Copyright Clarify

Copyright ownership belongs to the author, shall not be reproduced, copied, or used in other ways without permission. Otherwise, the author will have the right to pursue legal responsibilities.

猜你喜欢

转载自blog.csdn.net/qq_27467365/article/details/81607087