diff options
| author | tv <tv@krebsco.de> | 2026-11-07 22:35:21 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-07 22:35:21 +0100 |
| commit | 2ff408c024a0ef5db2a770e8a091783f1b6d9cfc (patch) | |
| tree | 5350c2290c673049af04ff1c55043087a86f3b14 /src/node.rs | |
| parent | 63b34dfa41e1595145507a88901e332bf4bd3b14 (diff) | |
signatures: with sync messages
Sync messages carry, for each actor's writes, the latest signature the
sender checked; the receiver checks it once it holds the change.
Auth plan M5.
Diffstat (limited to 'src/node.rs')
| -rw-r--r-- | src/node.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node.rs b/src/node.rs index 32a82b2..8cf327e 100644 --- a/src/node.rs +++ b/src/node.rs @@ -113,8 +113,10 @@ impl Node { }; let mut replica = Replica::new(config.initial_epoch, config.initial_doc); - replica.signatures = - crate::document::signatures::Signatures::from_kept(config.initial_signatures); + replica.signatures = crate::document::signatures::Signatures::from_kept( + &replica.doc, + config.initial_signatures, + ); let stamp = replica.stamps(); let state = AppState { doc: Arc::new(crate::document::lock::DocumentLock::new(replica)), |
