简体   繁体   English

问:Uncle和Fork节点的以太坊内存池事务

[英]Q: Ethereum mempool transaction of Uncle and Fork nodes

In the Bitcoin network when a fork happens, the block transactions from the shortest chain are reinserted again into the mempool. 在发生分叉的比特币网络中,来自最短链的大宗交易再次重新插入到内存池中。

In Ethereum instead we have Uncle blocks and Fork blocks. 在以太坊中,我们有Uncle块和Fork块。 What happens to the Uncle block transactions, are they reinserted again into the mempool or the transactions remain confirmed and part of the blockchain? Uncle大宗交易会发生什么,它们又被重新插入了内存池,还是交易被确认并属于区块链?

Uncle Blocks are orphaned blocks, that increase the security of the ethereum blockchain. 叔叔块是孤立的块,增加了以太坊区块链的安全性。 They are used with the GHOST protocol. 它们与GHOST协议一起使用。 Whereas Bitcoin uses the longest chain rule, Ethereum chooses the "heaviest" chain. 比特币使用最长链规则,而以太坊则选择“最重”链。 The following image, taken from this paper, shows this rather well. 下面的图片,取自文件,显示了这个相当好。

在此处输入图片说明

But it's important to understand, that the transactions in these blocks are not part of the canonical truth. 但重要的是要理解,这些区块中的事务不是规范真理的一部分。 In other words, transactions in uncle blocks need to be mined again into a new block, if they aren't already part of the "right" blockchain. 换句话说,如果叔叔区块中的交易还不是“正确的”区块链的一部分,则需要再次将其挖掘到新区块中。

This also helps to decrease the centralization of the blockchain, since miners who mined an uncle block are still getting rewarded (a smaller amount, than the miner who mined the commonly accepted block though). 这也有助于减少区块链的集中化,因为开采叔叔区块的矿工仍能获得奖励(虽然数量少于开采公认区块的矿工)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM