From 64336faa75f7f89248c6680943dafc0d85f0e702 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 11 Jun 2024 18:59:02 +0000 Subject: [PATCH] Clarify `Display` text for `ClosureReason::HolderForceClosed` some ... to make it clear that we elected not to broadcast, rather than failed to broadcast. --- lightning/src/events/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/events/mod.rs b/lightning/src/events/mod.rs index 527aabb07..2805171cd 100644 --- a/lightning/src/events/mod.rs +++ b/lightning/src/events/mod.rs @@ -372,7 +372,7 @@ impl core::fmt::Display for ClosureReason { ClosureReason::HolderForceClosed { broadcasted_latest_txn } => { f.write_str("user force-closed the channel")?; if let Some(brodcasted) = broadcasted_latest_txn { - write!(f, " and {} the latest transaction", if *brodcasted { "broadcasted" } else { "did not broadcast" }) + write!(f, " and {} the latest transaction", if *brodcasted { "broadcasted" } else { "elected not to broadcast" }) } else { Ok(()) } -- 2.39.5