Skip to content

Commit 2822b25

Browse files
committed
docs(deployer): state the LevelDB lock scope
Both the wallet cache and the LevelDB store now hang off the compact.toml directory, so the project is the unit of state and a second concurrent compact-deploy in the same project fails on the LevelDB lock.
1 parent 394463c commit 2822b25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/deployer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ After each successful sync the deployer writes `<compact.toml dir>/.states/<netw
7878
- Bust it: `--no-cache` (force fresh) or `rm -rf .states/`. Auto-falls-back on corrupt or version-mismatched files.
7979
- Best-effort writes; never block a deploy. Concurrent runs against the same seed race. Don't.
8080
- Resolved against the `compact.toml` directory, not the shell CWD, so running from a subdirectory reuses the same cache. Same for the LevelDB private-state store (`<compact.toml dir>/midnight-level-db/`).
81+
- Both live under the `compact.toml` directory, which makes the project the unit of deployer state. Run one `compact-deploy` at a time per project: a second concurrent run fails on the LevelDB lock.
8182
- `.states/` is gitignored.
8283

8384
### Importing a pre-warmed state file

0 commit comments

Comments
 (0)