Understanding Out of Gas Exceptions on Ethereum
Abstract
Ethereum is by far the most popular smart contract platform in the public blockchain category. In Ethereum, special programs named smart contracts codify the “self-governed accounts”. By design, users can send transactions to smart contracts, which will automatically lead to code execution and state modification. 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 (OG) exception will trigger, reverting state until right before the transaction. In this work, we empirically studied the OG exceptions on Ethereum for the very first time. In particular, we collected exception transactions using an instrumented Ethereum client. By investigating OG exceptions, we found OG stand out in terms of both occurrences and damages. 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 OG exceptions. The results call for further research and study in this direction.
BibTeX
@inproceedings{liu2019understanding,
author = {Chao Liu and Jianbo Gao and Yue Li and Zhong Chen},
title = {{Understanding Out of Gas Exceptions on Ethereum}},
booktitle = {BlockSys},
year = {2019},
url = {https://openreview.net/forum?id=53QwR3kgVu},
}Ask Althea to put this paper to the test.
Loading related content...