Skip to content

Commit 64336fa

Browse files
committed
Clarify Display text for ClosureReason::HolderForceClosed some
... to make it clear that we elected not to broadcast, rather than failed to broadcast.
1 parent b8cdde8 commit 64336fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/events/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl core::fmt::Display for ClosureReason {
372372
ClosureReason::HolderForceClosed { broadcasted_latest_txn } => {
373373
f.write_str("user force-closed the channel")?;
374374
if let Some(brodcasted) = broadcasted_latest_txn {
375-
write!(f, " and {} the latest transaction", if *brodcasted { "broadcasted" } else { "did not broadcast" })
375+
write!(f, " and {} the latest transaction", if *brodcasted { "broadcasted" } else { "elected not to broadcast" })
376376
} else {
377377
Ok(())
378378
}

0 commit comments

Comments
 (0)