aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-17 05:18:24 +0000
committertv <tv@krebsco.de>2026-11-17 12:22:12 +0100
commitd4f7e15e28cbd0029a5b189a4aa3cd636ffc9699 (patch)
tree9f9860a93a99733b0507889a82ea16a4d0d24e67 /src
parentec76ee904944867556555ff71e8fd0e6503b7c3d (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/simtest/holding.rs4
1 files changed, 2 insertions, 2 deletions
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(