You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
789 B

  1. ---
  2. order: 11
  3. ---
  4. # State Sync
  5. With block sync a node is downloading all of the data of an application from genesis and verifying it.
  6. With state sync your node will download data related to the head or near the head of the chain and verify the data.
  7. This leads to drastically shorter times for joining a network.
  8. Information on how to configure state sync is located in the [nodes section](../nodes/state-sync.md)
  9. ## Events
  10. When a node starts with the statesync flag enabled in the config file, it will emit two events: one upon starting statesync and the other upon completion.
  11. The user can query the events by subscribing `EventQueryStateSyncStatus`
  12. Please check [types](https://pkg.go.dev/github.com/tendermint/tendermint/types?utm_source=godoc#pkg-constants) for the details.