# Fast Sync

In Grin, we call "sync" the process of synchronizing a new node or a node that

hasn't been keeping up with the chain for a while, and bringing it up to the

latest known most-worked block. Initial Block Download (or IBD) is often used

by other blockchains, but this is problematic for Grin as it typically does not

download full blocks.

In short, a fast-sync in Grin does the following:

  1. Download all block headers, by chunks, on the most worked chain, as

    advertized by other nodes.

  2. Find a header sufficiently back from the chain head. This is called the node

    horizon as it's the furthest a node can reorganize its chain on a new fork if

    it were to occur without triggering another new full sync.

  3. Download the full state as it was at the horizon, including the unspent

    output, range proof and kernel data, as well as all corresponding MMRs. This is

    just one large zip file.

  4. Validate the full state.

  5. Download full blocks since the horizon to get to the chain head.

In the rest of this section, we will elaborate on each of those steps.

results matching ""

    No results matching ""