aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/switch.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 22:08:31 +0200
committertv <tv@krebsco.de>2026-10-24 22:08:31 +0200
commit457fa279183687c8dc2c48ad912bd82c2eb3001f (patch)
treeb0f30804f9314c3092b35465024865d63464d9fb /src/remake/switch.rs
parent4e744fc4a95cc42f062803ad651a8d2b65b487d8 (diff)
allow superseding expired remakes
Diffstat (limited to 'src/remake/switch.rs')
-rw-r--r--src/remake/switch.rs4
1 files changed, 4 insertions, 0 deletions
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<H: Host>(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