From 3ecc0fe0bb083e351d769550851d26a9edcb7cf6 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 23:06:03 +0200 Subject: compact remake fixes base at the commit Instead of fixing base heads at when proposed, compact fixes them when committing. This shrinks the window where writes can be lost if their author restarts to the switch delay; during replace and import remakes writes can still be lost during the voting period. --- src/remake/vote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remake/vote.rs') diff --git a/src/remake/vote.rs b/src/remake/vote.rs index 16de87a..b4936dc 100644 --- a/src/remake/vote.rs +++ b/src/remake/vote.rs @@ -304,7 +304,7 @@ mod tests { proposal: Proposal { coordinator: electorate[0].to_owned(), from_epoch: Epoch::GENESIS.into(), - base_heads: Vec::new(), + base_heads: Some(Vec::new()), policy: Policy { replay_window: Policy::default_replay_window(), archive_retention: Policy::default_archive_retention(), -- cgit v1.3.1