You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Crosslink internal wallet keeps an optional restart cache at:
4
+
5
+
```text
6
+
<state.cache_dir>/wallet.snapshot
7
+
```
8
+
9
+
The snapshot is a local cache for the internal wallet's derived state: manual wallet records, known transactions, the PoW hash cache, and the Orchard shard tree. Zebra state, `pos.chain`, and `secret.seed` remain the authoritative node state.
10
+
11
+
## When snapshots are used
12
+
13
+
- Persistent state runs save and load `wallet.snapshot` from `state.cache_dir`.
14
+
- Ephemeral state runs do not save or load the snapshot.
15
+
- A snapshot is used only if its stored `secret.seed` bytes and genesis hash match the current run.
16
+
- Missing, mismatched, or invalid snapshots are ignored and the internal wallet scans from genesis.
17
+
18
+
The file is written atomically via a temporary file and rename. The reader checks the snapshot magic, version, seed, genesis hash, bounded lengths, and trailing bytes before accepting it.
19
+
20
+
## Operational notes
21
+
22
+
- Treat `wallet.snapshot` as a local plaintext cache; do not share it as a recovery authority.
23
+
- After rollback or state rebuild, move `wallet.snapshot` aside and let it regenerate from the rebuilt chain state.
24
+
- The internal wallet requires zaino. If zaino is enabled but cannot start, `zebrad start` fails rather than continuing into a wallet sync loop that cannot make progress.
25
+
26
+
## Related config
27
+
28
+
```toml
29
+
[crosslink]
30
+
disable_the_headless_wallet = false
31
+
disable_zaino = false
32
+
reset_zaino_on_startup = false
33
+
```
34
+
35
+
-`disable_the_headless_wallet`: skips the internal wallet task.
36
+
-`disable_zaino`: skips zaino startup. Use this only when the internal wallet is also disabled.
37
+
-`reset_zaino_on_startup`: deletes the zaino cache under `state.cache_dir` before starting zaino.
0 commit comments