From 9845a07960fa083db0b0c7e2312f98706e9684cb Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 25 Oct 2026 11:43:53 +0100 Subject: add state file This allows storing the swarm ID and additionally discovered seeds, which prevents a formerly genesis node to start a new document. --- src/state.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 785eee8..37bde4a 100644 --- a/src/state.rs +++ b/src/state.rs @@ -602,6 +602,8 @@ pub(crate) struct AppState { /// HTTP API users who may write protocol data through the store API /// (`--protocol-writers`). pub(crate) protocol_writers: Arc>, + /// What this node remembers across restarts (`--state-file`), if configured. + pub(crate) state_file: Option>, /// The effective configuration with sources, imported values left out /// (`config::Loaded::report`), for `GET /admin/config`. pub(crate) config: Arc, -- cgit v1.3.1