【长推】深入理解区块链 mempool:从以太坊到 Solana 的不同实现
Chainfeeds 导读:
加密研究员 fangjun 撰文探讨了区块链中的 mempool 概念及其重要性,特别是针对以太坊的 mempool 机制,以及在其他区块链(如 L2 和 Solana)中的相关实现或替代方案。
文章来源:
https://x.com/fjun99/status/1856263149843816470
文章作者:
fangjun
观点:
fangjun:为什么需要 mempool 就是「待确认交易」的「等待室」? 当我们向区块链提交一个交易时,它经过这样的过程: - 我们所用的那个节点接到交易 - 节点验证交易的正确性 - 交易被放入 mempool,等待被打包区块 - 正式被打包如区块,交易确认 - 经过一定时间,交易进入最终确认状态(finality)。 以太坊 的 mempool 可用下图来表示,这是一个有人改造的最早源自 Chainlink 的图。 简单来说,矿工(PoW 时期)、验证者(PoS 时期)不是按时间顺序,而是按我们设置的 Gas fee 来排序。 这在 EIP 1559 之后,又更进一步是所谓的 priority fee(消费部分)来决定的。 现在的 Chainlink 页面,则画了一个更为复杂的图示: 与过去不同,现在交易进入 mempool 之后,我认为,通常还会经过三个手: searcher, builder, proposer。这说法与图中并不完全一致。 那么 L2 有没有 mempool 呢? 以 OP 为例,它是有的,但这个 mempool 是 sequencer 私有的。 Solana 有没有 mempool 呢?没有,因为它的机制是这样的。mempool 的确是个不那重要的幕后概念。 但对开发者很重要,我能搜到的资料的确都是开发者资料。 此外,Searcher 是不是 MEV 夹子机器人? 另外,不是还没有实现 PBS 吗?那就要看看现在的以太坊架构了,虽然没有 PBS,但 flashbots 的 MEV-boost 市占率太高,基本上可以算实现了。 从这个图里就可以细部地看到 searcher 的角色。
内容来源免责声明:文章中的所有内容仅代表作者的观点,与本平台无关。用户不应以本文作为投资决策的参考。
你也可能喜欢
【首发上币】TapSwap(TAPS)将上线 Bitget,参与瓜分 9,333,333 TAPS!
周一闪购:使用信用卡/借记卡零手续费买币
随着投资者比较付款巨头XRP,以太坊的延误超过了1200万美元的预售
![](https://img.bgstatic.com/multiLang/image/social/17bfca598db880024e02b1af3c0d5d7d1739755804110.jpg)
加密货币价格
更多![Bitcoin](https://img.bgstatic.com/multiLang/coinPriceLogo/bitcoin.png)
![Ethereum](https://img.bgstatic.com/multiLang/coinPriceLogo/ethereum.png)
![XRP](https://img.bgstatic.com/multiLang/coinPriceLogo/ripple.png)
![Tether USDt](https://img.bgstatic.com/multiLang/coinPriceLogo/0208496be4e524857e33ae425e12d4751710262904978.png)
![BNB](https://img.bgstatic.com/multiLang/coinPriceLogo/binance.png)
![Solana](https://img.bgstatic.com/multiLang/coinPriceLogo/solana.png)
![USDC](https://img.bgstatic.com/multiLang/coinPriceLogo/usdc.png)
![Dogecoin](https://img.bgstatic.com/multiLang/coinPriceLogo/dogecoin.png)
![Cardano](https://img.bgstatic.com/multiLang/coinPriceLogo/cardano.png)
![TRON](https://img.bgstatic.com/multiLang/coinPriceLogo/tron.png)