From d4f7e15e28cbd0029a5b189a4aa3cd636ffc9699 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 05:18:24 +0000 Subject: simtest: row 31's later write builds on what is above the checkpoint It builds on tv's write, the checkpoint's head: one built on the root isn't above the heads of the checkpoint the nodes moved to, and they refuse it. --- src/simtest/holding.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/simtest/holding.rs') diff --git a/src/simtest/holding.rs b/src/simtest/holding.rs index 069cc1e..02e8ddf 100644 --- a/src/simtest/holding.rs +++ b/src/simtest/holding.rs @@ -1556,7 +1556,7 @@ async fn store_attack_15() { /// pinned, and stays where it is, taking what is written on. #[tokio::test(flavor = "multi_thread", worker_threads = 4)] async fn store_attack_31() { - let (sim, nodes, _, id, _, honest, _) = made_up_epoch(98).await; + let (sim, nodes, _, _, head, honest, _) = made_up_epoch(98).await; let all = &nodes; sim.wait_until( "a, b and c don't follow d's epoch", @@ -1564,7 +1564,7 @@ async fn store_attack_31() { move || async move { all[..3].iter().all(not_followed) }, ) .await; - let later = Party::new("lass", 2).write(&[id], "home/lass/later", s("2")); + let later = Party::new("lass", 2).write(&[Id::of(&head)], "home/lass/later", s("2")); put(&nodes[1], &[&later]).await; let later = [Id::of(&later)]; sim.wait_until( -- cgit v1.3.1