aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/host.rs')
-rw-r--r--src/state/host.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/host.rs b/src/state/host.rs
index b4a785b..47fd946 100644
--- a/src/state/host.rs
+++ b/src/state/host.rs
@@ -24,6 +24,8 @@ impl AppState {
/// document. (Lock order doc -> peer, as in sync generation.)
fn swap_document(&self, replica: &mut Replica, epoch: Epoch, doc: Document) -> Document {
let old = std::mem::replace(&mut replica.doc, doc);
+ // The old document's signatures are of its changes.
+ replica.signatures = Default::default();
replica.epoch = epoch;
replica.epoch_seq += 1;
// Publishes the epoch with the heads (`Replica::stamps`), under the same lock,