Skip to main content
Version: Mainnet

Sequencer Snapshots

Dymension allows a sequencer to provide snapshots through the sequencer metadata. roller than automatically searches for existing snapshots in the sequencer metadata and in case one is found, it can be used as a starting point for the full node.

note

By default, the latest snapshot will be used, as there is currently no way to specify a particular snapshot.

Creating Snapshot

Create an archive of the data directory. The data directory is usually located at ~/.roller/rollapp/data:

tar -zcf <some-snapshotname>.tar.gz ~/.roller/rollapp/data

Supplying Snapshot

To supply a snapshot, you will need update the sequencer metadata.

An example for providing a snapshot as part of the sequencer metadata is shown below where url is the snapshot url, height is the height of the snapshot, and hash is the sha-256 hash of the snapshot file.

{
//...
"archives": [
{
"url": "https://archive.dym.fyi/snapshots/rolx_222201.tar.gz",
"height": 222201,
"hash": "1234567890123456789012345678901234567890123456789012345678901234"
}
],
//...
}

Starting from Snapshot

When starting a full node, roller will automatically search for existing snapshots in the sequencer metadata and in case one is found, it may be used as a starting point for the full node. roller validates the snapshot by checking the hash and the height of the snapshot and will only use it if the snapshot is valid.