From b0cae5076879ad1cb7091cb9fa403c01d879d311 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 19:22:34 +0000 Subject: remake: a node on a set of events says there is nothing to remake A proposal there answered 500, failed to write the proposal: the set refuses what isn't an event or the node's own entry. --- src/remake/api.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/remake/api.rs') diff --git a/src/remake/api.rs b/src/remake/api.rs index 9ccd582..7590c2e 100644 --- a/src/remake/api.rs +++ b/src/remake/api.rs @@ -386,6 +386,16 @@ async fn start_kind( None, ); }; + // A set of events has nothing to remake (`docs/document.md`, A set of events): no + // changes, writers or epochs, and it is bounded by the store's checkpoints. + #[cfg(feature = "federation")] + if host.holding().of_a_set() { + return error_response( + StatusCode::BAD_REQUEST, + "this node's document is a set of events: there is nothing to remake".to_owned(), + None, + ); + } // A swarm holding a store takes compactions only (`docs/store.md`, Remakes): every // node builds a compaction's snapshot itself from the base. #[cfg(feature = "federation")] -- cgit v1.3.1