# State Bootstrap: Snapshot Synchronization A classical node bootstraps by downloading the full block history and re-executing every transaction from genesis. On a phone this is not slow; it is impossible in any practically relevant sense, and a node that takes days to appear can never sustain meaningful participation. Phase instead bootstraps from *verified state snapshots*: a new node downloads the network's state at a recent finalized block, re-executes none of the history up to it, and executes only the blocks between it and the network's tip. ## Export Nodes configured as snapshot exporters—primarily beacons—export the full state at the network-configured cadence, a fixed block count of 7,200 blocks on mainnet and 3,600 on every other network (two hours and one hour at the nominal 1 s accounting unit of [System and Threat Model](system-model.md)): account balances and nonces, contract storage and bytecode, the validator registry, and the consensus tables that committee selection and scoring are derived from. Derived structures—the hashed state tables and the Merkle trie—are deliberately *not* exported: the importer rebuilds them from the plain state it received, which is what lets the recomputed state root act as a non-circular proof of the account and contract state imported. The state root does not cover the validator registry or the consensus tables: those rest on the manifest's chunk hashes and on the checks described below. Snapshots are taken *only* at finalized blocks, so no reorganizable state can enter a snapshot. An export consists of a manifest—block number and hash, state root, the chain's genesis hash, the encoded block header together with a window of ancestor headers (serving the `BLOCKHASH` history below the snapshot), the list of all chunks with their hashes and sizes, and an optional publisher signature—plus the chunks themselves: serialized state segments, compressed with zstd, at 2 MB of uncompressed payload per chunk. Chunks are content-addressed: a chunk's identifier is the Keccak-256 hash of its compressed bytes, so the name is the checksum. ## Manifest selection by quorum vote A bootstrapping node does not trust the first manifest it receives. It queries its serving peers—the beacon set—clamps candidate heights to at most 400 blocks above the network tip, the highest height any connected beacon reports (unbounded when none reports one), and accepts a manifest only when a quorum of peers, at least two and a strict majority of all responders, agrees twice over: on the manifest's identity (its block hash, state root, and genesis hash) and on a digest of its full content, chunk inventory included. If no height reaches quorum, the node retries at earlier export epochs and ultimately falls back (below) rather than resolving a conflict heuristically. A single compromised or corrupted serving node therefore cannot steer a new node onto a fabricated state, and a quorum member cannot substitute chunks while echoing an honest identity. ## Verified parallel download with resume Chunks are fetched in parallel from multiple serving nodes with many concurrent streams, load-balanced toward the least-busy and fastest peers. Every chunk is verified on arrival against the size and hash recorded in the manifest; a failed check triggers a bounded number of retries from *different* peers, and the offending peer is penalized through the transport reputation mechanism; since every source is a configured beacon, the penalty lowers its score but never bans it. A beacon that answers that it does not hold a chunk—an empty answer, as from one that has pruned that export—is not penalized and is not asked for that chunk again, and once no beacon holds a chunk the download ends and the node retries as described below. Completed, verified chunks are never re-downloaded: an interrupted connection, a killed app, or a reboot resumes the download at the granularity of a single chunk. ## Checkpointed import and tail catch-up Import is not a special mode; it is a stage of the node's staged execution pipeline. The stage proceeds through explicit phases—bytecode, accounts, contract storage, the validator registry, and the consensus tables—and persists both the current phase and the index of the last applied chunk as a stage checkpoint. After the last chunk, the hashed tables and the Merkle trie are rebuilt locally and the recomputed state root is proved against the snapshot header before the import activates. The import consequently survives process death at any point: the user can background the app, lose signal, or reboot the phone, and the import continues from its checkpoint rather than restarting. This property is not cosmetic; on mobile, being killed mid-way is the common case. After import, the node synchronizes the remaining *tail*—the blocks between the snapshot height and the network's tip—through the ordinary sync path and joins consensus. Because snapshots are exported on a fixed network-wide cadence, the tail is normally at most one export interval, plus the blocks produced while the next export is still being written and while the node downloads and imports the snapshot. Each scheduled export that the beacons skip because the previous one is still running, and each fallback to an older export, adds one more interval; ordinary sync closes the tail in every case. The snapshot path engages only when a node is behind by more than a configured distance; a briefly offline node simply resumes normal sync. ## Degradation and trust model If the newest snapshot cannot be downloaded, the node tries it again—three attempts in all, keeping the chunks it has already verified—then asks once more for the newest export, and downloads it if the beacons now name a newer one; otherwise it falls back to the previous export epoch, and ultimately, after three failed snapshots or a 30-minute deadline on the whole download, to full synchronization. When the first snapshot's download ends because no beacon holds a chunk, which is what a snapshot pruned while it downloads turns into, the node asks for the newest export at once, before those retries: it goes on with that snapshot and the chunks it holds while the beacons still serve it, and otherwise downloads the export they name. A node that selects no manifest within 180 s (or, while no beacon is connected yet or the network's tip lies at least two export intervals above genesis, within that 30-minute deadline), cannot store the snapshot, or whose imported state fails verification goes straight to full synchronization. A node whose volume lacks room for the new database beside the one it holds skips the snapshot on that start and synchronizes block by block on the database it has. The fast path is an optimization, not a dependency. Two properties are worth separating. *Integrity* is cryptographic: every byte imported is checked against the manifest's content hashes, so a serving node cannot substitute data within an accepted manifest. *Manifest choice* rests on the two-vote quorum above: the bootstrap assumes a majority of the responding serving peers are honest at the moment of selection. Operators may instead configure *trusted publishers*: a manifest carrying a valid signature from a configured publisher key—a dedicated key, neither a validator key nor a network identity—is accepted in place of the quorum at its own height, but only while fresh relative to the network tip, so a historically signed snapshot cannot be replayed onto a new node. Selection still runs highest height first, so a quorum at a higher height is adopted before a signed manifest is examined: a publisher lets a node bootstrap from a single source, but does not protect it from a colluding majority of its serving peers. With no publishers configured, no single source is ever accepted. Both are explicit, weaker-than-consensus assumptions; an operator who rejects them can run full sync, which requires no such trust. In the current deployment the serving set *is* the Foundation-operated beacon set, and the relays and discovery services that every node outside the static table depends on to be reached are Foundation-operated too; widening both is part of the decentralization roadmap. What the node concludes from an imported snapshot is bounded separately. The import is *provisional*: it records no finalized or safe block, so the node's `finalized` and `safe` RPC tags name no block, while state at `latest` is served from the imported snapshot, until the node's own consensus engine finalizes, on full quorum certificates it has verified, a block at or above the snapshot height on a chain through the snapshot block. An import that this finality does not confirm within six hours of the node's running time—running time, so a phone switched off right after an import loses nothing—is rejected, and so is one that a finalized block contradicts at the snapshot height. A rejection stops the node with an error; its next start deletes the imported database, and from then on the node synchronizes without a snapshot, whatever its configuration, until the operator deletes the rejection file (`snapshot-import-rejected.json`) in its data directory. On a phone that lockout does not hold in app releases up to 2.1.0: the iOS and Android apps answer any exit they did not ask for by deleting the data directory except the consensus safety record, and the rejection file goes with it, so the next start imports again, from the same beacons if they still serve that snapshot. The defence is partial. The committee those certificates are verified against is the one the snapshot itself carries, which the state root does not cover, and the import checks only that the rows marked as anchors belong to genesis anchors; beacons that forge a snapshot can therefore forge its committee as well—two colluding anchor beacons, or keys of their own in a committee with no anchor—and confirm the forgery. Settling only on signatures from a quorum of the genesis anchor keys would close that gap, and is not implemented. A node far behind on an import still unconfirmed, whose volume lacks the room for a new database beside it, stays on that database and synchronizes block by block. The six hours are sized for a node one export interval behind, so the time that start spends catching up does not count: it counts only once the node's head has not risen for ten minutes, until the head rises again. The node still names no finalized or safe block, finality can still confirm or reject the import, and an import whose head cannot move, such as a forgery with an honest committee, still reaches the six hours and is rejected. A consequence worth stating plainly: sync time is independent of chain age. The chain can run for years, and a new phone still downloads only the current state—a volume comparable to a large mobile-app update—rather than a history that grows without bound.