Zeknd SuperChain Whitepaper
  • Zeknd SuperChain Docs
  • Overview
    • opZEKND Overview
    • Why opZEKND?
    • opZEKND Ecosystem and Its Logical Subnetworks
    • Why BNB Chain?
  • TECHNOLOGY
    • ZEKND SUPERCHAIN MAINNET
    • Technology Design Principles
    • Consensus Mechanism
    • Layer 2 based on OP Stack
    • Zeknd Virtual Machine (ZEVM)
    • Hidden Validators
    • Cross-Chain Compatibilities
    • Storage
  • ON CHAIN
    • Zeknd Superchain
      • Transaction Fee
    • zBridge
      • Rewarding Early Supporters: Unlocking Bonus % for Presale Participants
    • ZekID
    • dApps
      • Dashboard
      • Cross-Chain Swap
      • Staking
      • Manage Liquidity
      • Mining
    • Tools and Infrastructure
      • Zeknd Explorer
      • Zeknd Faucet
      • Zeknd API
    • Governance
    • opZEKND RPC API
  • opZEKND TOKEN
    • Token Allocation
    • $opZEKND Token Utilities
  • About
    • Socials
    • Roadmap
Powered by GitBook
On this page
  1. TECHNOLOGY

Storage

Optimizing Storage Efficiency

As the ZEKND blockchain continues to grow with the addition of new blocks, the accumulation of chain data becomes inevitable. These chain data are essential for node operations and are stored in the node storage using a data structure called a trie, which is ultimately stored in a LevelDB database. However, the increase in blocks also results in an increase in chain data stored, leading to higher storage costs.

To address this challenge, opZEKND introduces a feature known as State Migration, specifically designed to reduce the required storage space. State Migration focuses on state tries, which constitute the majority of the chain data. It selectively removes state trie nodes that are no longer necessary for processing new blocks, effectively streamlining the storage requirements.

During the State Migration process, only the state trie nodes that are reachable from the state trie root of a specific block are retained. This means that irrelevant state trie nodes are deleted, leaving behind only the essential data needed for node synchronization. This includes the state trie nodes of the target block as well as any newly added blocks.

By implementing State Migration, opZEKND significantly improves storage efficiency by eliminating redundant and obsolete data, allowing nodes to operate more efficiently. This optimization reduces the overall storage costs associated with the growing chain data, ensuring that the blockchain remains scalable and cost-effective.

PreviousCross-Chain CompatibilitiesNextZeknd Superchain

Last updated 1 year ago