aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.rs')
-rw-r--r--src/node.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/node.rs b/src/node.rs
index 91a9c62..314433c 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -126,6 +126,17 @@ impl Node {
&replica.doc,
config.initial_signatures,
);
+ // What this node kept unsigned when it stopped: signed before anything leaves.
+ if let Some(key) = &config.node_key {
+ let replica = &mut replica;
+ let signed = replica.signatures.sign_own_heads(&replica.doc, key);
+ if signed > 0 {
+ tracing::info!(
+ signed,
+ "Signed changes this node kept unsigned when it stopped"
+ );
+ }
+ }
let stamp = replica.stamps();
let state = AppState {
doc: Arc::new(crate::document::lock::DocumentLock::new(replica)),