Performance Benchmarking of Smart Contracts to Assess Miner Incentives in Ethereum

A. Aldweesh, Maher Alharby, E. Solaiman, A. Moorsel
{"title":"Performance Benchmarking of Smart Contracts to Assess Miner Incentives in Ethereum","authors":"A. Aldweesh, Maher Alharby, E. Solaiman, A. Moorsel","doi":"10.1109/EDCC.2018.00034","DOIUrl":null,"url":null,"abstract":"A defining feature of the Ethereum blockchain is its ability to execute smart contracts, providing a Turing complete programming model for distributed applications in non-trusted environments. The successful operation of the Ethereum blockchain depends on whether the miners' incentives (in the form of fees) to execute contracts is proportional to the miners' cost (in terms of energy usage, and thus CPU usage). In general, if the received fee is not proportional to the computational cost, miners would prefer some tasks over others, thus potentially adversely affecting the continuing dependable operation of the blockchain. In this paper we design a benchmark to compare smart contract execution time with the award a miner would receive, to determine if incentives align. We present the design of the benchmarking approach and provide initial results for the Python Ethereum client running on a Mac. The results indicate that for functions in Ethereum's most popular contracts the difference of reward per CPU second can be up to a factor of almost 50. In addition, contract creation, which is done once for each new contract, can be up to 6 times more lucrative than the regular execution of contract functions. Potentially, these discrepancies result in misaligned incentives that impact the dependable operation of the blockchain.","PeriodicalId":129399,"journal":{"name":"2018 14th European Dependable Computing Conference (EDCC)","volume":"10 1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"33","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 14th European Dependable Computing Conference (EDCC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/EDCC.2018.00034","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 33

Abstract

A defining feature of the Ethereum blockchain is its ability to execute smart contracts, providing a Turing complete programming model for distributed applications in non-trusted environments. The successful operation of the Ethereum blockchain depends on whether the miners' incentives (in the form of fees) to execute contracts is proportional to the miners' cost (in terms of energy usage, and thus CPU usage). In general, if the received fee is not proportional to the computational cost, miners would prefer some tasks over others, thus potentially adversely affecting the continuing dependable operation of the blockchain. In this paper we design a benchmark to compare smart contract execution time with the award a miner would receive, to determine if incentives align. We present the design of the benchmarking approach and provide initial results for the Python Ethereum client running on a Mac. The results indicate that for functions in Ethereum's most popular contracts the difference of reward per CPU second can be up to a factor of almost 50. In addition, contract creation, which is done once for each new contract, can be up to 6 times more lucrative than the regular execution of contract functions. Potentially, these discrepancies result in misaligned incentives that impact the dependable operation of the blockchain.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
评估以太坊矿工激励的智能合约性能基准
以太坊区块链的一个定义特征是它执行智能合约的能力,为非可信环境中的分布式应用程序提供了图灵完备的编程模型。以太坊区块链的成功运行取决于矿工执行合同的激励(以费用的形式)是否与矿工的成本(就能源使用而言,因此是CPU使用)成正比。一般来说,如果收到的费用与计算成本不成比例,矿工会更喜欢某些任务而不是其他任务,从而可能对区块链的持续可靠运行产生不利影响。在本文中,我们设计了一个基准,将智能合约的执行时间与矿工将获得的奖励进行比较,以确定激励是否一致。我们提出了基准测试方法的设计,并为在Mac上运行的Python以太坊客户端提供了初步结果。结果表明,对于以太坊最受欢迎的合约中的功能,每CPU秒的奖励差异可能高达近50倍。此外,每个新合约只创建一次合约,其利润可能是常规执行合约功能的6倍。这些差异可能会导致不一致的激励,从而影响区块链的可靠运行。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Finding SQL Injection and Cross Site Scripting Vulnerabilities with Diverse Static Analysis Tools A Re-Identification Risk-Based Anonymization Framework for Data Analytics Platforms Fault-Tolerance Evaluation of a New SQL Database Detecting Network Threats using OSINT Knowledge-Based IDS Towards a Formal Approach to Analysing Security of Safety-Critical Systems
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1