Performance Benchmarking of Smart Contracts to Assess Miner Incentives in Ethereum

被引:28
作者
Aldweesh, Amjad [1 ]
Alharby, Maher [1 ]
Solaiman, Ellis [1 ]
van Moorsel, Aad [1 ]
机构
[1] Newcastle Univ, Sch Comp, Newcastle Upon Tyne, Tyne & Wear, England
来源
2018 14TH EUROPEAN DEPENDABLE COMPUTING CONFERENCE (EDCC 2018) | 2018年
关键词
Blockchain; Smart Contracts; Ethereum; benchmarking;
D O I
10.1109/EDCC.2018.00034
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:144 / 149
页数:6
相关论文
共 15 条
[1]  
Aldweesh A, 2018, PERFORMANCE BE UNPUB
[2]  
Alharby A, 2018, UK PERF ENG WORKSH
[3]  
[Anonymous], 2016, PROC ACM SIGSAC C CO
[4]  
Buterin V., 2016, T SPAM ATTACK NEXT S
[5]  
Carlsten M, 2016, ACM SIGSAC C COMP CO
[6]  
Chen T, 2017, 2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), P442, DOI 10.1109/SANER.2017.7884650
[7]  
Dong C, 2017, ACM SIGSAC C COMP CO
[8]  
Ethereum foundation, 2013, PYETH CLIENT
[9]  
Ethereum Foundation, 2013, EVM OP COD GAS COST
[10]  
Ezhilchelvan P, 2018, NONBLOCKING 2 PHASE