@@ -185,7 +185,7 @@ pub enum ClosureReason {
185
185
/// The channel was closed after negotiating a cooperative close and we've now broadcasted
186
186
/// the cooperative close transaction. Note the shutdown may have been initiated by us.
187
187
// Can be removed once we disallow downgrading to 0.0.121
188
- CooperativeClosure ,
188
+ LegacyCooperativeClosure ,
189
189
/// The channel was closed after negotiating a cooperative close and we've now broadcasted
190
190
/// the cooperative close transaction. This indicates that the shutdown was initiated by our
191
191
/// counterparty.
@@ -237,7 +237,7 @@ impl core::fmt::Display for ClosureReason {
237
237
f. write_fmt ( format_args ! ( "counterparty force-closed with message: {}" , peer_msg) )
238
238
} ,
239
239
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" ) ,
241
241
ClosureReason :: CounterpartyInitiatedCooperativeClosure => f. write_str ( "the channel was cooperatively closed by our peer" ) ,
242
242
ClosureReason :: LocallyInitiatedCooperativeClosure => f. write_str ( "the channel was cooperatively closed by us" ) ,
243
243
ClosureReason :: CommitmentTxConfirmed => f. write_str ( "commitment or closing transaction was confirmed on chain." ) ,
@@ -259,7 +259,7 @@ impl_writeable_tlv_based_enum_upgradable!(ClosureReason,
259
259
( 1 , FundingTimedOut ) => { } ,
260
260
( 2 , HolderForceClosed ) => { } ,
261
261
( 6 , CommitmentTxConfirmed ) => { } ,
262
- ( 4 , CooperativeClosure ) => { } ,
262
+ ( 4 , LegacyCooperativeClosure ) => { } ,
263
263
( 8 , ProcessingError ) => { ( 1 , err, required) } ,
264
264
( 10 , DisconnectedPeer ) => { } ,
265
265
( 12 , OutdatedChannelManager ) => { } ,
0 commit comments