A Fast Ethereum-Compatible Forkless Database
Herbert Jordan, Kamil Jezek, Pavle Subotic, Bernhard Scholz
TL;DR
The paper tackles the storage bottleneck in Ethereum-compatible blockchains using forkless designs by introducing LiveDB and ArchiveDB, native databases with Ethereum-compatible authentication. LiveDB provides a mutable in-memory overlay with a file-mapped on-disk layer to avoid read amplification and enable intrinsic pruning, while ArchiveDB extends the approach to historical data with an append-only, copy-on-write model and selective freezing. The authors demonstrate nearly 10x throughput improvements and substantial storage reductions for validators, plus significant space savings for archive nodes, validated on a real-world Sonic testnet with large-scale replay data. The work offers practical impact by enabling scalable, forkless blockchain deployments that remain compatible with Ethereum proofs and root hashes, potentially accelerating adoption of high-throughput consensus protocols.
Abstract
The State Database of a blockchain stores account data and enables authentication. Modern blockchains use fast consensus protocols to avoid forking, improving throughput and finality. However, Ethereum's StateDB was designed for a forking chain that maintains multiple state versions. While newer blockchains adopt Ethereum's standard for DApp compatibility, they do not require multiple state versions, making legacy Ethereum databases inefficient for fast, non-forking blockchains. Moreover, existing StateDB implementations have been built on key-value stores (e.g., LevelDB), which make them less efficient. This paper introduces a novel state database that is a native database implementation and maintains Ethereum compatibility while being specialized for non-forking blockchains. Our database delivers ten times speedups and 99% space reductions for validators, and a threefold decrease in storage requirements for archive nodes.
