Skip to content

Commit efcb5d9

Browse files
committed
Rename old CooperativeClosure to LegacyCooperativeClosure
1 parent 58f7942 commit efcb5d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/events/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pub enum ClosureReason {
185185
/// The channel was closed after negotiating a cooperative close and we've now broadcasted
186186
/// the cooperative close transaction. Note the shutdown may have been initiated by us.
187187
// Can be removed once we disallow downgrading to 0.0.121
188-
CooperativeClosure,
188+
LegacyCooperativeClosure,
189189
/// The channel was closed after negotiating a cooperative close and we've now broadcasted
190190
/// the cooperative close transaction. This indicates that the shutdown was initiated by our
191191
/// counterparty.
@@ -237,7 +237,7 @@ impl core::fmt::Display for ClosureReason {
237237
f.write_fmt(format_args!("counterparty force-closed with message: {}", peer_msg))
238238
},
239239
ClosureReason::HolderForceClosed => f.write_str("user manually force-closed the channel"),
240-
ClosureReason::CooperativeClosure => f.write_str("the channel was cooperatively closed"),
240+
ClosureReason::LegacyCooperativeClosure => f.write_str("the channel was cooperatively closed"),
241241
ClosureReason::CounterpartyInitiatedCooperativeClosure => f.write_str("the channel was cooperatively closed by our peer"),
242242
ClosureReason::LocallyInitiatedCooperativeClosure => f.write_str("the channel was cooperatively closed by us"),
243243
ClosureReason::CommitmentTxConfirmed => f.write_str("commitment or closing transaction was confirmed on chain."),
@@ -259,7 +259,7 @@ impl_writeable_tlv_based_enum_upgradable!(ClosureReason,
259259
(1, FundingTimedOut) => {},
260260
(2, HolderForceClosed) => {},
261261
(6, CommitmentTxConfirmed) => {},
262-
(4, CooperativeClosure) => {},
262+
(4, LegacyCooperativeClosure) => {},
263263
(8, ProcessingError) => { (1, err, required) },
264264
(10, DisconnectedPeer) => {},
265265
(12, OutdatedChannelManager) => {},

0 commit comments

Comments
 (0)