From 598366b03679eac9d04f32d9194f3ba4ba9c3da8 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Nov 2026 17:26:53 +0000 Subject: store: a drop refuses whatever writes what a dropped event writes A fold may say what an event writes that others may write alike (`Fold::writes`): of the federation, a version event's version. A node whose operator has it drop such an event drops the taken events writing the same with it, and refuses any writing it from then on, whoever wrote it anew: of a version, it takes no other version event naming it and writes none itself, though it holds the votes that passed it. The node keeps what each dropped event writes in its store file, across restarts; allowing one of them takes them all back. Row 51 of the federation's attacks has its test, and waits no more. --- src/api/events.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/api') diff --git a/src/api/events.rs b/src/api/events.rs index 3017c25..04dc77e 100644 --- a/src/api/events.rs +++ b/src/api/events.rs @@ -73,7 +73,10 @@ fn why(refusal: &Refusal) -> String { Refusal::Own => { "its history takes it, but this node doesn't, by what it took before".to_owned() } - Refusal::Dropped => "this node's operator had it drop it".to_owned(), + Refusal::Dropped => { + "this node's operator had it drop it, or a version event naming the version it names" + .to_owned() + } } } -- cgit v1.3.1