summaryrefslogtreecommitdiffstats
path: root/src/simtest/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/simtest/mod.rs')
-rw-r--r--src/simtest/mod.rs12
1 files changed, 10 insertions, 2 deletions
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<JsonValue> {
}
/// 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<crate::federation::fold::Federation>,
@@ -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));
}