回复:重发:比特币成熟
原始发布页
打开来源页面查看 1 个交叉存档
当你尝试生成一个币(区块)时,以及它成功生成的那一刻,保持网络连接都很重要。
在生成过程中(状态栏显示“Generating”,而你正在使用 CPU 寻找工作量证明时),你必须不断与网络保持联系,以接收最新区块。如果你的区块没有连接到最新区块,它可能不会被接受。
当你成功生成一个区块时,它会立即广播到网络。其他节点必须接收到它并连接到它,它才会被接受为新的最新区块。
可以把它看作一项共同构建链条的协作。当你添加一个链环时,必须先找到链条当前的末端。如果你找到了最后一个链环,然后离开一个小时去锻造自己的链环,回来后再把它接到一小时前还是末端的那个链环上,其他人可能已经添加了好几个链环,他们不会愿意采用你这个如今从链条中段分叉出去的链环。
区块创建后,设置 120 个区块的成熟期,是为了在它可以被花费之前绝对确保该区块属于主链。在这段时间里,你的节点不会对这个区块做任何事情,只是等待其他区块接在它后面。这期间你不必保持在线。
英文原文
展开英文原文
It's important to have network connectivity while you're trying to generate a coin (block) and at the moment it is successfully generated.
During generation (when the status bar says "Generating" and you're using CPU to find a proof-of-work), you must constantly keep in contact with the network to receive the latest block. If your block does not link to the latest block, it may not be accepted.
When you successfully generate a block, it is immediately broadcast to the network. Other nodes must receive it and link to it for it to be accepted as the new latest block.
Think of it as a cooperative effort to make a chain. When you add a link, you must first find the current end of the chain. If you were to locate the last link, then go off for an hour and forge your link, come back and link it to the link that was the end an hour ago, others may have added several links since then and they're not going to want to use your link that now branches off the middle.
After a block is created, the maturation time of 120 blocks is to make absolutely sure the block is part of the main chain before it can be spent. Your node isn't doing anything with the block during that time, just waiting for other blocks to be added after yours. You don't have to be online during that time.