Ethanos:以太坊的轻量级引导
Ethanos: Lightweight Bootstrapping for Ethereum
摘要:
随着以太坊区块链的流行,用户和交易数量激增,导致其数据量爆炸性增长。因此,使用PC或智能手机的普通客户端无法轻松地引导为完整节点,而是依赖于其他完整节点(如矿工)来运行或验证交易。这可能会影响以太坊的安全性,因此已经提出了快速同步等轻型引导技术,以仅下载完整数据的一部分,但空间开销仍然太高。最大的空间开销之一是不容易减少的,这是由于将所有帐户的状态保存在块的状态trie中引起的。幸运的是,我们发现超过90%的账户是不活跃的,旧交易很难被操纵。基于这些观察结果,本文提出了一种新的优化技术,称为ethanos,可以通过定期扫描不活跃的帐户和不下载旧的交易来降低引导成本。如果一个不活跃的帐户变成活跃的,ethanos通过运行恢复事务来恢复其状态。此外,ethanos还鼓励存档节点维护旧的交易,以便进行可能的重新验证。我们通过检测go-ethereum(geth)客户端来实现ethanos,并对以太坊中第700万和第800万个区块之间的1400万个账户的1.13亿笔交易进行了评估。我们的实验结果表明,ethanos可以将帐户状态的大小减少一半,如果结合删除旧事务,可以将用于引导的存储大小减少到1GB左右。这对于普通客户端在其个人设备上引导是足够合理的。
英文摘要:
As ethereum blockchain has become popular, the number of users and transactions has skyrocketed, causing an explosive increase of its data size. As a result, ordinary clients using PCs or smartphones cannot easily bootstrap as a full node, but rely on other full nodes such as the miners to run or verify transactions. This may affect the security of ethereum, so light bootstrapping techniques such as fast sync has been proposed to download only parts of full data, yet the space overhead is still too high. One of the biggest space overhead that cannot easily be reduced is caused by saving the state of all accounts in the block's state trie. Fortunately, we found that more than 90% of accounts are inactive and old transactions are hard to be manipulated. Based on these observations, this paper propose a novel optimization technique called ethanos that can reduce bootstrapping cost by sweeping inactive accounts periodically and by not downloading old transactions. If an inactive account becomes active, ethanos restore its state by running a restoration transaction. Also, ethanos gives incentives for archive nodes to maintain the old transactions for possible re-verification. We implemented ethanos by instrumenting the go-ethereum (geth) client and evaluated with the real 113 million transactions from 14 million accounts between 7M-th and 8M-th blocks in ethereum. Our experimental result shows that ethanos can reduce the size of the account state by half, which, if combined with removing old transactions, may reduce the storage size for bootstrapping to around 1GB. This would be reasonable enough for ordinary clients to bootstrap on their personal devices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。