[en] The emergence of the Ethereum blockchain and the rise of Turing-complete smart contracts have led to the creation of new solutions for ensuring different kinds of termination. Indeed, non-termination of a smart-contract execution within the blockchain network may have critical consequences, ranging from slow performance to a complete denial of service in the worst scenarios. Furthermore, smart contracts lack a global access-control mechanism and may be executed indefinitely over time, even after they have exhausted their purposes. Therefore, this requires, in some cases, developing solutions implementing “soft” and “hard” terminations—such as pausable, interruptions, and kill-switch mechanisms—as well as providing safe termination guarantees. In addition, termination is even more crucial when we consider legal aspects of smart contracts, including compliance with laws and regulations, such as the smart contract requirements proposed by the European Union Data Act. In this paper, we explore several mechanisms to ensure various kinds of termination in Ethereum, the most widely used blockchain. Moreover, we investigate similar mechanisms for traditional programming languages that can be applied to smart contracts in the blockchain context. The primary purpose of this study is to fill the gap caused by the lack of standards for these mechanisms and the emerging solutions typically proposed by practitioners.
Disciplines :
Computer science
Author, co-author :
Olivieri, Luca ; Ca’ Foscari University of Venice, Venice, Italy
PASETTO, Luca ; University of Luxembourg > Faculty of Science, Technology and Medicine (FSTM) > Department of Computer Science (DCS)
Negrini, Luca ; Ca’ Foscari University of Venice, Venice, Italy
Ferrara, Pietro ; Ca’ Foscari University of Venice, Venice, Italy
External co-authors :
yes
Language :
English
Title :
An Overview of Termination in the Ethereum Blockchain
Publication date :
2026
Event name :
Blockchain Technology and Emerging Applications (Blocktea 2025)
Event place :
Venice, Ita
Event date :
18-09-2025 => 19-09-2025
Audience :
International
Main work title :
Blockchain Technology and Emerging Applications - 4th EAI International Conference, BlockTEA 2025, Proceedings
Editor :
Knottenbelt, William
Publisher :
Springer Science and Business Media Deutschland GmbH
Work partially supported by SERICS (PE00000014 - CUP H73C2200089001), iNEST (ECS00000043 \u2013 CUP H43C22000540006) projects funded by PNRR NextGeneration EU, and by the Luxembourg National Research Fund (FNR) (INTER/DFG/23/17415164/LODEX).
Abdrashitov, V.M., Davudov, D.A., Kolosov, N.F., Slezhenkov, V.V.: Risks of Smart Contracts Termination in the Investment Sphere, pp. 291–298. Springer, Cham (2024). https://doi.org/10.1007/978-3-031-51536-1_27
Albert, E., et al.: Object-sensitive cost analysis for concurrent objects. Softw. Test. Verif. Reliab. 25(3), 218–271 (2015). https://doi.org/10.1002/stvr.1569
Albert, E., Arenas, P., Genaim, S., Puebla, G., Zanardini, D.: Cost analysis of object-oriented bytecode programs. Theor. Comput. Sci. 413 (1), 142–159 (2012). https://doi.org/10.1016/j.tcs.2011.07.009, quantitative Aspects of Programming Languages (QAPL 2010)
Albert E Correas J Gordillo P Román-Díez G Rubio A Don’t run on fumes–parametric gas bounds for smart contracts J. Syst. Softw. 2021 176 10.1016/j.jss.2021.110923 110923
Antonopoulos, A.M.: Mastering Bitcoin: Programming the Open Blockchain, 2nd edn. O’Reilly, Sebastopol (2017)
Antonopoulos, A.M., Wood, G.: Mastering Ethereum: Building Smart Contracts and Dapps. O’Reilly, Sebastopol (2018)
Ballet, G., Buterin, V., Feist, D.: EIP-6780: SELFDESTRUCT only in same transaction (2022). https://eips.ethereum.org/EIPS/eip-6780. Accessed Aug 2024
Bartoletti, M., Ferrando, A., Lipparini, E., Malvone, V.: Solvent: liquidity verification of smart contracts. arXiv preprint arXiv:2404.17864 (2024)
Bartoletti M Zunino R Nielson F Sands D Verifying liquidity of bitcoin contracts Principles of Security and Trust 2019 Cham Springer 222 247 10.1007/978-3-030-17138-4_10
Beregszaszi, A.: EIP-6046: Replace SELFDESTRUCT with DEACTIVATE [DRAFT] (2022), ethereum Improvement Proposals, no. 6046, November 2022. https://eips.ethereum.org/EIPS/eip-6046. Accessed Aug 2024
Beregszaszi, A., Mushegian, N.: EIP-140: REVERT instruction (2017), ethereum Improvement Proposals, no. 140, February 2017. https://eips.ethereum.org/EIPS/eip-140. Accessed Aug 2024
Brent, L., Grech, N., Lagouvardos, S., Scholz, B., Smaragdakis, Y.: Ethainter: a smart contract security analyzer for composite vulnerabilities. In: Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2020, pp. 454–469. Association for Computing Machinery, New York (2020). https://doi.org/10.1145/3385412.3385990
Brent, L., et al.: Vandal: a scalable security analysis framework for smart contracts. arXiv preprint arXiv:1809.03981 (2018)
Brockschmidt M Cook B Fuhs C Sharygina N Veith H Better termination proving through cooperation Computer Aided Verification 2013 Heidelberg Springer 413 429 10.1007/978-3-642-39799-8_28
Buterin, V.: EIP-170: Contract code size limit (2016), ethereum Improvement Proposals, no. 170, November 2016. https://eips.ethereum.org/EIPS/eip-170. Accessed Aug 2024
Buterin, V.: Pragmatic destruction of SELFDESTRUCT (2024). https://hackmd.io/@vbuterin/selfdestruct#Pragmatic-destruction-of-SELFDESTRUCT. Accessed Aug 2024
Chang J Gao B Xiao H Sun J Cai Y Yang Z Ait-Ameur Y Qin S sCompile: critical path identification and analysis for smart contracts Formal Methods and Software Engineering 2019 Cham Springer 286 304 10.1007/978-3-030-32409-4_18 11852
Chen, J., Xia, X., Lo, D., Grundy, J.: Why do smart contracts self-destruct? Investigating the selfdestruct function on ethereum. ACM Trans. Softw. Eng. Methodol. 31(2) (2021). https://doi.org/10.1145/3488245
Clarke EM Ramesh S Sivakumar G Model checking Foundations of Software Technology and Theoretical Computer Science 1997 Heidelberg Springer 54 56 10.1007/BFb0058022 1346
Cook B Podelski A Rybalchenko A Ball T Jones RB Terminator: beyond safety Computer Aided Verification 2006 Heidelberg Springer 415 418 10.1007/11817963_37
Courant N Urban C Legay A Margaria T Precise widening operators for proving termination by abstract interpretation Tools and Algorithms for the Construction and Analysis of Systems 2017 Heidelberg Springer 136 152 10.1007/978-3-662-54577-5_8
Cousot, P., Cousot, R.: An abstract interpretation framework for termination. In: Proceedings of the 39th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2012, pp. 245–258. Association for Computing Machinery, New York (2012). https://doi.org/10.1145/2103656.2103687
Crosara, M., Olivieri, L., Spoto, F., Tagliaferro, F.: Re-engineering ERC-20 smart contracts with efficient snapshots for the java virtual machine. In: 2021 Third International Conference on Blockchain Computing and Applications (BCCA), pp. 187–194 (2021). https://doi.org/10.1109/BCCA53669.2021.9657047
Crosara, M., Olivieri, L., Spoto, F., Tagliaferro, F.: Fungible and non-fungible tokens with snapshots in java. Cluster Comput. 26(5), 2701–2718 (2023). https://doi.org/10.1007/s10586-022-03756-3
David, E.C.: The Hidden Dangers of Using Selfdestruct in Upgradable Smart Contracts (2025). https://coinsbench.com/the-hidden-dangers-of-using-selfdestruct-in-upgradable-smart-contracts--832466bf6b95. Accessed July 2025
D’Silva V Urban C Kroening D Păsăreanu CS Conflict-driven conditional termination Computer Aided Verification 2015 Cham Springer 271 286 10.1007/978-3-319-21668-3_16
Entriken, W.: EIP-6049: Deprecate selfdestruct (2022), ethereum Improvement Proposals, no. 6049, November 2022. https://eips.ethereum.org/EIPS/eip-6046. Accessed Aug 2024
European Parliament and the Council: Regulation (EU) 2023/2854 of the European Parliament and of the Council of 13 December 2023 on harmonised rules on fair access to and use of data and amending Regulation (EU) 2017/2394 and Directive (EU) 2020/1828 (Data Act) (2023), document 32023R2854. PE/49/2023/REV/1 OJ L, 2023/2854, 22.12.2023, ELI: http://data.europa.eu/eli/reg/2023/2854/oj
Fu M Wu L Hong Z Zhu F Sun H Feng W A critical-path-coverage-based vulnerability detection method for smart contracts IEEE Access 2019 7 147327 147344 10.1109/ACCESS.2019.2947146
Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, United States (1994)
Genet., T., Jensen., T., Sauvage., J.: Termination of ethereum’s smart contracts. In: Proceedings of the 17th International Joint Conference on e-Business and Telecommunications - SECRYPT, pp. 39–51. INSTICC, SciTePress (2020). https://doi.org/10.5220/0009564100390051
Giesl, J., Schneider-Kamp, P., Thiemann, R.: Aprove 1.2: automatic termination proofs in the dependency pair framework. In: Furbach, U., Shankar, N. (eds.) Automated Reasoning, pp. 281–286. Springer, Heidelberg (2006)
Grech, N., Kong, M., Jurisevic, A., Brent, L., Scholz, B., Smaragdakis, Y.: Madmax: surviving out-of-gas conditions in ethereum smart contracts. Proc. ACM Program. Lang. 2(OOPSLA) (2018). https://doi.org/10.1145/3276486
Hu T Li B Pan Z Qian C Detect defects of solidity smart contract based on the knowledge graph IEEE Trans. Reliab. 2024 73 1 186 202 10.1109/TR.2023.3233999
Huang, Y., et al.: The sword of damocles: upgradeable smart contract in ethereum. In: Proceedings of the 32nd IEEE/ACM International Conference on Program Comprehension, ICPC 2024, pp. 333–345. Association for Computing Machinery, New York (2024). https://doi.org/10.1145/3643916.3644426
EU Crypto Initiative: Europe’s Data Act: Implications for the Future of Innovation in Europe (2024). https://eu.ci/the-data-act-implications-for-the-future-of-smart-contracts-in-europe-annex/. Accessed Aug 2024
Kwesili, O.: The Incompatibility of Self-Destruct Mechanisms in Upgradeable Smart Contract Architectures (2025). https://coinsbench.com/the-incompatibility-of-self-destruct-mechanisms-in-upgradeable-smart--contract-architectures-979f846f9265. Accessed July 2025
Le, T.C., Qin, S., Chin, W.N.: Termination and non-termination specification inference. In: Proceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2015, pp. 489–498. Association for Computing Machinery, New York (2015). https://doi.org/10.1145/2737924.2737993
Le, T.C., Xu, L., Chen, L., Shi, W.: Proving conditional termination for smart contracts. In: Proceedings of the 2nd ACM Workshop on Blockchains, Cryptocurrencies, and Contracts, BCC 2018, pp. 57–59. Association for Computing Machinery, New York (2018). https://doi.org/10.1145/3205230.3205239
Li, X., Yang, J., Chen, J., Tang, Y., Gao, X.: Characterizing ethereum upgradable smart contracts and their security implications. In: Proceedings of the ACM on Web Conference 2024, WWW 2024, pp. 1847–1858. Association for Computing Machinery, New York (2024). https://doi.org/10.1145/3589334.3645640
Marino, B., Juels, A.: Setting standards for altering and undoing smart contracts. In: Alferes, J.J., Bertossi, L., Governatori, G., Fodor, P., Roman, D. (eds.) Rule Technologies. Research, Tools, and Applications, pp. 151–166. Springer, Cham (2016)
Mavridou A Laszka A Stachtiari E Dubey A Goldberg I Moore T VeriSolid: correct-by-design smart contracts for ethereum Financial Cryptography and Data Security 2019 Cham Springer 446 465 10.1007/978-3-030-32101-7_27 11598
Mudge, N.: ERC-2535: Diamonds, multi-facet proxy (2020), ethereum Improvement Proposals, no. 2535, February 2020. https://eips.ethereum.org/EIPS/eip-2535. Accessed Aug 2024
Nakamoto, S.: Bitcoin: A Peer-to-Peer Electronic Cash System (2008). https://bitcoin.org/bitcoin.pdf. Accessed June 2023
Nikolić, I., Kolluri, A., Sergey, I., Saxena, P., Hobor, A.: Finding the greedy, prodigal, and suicidal contracts at scale. In: Proceedings of the 34th Annual Computer Security Applications Conference, ACSAC 2018, pp. 653–663. Association for Computing Machinery, New York (2018). https://doi.org/10.1145/3274694.3274743
Olivieri, L., Mukherjee, A., Chaki, N., Cortesi, A.: Cross-chain Smart Contracts and dApps Verification by Static Analysis: Limits and Challenges, vol. 3962 (2025). https://ceur-ws.org/Vol-3962/paper16.pdf
Olivieri, L., Pasetto, L.: Towards compliance of smart contracts with the european union data act. In: CEUR Workshop Proceedings, vol. 3629, pp. 61–66 (2024). https://ceur-ws.org/Vol-3629
Olivieri, L., Pasetto, L., Negrini, L., Ferrara, P.: European union data act and blockchain technology: challenges and new directions. In: CEUR Workshop Proceedings, vol. 3791. CEUR-WS (2024). https://ceur-ws.org/Vol-3791/paper30.pdf
Olivieri, L., Spoto, F.: Software verification challenges in the blockchain ecosystem. Int. J. Softw. Tools Technol. Transfer (2024). https://doi.org/10.1007/s10009-024-00758-x
Olivieri L Spoto F Tagliaferro F et al. Bernhard M et al. On-chain smart contract verification over tendermint Financial Cryptography and Data Security. FC 2021 International Workshops 2021 Heidelberg Springer 333 347 10.1007/978-3-662-63958-0_28 12676
OpenZeppelin: Erc-20 pausable (2024). https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#ERC20Pausable. Accessed Aug 2024
OpenZeppelin: Erc-20 snapshot (2024). https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#ERC20Snapshot. Accessed Aug 2024
OpenZeppelin: Erc-721 pausable (2024). https://docs.openzeppelin.com/contracts/4.x/api/token/erc721#ERC721Pausable. Accessed Aug 2024
Patrick, C.: Principles of Abstract Interpretation. MIT Press Academic, Cambridge (2021)
Popper, N.: A Hacking of More Than \$50 Million Dashes Hopes in the World of Virtual Currency. The New York Times (2016)
Rajasekar, V., Sondhi, S., Saad, S., Mohammed, S.: Emerging design patterns for blockchain applications. In: ICSOFT, pp. 242–249 (2020)
Ressi, D., Spanò, A., Benetollo, L., Piazza, C., Bugliesi, M., Rossi, S.: Vulnerability detection in ethereum smart contracts via machine learning: a qualitative analysis. arXiv preprint arXiv:2407.18639 (2024)
Rice HG Classes of recursively enumerable sets and their decision problems Trans. Am. Math. Soc. 1953 74 358 366 53041 10.1090/s0002-9947-1953-0053041-6
Seneviratne, O.: The feasibility of a smart contract “kill switch”. In: 2024 6th International Conference on Blockchain Computing and Applications (BCCA), pp. 473–480 (2024). https://doi.org/10.1109/BCCA62388.2024.10844477
Urban C Miné A Müller-Olm M Seidl H A decision tree abstract domain for proving conditional termination Static Analysis 2014 Cham Springer 302 318
Wasiu, A.: Mastering Solidity: require and Custom Errors in Ethereum Contracts (2023). https://medium.com/coinmonks/mastering-solidity-require-and-custom-errors-in-ethereum-contracts--b491565f1592. Accessed May 2025
Wohrer, M., Zdun, U.: Smart contracts: security patterns in the ethereum ecosystem and solidity. In: 2018 International Workshop on Blockchain Oriented Software Engineering (IWBOSE), pp. 2–8 (2018). https://doi.org/10.1109/IWBOSE.2018.8327565
Wood G et al. Ethereum: a secure decentralised generalised transaction ledger Ethereum Project Yellow Paper 2014 151 2014 1 32