Snapshot creation, restoration, and network service.
Documentation of the format can be found at https://wiki.tetcoin.org/Warp-Sync-Snapshot-Format
Snapshot i/o. Ways of writing and reading snapshots. This module supports writing and reading snapshots of two different formats: packed and loose. Packed snapshots are written to a single file, and loose snapshots are written to multiple files in one directory.
Snapshot network service implementation.
Snapshot creation and restoration for PoA chains. Chunk format:
Rebuilder for proof-of-work chains.
Does basic verification for all blocks, but
Snapshot creation and restoration for PoW chains. This includes blocks from the head of the chain as a loose assurance that the chain is valid.
Configuration for the Snapshot service
Used to rebuild the state trie piece by piece.
number of snapshot subparts, must be a power of 2 in [1; 256]
Helper trait for broadcasting a block to take a snapshot at.
Helper trait for transforming hashes to block numbers and checking if syncing.
Restore from secondary snapshot chunks.
Snapshot related functionality
Components necessary for snapshot creation and restoration.
The interface for a snapshot network service. This handles:
Create and write out all secondary chunks to disk, returning a vector of all the hashes of secondary chunks created.
Walk the given state database starting from the given root,
creating chunks and writing them out.
Create a factory for building snapshot chunks and restoring from them.
Take a snapshot using the given blockchain, starting block hash, and database, writing into the given writer.
Verify an old block with the given header, engine, blockchain, body. If