From: Matt Corallo Date: Tue, 11 Jun 2024 18:59:02 +0000 (+0000) Subject: Clarify `Display` text for `ClosureReason::HolderForceClosed` some X-Git-Tag: v0.0.124-beta~85^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=64336faa75f7f89248c6680943dafc0d85f0e702;p=rust-lightning Clarify `Display` text for `ClosureReason::HolderForceClosed` some ... to make it clear that we elected not to broadcast, rather than failed to broadcast. --- 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(()) }