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