Studying gas exceptions in blockchain-based cloud applications

被引:7
作者
Liu, Chao [1 ]
Gao, Jianbo [1 ]
Li, Yue [1 ]
Wang, Huihui [2 ]
Chen, Zhong [1 ]
机构
[1] Peking Univ, Sch Elect Engn & Comp Sci, 5 Yiheyuan Rd, Beijing 100871, Peoples R China
[2] Jacksonville Univ, Dept Engn, Jacksonville, FL 32211 USA
来源
JOURNAL OF CLOUD COMPUTING-ADVANCES SYSTEMS AND APPLICATIONS | 2020年 / 9卷 / 01期
基金
中国国家自然科学基金;
关键词
Cloud application; Blockchain; Ethereum; Runtime exception; Out of gas; Empirical study;
D O I
10.1186/s13677-020-00176-9
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Blockchain-based cloud application (BCP) is an emerging cloud application architecture. By moving trust-critical functions onto blockchain, BCP offers unprecedented function transparency and data integrity. Ethereum is by far the most popular blockchain platform chosen for BCP. In Ethereum, special programs named smart contracts are often used to implement key components for BCP. By design, users can send transactions to smart contracts, which will automatically lead to code execution and state modification. However, unlike regular programs, smart contracts are restricted in execution by gas limit, i.e., a form of runtime resource. If a transaction uses up all available gas, an out of gas exception (OG) will trigger, reverting state until right before that transaction.In this work, we study the out of gas exceptions (or gas exceptions in short) on Ethereum empirically for the very first time. In particular, we collect exception transactions using an instrumented Ethereum client. By investigation, we found gas exceptions stand out in terms of both occurrences and losses. Moreover, we focused on individual contracts and transactions, aiming at discovering and identifying common causing factors triggering these exceptions. At last, we also investigate existing tools in preventing gas exceptions. Our results suggest further research and study in this direction.
引用
收藏
页数:25
相关论文
共 47 条
[41]   Ethereum Crypto-Games: Mechanics, Prevalence and Gambling Similarities [J].
Scholten, Oliver James ;
Hughes, Nathan Gerard Jayy ;
Deterding, Sebastian ;
Drachen, Anders ;
Walker, James Alfred ;
Zendle, David .
CHI PLAY'19: PROCEEDINGS OF THE ANNUAL SYMPOSIUM ON COMPUTER-HUMAN INTERACTION IN PLAY, 2019, :379-389
[42]  
Song H., 2017, SECURITY PRIVACY CYB, DOI DOI 10.1002/9781119226079.CH6
[43]  
Tas R., 2019, 2019 3 INT S MULT ST, P1, DOI DOI 10.1109/ISMSIT.2019.8932806
[44]  
Woo Lee Hyung, 2019, [Journal of Internet Computing and Services, 인터넷정보학회논문지], V20, P9
[45]  
Wood G., 2014, Ethereum: A Secure Decentralised Generalised Trans- action Ledger, V151, P1, DOI DOI 10.1017/CBO9781107415324.004
[46]   A first look at blockchain-based decentralized applications [J].
Wu, Kaidong ;
Ma, Yun ;
Huang, Gang ;
Liu, Xuanzhe .
SOFTWARE-PRACTICE & EXPERIENCE, 2021, 51 (10) :2033-2050
[47]   Empirically Analyzing Ethereum's Gas Mechanism [J].
Yang, Renlord ;
Murray, Toby ;
Rimba, Paul ;
Parampalli, Udaya .
2019 4TH IEEE EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY WORKSHOPS (EUROS&PW), 2019, :310-319