⏩ State Sync
◻️ How to use?
Stop the service and reset the data
Get and configure the state sync information
Restart the service
◻️ How to check?
After using State Sync, you can check the synchronization of your node with the following command:
Your node height - the current block of your node
Network height - the last block of the network
Blocks left - how many blocks your node has left to sync.
◻️ How does it work?
State Sync allows new nodes to join a blockchain network by downloading a recent snapshot of the application state instead of processing all historical blocks. This approach is typically faster and requires less data, as the application state is usually more concise than the entire block history.
◽ The difference between using State Sync and Snapshots
State Sync:
Working Principle: Downloads only the latest application state at a specific block height.
Data Volume: Smaller data volume as only the application state is downloaded.
Speed: Significantly faster synchronization process as it does not require processing all historical blocks.
Usage: Suitable for quickly connecting new nodes, especially in large networks.
Snapshot:
Working Principle: Downloads a complete copy of the blockchain data up to a certain point.
Data Volume: Larger data volume as it includes all blocks and transactions up to the snapshot point.
Speed: Synchronization process may take longer compared to State Sync, especially if the snapshot contains a lot of data.
Usage: Suitable for nodes that need the complete transaction and block history.
Last updated