Skip to content

Conversation

@dobotro
Copy link

@dobotro dobotro commented Nov 17, 2025

The blockchain state storage backend has been migrated from SQLite to RocksDB. This is a significant architectural change aimed at improving performance and scalability. For existing nodes, a lazy migration process is performed in the background. When a state entry is requested, the node first checks an in-memory cache, then the RocksDB database. If not found, it falls back to the legacy state_trie table in the SQLite database and migrates the entry to RocksDB. To facilitate a full migration, a new state_sync feature has been introduced. Node operators must perform a manual migration procedure on existing nodes by enabling this feature. This involves restoring from a checkpoint and setting db.state_sync = true in the configuration file to replay blocks and populate the new RocksDB state database. A detailed guide for this process is available in the new docs/state_migration.md document.


Users can set up a node and join the Zilliqa 2.0 mainnet, testnet or devnet by following the instructions below

## Prerequisites
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change @dobotro

and has not started synchronizing yet.

For additional details on `z2` and the `join` capability refer to:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change @dobotro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants