MoltDB: Accelerating Blockchain via Ancient State Segregation
Blockchain store states in Log-Structured Merge (LSM) tree-based database. Due to blockchain traceability, the growing ancient states are inevitably stored in the databases. Unfortunately, by default, this process mixes <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">current</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">ancient</i> states in the data layout, increasing unnecessary disk I/O access and slowing transaction execution. This paper proposes MoltDB, a scalable LSM-based database for efficient transaction execution through a novel idea of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">ancient state segregation</i>, i.e., to segregate current and ancient states in the data layout. However, the frequently generated and uncertainly accessed characteristics of ancient states make the segregation challenging. Thus, we develop an “extract-compact” mechanism to batch extraction process for frequently generated ancient states and the LSM compaction process to relieve additional disk I/O overhead. Moreover, we design an adaptive LSM-based storage for the uncertainly accessed ancient states extracted for on-demand access. We implement MoltDB as a database engine compatible with many mainstream blockchains and integrate it into Ethereum for evaluation. Experimental results show that MoltDB achieves 1.3 × transaction throughput and 30% disk I/O latency savings over the state-of-the-art works.
Authors
- Zibin Zheng (ORCID: https://orcid.org/0000-0001-7872-7718)
- Junyuan Liang (ORCID: https://orcid.org/0000-0002-4436-9585)
- Haogang Zhu (ORCID: https://orcid.org/0000-0003-1771-2752)
- Wuhui Chen (ORCID: https://orcid.org/0000-0003-4430-7904)
- Zicong Hong (ORCID: https://orcid.org/0000-0001-5689-382X)
- Wangjie Qiu (ORCID: https://orcid.org/0009-0003-9654-9515)
Institutions
- Hong Kong Polytechnic University (HK)
- Sun Yat-sen University (CN)
- Guangzhou University (CN)
- Beihang University (CN)
Publication Details
- Journal
- IEEE Transactions on Parallel and Distributed Systems
- Published
- 2024-10-10
- DOI
- https://doi.org/10.1109/tpds.2024.3467927
- Citations
- 2
- Primary Topic
- Blockchain Technology Applications and Security
- Type
- article
- Field-Weighted Citation Impact
- 1.56