aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/mod.rs')
-rw-r--r--src/state/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs
index 441cdaf..d3f5859 100644
--- a/src/state/mod.rs
+++ b/src/state/mod.rs
@@ -161,6 +161,10 @@ pub(crate) struct AppState {
/// may make within it (`access::challenge`).
pub(crate) challenge_lifetime: Duration,
pub(crate) key_logins_per_user: usize,
+ /// Its epoch's root, as peers name it and as it knows its own (`swarm::roots`), and
+ /// the one it was given (`--genesis-root`).
+ pub(crate) roots: Arc<std::sync::Mutex<crate::swarm::roots::Roots>>,
+ pub(crate) genesis_root: Option<crate::document::ChangeHash>,
/// Whose signature on a strict remake's manifest this node takes (`access::strict`).
pub(crate) strict_keys: Arc<Vec<crate::access::sshsig::PublicKey>>,
/// Origins whose pages may call this node's open endpoints (`api::cors`).