How this works
What is cut out, what is recomputed, what is checked — and what we cannot promise.
Why it is small
Sei keeps its state in memIAVL: an IAVL tree laid out flat on disk as kvs (keys and values), nodes (branches) and leaves. Every branch and leaf record is 48 bytes, and 32 of them are a SHA-256 hash — random bytes no compressor touches, a third of the state, and a pure function of the rest.
So the hashes are cut out (48 → 16 bytes per record) and your machine computes them again. Records are stored in post-order: children always come before their parent, so the hashes are rebuilt in one pass — leaves in parallel, branches by independent subtrees.
Since seid v6.7 the EVM state lives in FlatKV (data/state_commit/flatkv), about 25 GB of the ~68 GB raw. It is hashed differently — a lattice hash, not a merkle tree — so there is nothing to cut out: its snapshot and the WAL after it are shipped as they are.
The historical state store (SS) is not in the default snapshot: a node does not need it to follow the chain. For RPC nodes there is a second variant with it (latest-ss.json, rebuilt every two hours): the same parts plus a copy of the SS — pebble files, already zstd-compressed, about 40 GB with the last ~100,000 blocks of history — taken after the snapshot height, so its history has no gap. What remains is compressed with zstd and split into parts.
Why you can trust it
- Before publishing, the app_hash of the published height is taken from the header of the next block and must agree across independent public RPCs.
- The Tendermint state is written by a light-client bootstrap: headers verified by signatures, cross-checked against a second RPC, the block itself checked against the verified header and its results against
LastResultsHash. - On your machine every part is checked by sha256 while it downloads.
- The stripped hashes are recomputed on your machine, not copied from ours, and every memIAVL tree root must equal the store hash in the snapshot's own
__metadata. This check does not cover FlatKV. - On start the node itself computes the full app_hash — the memIAVL stores and FlatKV's
evm_lattice— compares it with the verified Tendermint state and refuses to run on a mismatch.
How it is made, continuously
One cycle starts as soon as the previous one has published, and only waits for the changelog to close a new segment, about a minute of blocks. Our node is never stopped. The memIAVL and FlatKV snapshot directories are immutable once written, so they are hard-linked — no bytes copied. From the memIAVL changelog and the FlatKV WAL only closed segments are taken; the height of the copy is the last block in them, and on open seid rolls FlatKV back to the same version as memIAVL. The Tendermint state for exactly that height comes from the light-client bootstrap above, a few kilobytes instead of a copy of the node's databases.
Then the parts are built while the node runs on: large files are cut into byte ranges and their hashes stripped on the fly, small files go into tar parts, everything is compressed with zstd. Parts are named by their sha256, so a part that did not change is never stored twice — and between memIAVL snapshots, which the node writes about every twelve hours, almost every part is reused as is: only the changelog and the Tendermint state are packed again. The manifest is swapped only after every part is in place.
Earlier versions stopped the node for each copy. Sei takes 9–12 minutes to stop, and every stop also killed the memIAVL snapshot it was writing (3–5 hours on our disk), so the changelog grew without end. The light-client bootstrap removed the stop.
What we cannot promise
The snapshot is as old as the last capture plus its build: a few minutes behind the head while the pipeline runs, longer once every twelve hours when the node writes a new memIAVL snapshot and the next build packs everything again. The changelog in it grows until the node finishes its next memIAVL snapshot, and with it the replay time on your first start. Network upgrades need the matching seid; the manifest always names the version the data was written with. Latencies on the Endpoints page are from our server, not from yours.
Not for historical queries. The node has no state store and the installer sets ss-enable = false, so it answers queries about the current state only. Do not use it for an RPC node that serves historical queries, and do not turn SS on later on a node restored from here: Sei's SS is MVCC and needs the initial value of every key, so it would return wrong historical results.
The full app_hash is checked by the node, not before it. Today the installer checks the memIAVL roots; the complete app_hash at the published height, FlatKV included, is first verified when the node starts. A check of the full app_hash before the start is coming.
The format will change. Sei is moving the rest of its state from memIAVL to FlatKV and will then remove memIAVL; the pipeline and the installer will move with it.