⏩ State Sync
Last updated
Last updated
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.
Example:
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.
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.