From c0bb757df50fe4aa025ba2e6ac021e179291c78b Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Nov 2026 20:39:21 +0000 Subject: simtest: a failed simulation's dump says where a store stopped --- src/simtest/mod.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/simtest') diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index 7764f1c..c96f189 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -492,8 +492,9 @@ pub(crate) async fn read(node: &AppState, at: &str) -> Option { } /// What a node's store holds, for a failed simulation's dump: its checkpoint and current -/// version, what it took and refused (and why), and the proposals on the current version -/// with the parties voting on them, and whether they pass there. +/// version, what it took and refused (and why), where it stopped (and why, and how many +/// events it holds back), and the proposals on the current version with the parties +/// voting on them, and whether they pass there. #[cfg(feature = "federation")] fn describe_store( store: &crate::federation::store::memory::Store, @@ -512,6 +513,13 @@ fn describe_store( store.taken().len(), store.refused().count() ); + if let Some((id, why, held)) = store.stopped() { + let _ = writeln!( + out, + " stopped at {} ({held} held back): {why}", + short(id) + ); + } for (id, refusal) in store.refused() { let _ = writeln!(out, " refused {}: {refusal:?}", short(id)); } -- cgit v1.3.1