是什么让以太坊区块链交易处理得快或慢?实证研究
What makes Ethereum blockchain transactions be processed fast or slow? An empirical study
摘要:
以太坊平台允许开发人员通过使用智能合约将称为Dapps的应用程序实现和部署到区块链上供公众使用。要在智能合约中执行代码,必须向合约接口中公开的函数之一发出付费交易。然而,只有当点对点网络中的一个矿工选择了它,将其添加到一个区块,并将该区块附加到区块链时,这样的交易才会被处理。对于Dapp开发人员来说,能够精确估计何时处理事务至关重要,因为这允许他们定义和提供特定的服务质量(QoS)级别(例如,95%的交易在1分钟内完成。然而,不同因素对这些时间的影响尚未研究。Dapp开发人员使用处理时间估计服务来实现预定义的QoS。然而,这些服务对影响处理时间的因素提供了最少的见解。考虑到以太坊区块链周围的大量数据,Dapp开发人员很难预测处理时间的变化,因此很难维持所述QoS。在我们的研究中,我们建立了随机森林模型,以了解与事务处理时间相关的因素。我们设计了几个功能来捕捉区块链内部因素,以及交易发行者的天然气定价行为。通过解释我们的模型,我们得出结论,周围的天然气定价行为的特点是非常密切相关的事务处理时间。根据我们的实证结果,我们为Dapp开发人员提供了具体的见解,可以帮助他们提供和保持高水平的QoS。
英文摘要:
The Ethereum platform allows developers to implement and deploy applications called Dapps onto the blockchain for public use through the use of smart contracts. To execute code within a smart contract, a paid transaction must be issued towards one of the functions that are exposed in the interface of a contract. However, such a transaction is only processed once one of the miners in the peer-to-peer network selects it, adds it to a block, and appends that block to the blockchain This creates a delay between transaction submission and code execution. It is crucial for Dapp developers to be able to precisely estimate when transactions will be processed, since this allows them to define and provide a certain Quality of Service (QoS) level (e.g., 95% of the transactions processed within 1 minute). However, the impact that different factors have on these times have not yet been studied. Processing time estimation services are used by Dapp developers to achieve predefined QoS. Yet, these services offer minimal insights into what factors impact processing times. Considering the vast amount of data that surrounds the Ethereum blockchain, changes in processing times are hard for Dapp developers to predict, making it difficult to maintain said QoS. In our study, we build random forest models to understand the factors that are associated with transaction processing times. We engineer several features that capture blockchain internal factors, as well as gas pricing behaviors of transaction issuers. By interpreting our models, we conclude that features surrounding gas pricing behaviors are very strongly associated with transaction processing times. Based on our empirical results, we provide Dapp developers with concrete insights that can help them provide and maintain high levels of QoS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。