From e6cb4be03510f0c7db88e4e16a3df62964bcd067 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 22:08:31 +0200 Subject: allow superseding expired remakes --- src/remake/switch.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/remake/switch.rs') diff --git a/src/remake/switch.rs b/src/remake/switch.rs index e4644fb..cf5ea75 100644 --- a/src/remake/switch.rs +++ b/src/remake/switch.rs @@ -105,6 +105,10 @@ async fn check(host: &H) { let (id, record) = match committed.as_slice() { // Nothing committed here; maybe peers moved on without us. [] => return catchup::check(host).await, + [(id, record)] if record.contested => { + error!(remake = %id, "Decisions on this remake disagree; not switching on my own"); + return catchup::check(host).await; + } [(id, record)] => (id.clone(), record.clone()), several => { // Majority voting prevents this; never guess which one is right. Peers -- cgit v1.3.1