arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.06574cs.DC
收藏

剖析 EIP-2930 可选访问列表

Dissecting the EIP-2930 Optional Access Lists

Lioba Heimbach, Quentin Kniep, Yann Vonlanthen, Roger Wattenhofer, Patrick Züst

AI总结:

本文分析以太坊主网一个月交易中 EIP-2930 可选访问列表的采用率、质量与 gas 节省,揭示状态未知及主流客户端实现缺陷是其不准确和额外成本的主要来源。

摘要:

以太坊于 2020 年引入交易访问列表(Transaction Access Lists,TALs),以优化交易执行期间的 gas 成本。在本工作中,我们对以太坊中的 TALs 进行全面分析,重点关注采用情况、质量和 gas 节省。通过分析完整一个月的主网数据(包含 31,954,474 笔交易),我们发现只有 1.46% 的交易包含 TAL,尽管 42.6% 的交易本可从中受益。平均而言,访问列表可节省约 0.29% 的 gas 成本,相当于每年约 3,450 ETH(约合 500 万美元)。然而,交易包含的 TALs 中有 19.6% 存在缺陷,导致近 11.8% 的交易使用 TAL 后比不使用时支付更多 gas。我们发现这些不准确之处源于计算 TAL 时状态未知,以及所有主要以太坊客户端提供的 TAL 计算均不完美。因此,我们比较了在区块开始时计算 TAL 与基于正确状态计算 TAL 时的 gas 节省情况,发现未知状态是 TAL 不准确的主要来源。最后,我们为 Erigon 客户端实现了理想的 TAL 计算,以凸显这些有缺陷实现的代价。

英文摘要:

Ethereum introduced Transaction Access Lists (TALs) in 2020 to optimize gas costs during transaction execution. In this work, we present a comprehensive analysis of TALs in Ethereum, focusing on adoption, quality, and gas savings. Analyzing a full month of mainnet data with 31,954,474 transactions, we found that only 1.46% of transactions included a TAL, even though 42.6% of transactions would have benefited from it. On average, access lists can save around 0.29% of gas costs, equivalent to approximately 3,450 ETH (roughly US$ 5 Mio) per year. However, 19.6% of TALs included by transactions contained imperfections, causing almost 11.8% of transactions to pay more gas with TAL than without. We find that these inaccuracies are caused by the unknown state at the time of the TAL computation as well as imperfect TAL computations provided by all major Ethereum clients. We thus compare the gas savings when calculating the TAL at the beginning of the block vs. calculating it on the correct state, to find that the unknown state is a major source of TAL inaccuracies. Finally, we implement an ideal TAL computation for the Erigon client to highlight the cost of these flawed implementations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑