diff options
Diffstat (limited to 'src/node.rs')
| -rw-r--r-- | src/node.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/node.rs b/src/node.rs index e5c68e0..f722112 100644 --- a/src/node.rs +++ b/src/node.rs @@ -85,6 +85,10 @@ pub(crate) struct NodeConfig { pub(crate) refused_writes_per_minute: usize, /// `--genesis-root`. pub(crate) genesis_root: Option<crate::document::ChangeHash>, + /// The store a swarm holding one holds, by its root's ID (`--store-root`, + /// `--store-id`). + #[cfg(feature = "federation")] + pub(crate) store: Option<crate::federation::store::Id>, /// `--strict-keys`. pub(crate) strict_keys: Vec<crate::access::sshsig::PublicKey>, /// `--cors-origins`. @@ -194,7 +198,11 @@ impl Node { config.genesis_root, &Default::default(), false, - )), + )) + .holding( + #[cfg(feature = "federation")] + config.store, + ), )), roots: Default::default(), genesis_root: config.genesis_root, |
