@@ -184,7 +184,7 @@ pub enum ClosureReason {
184184 HolderForceClosed ,
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.
187- CooperativeClosure ,
187+ LegacyCooperativeClosure ,
188188 /// The channel was closed after negotiating a cooperative close and we've now broadcasted
189189 /// the cooperative close transaction. This indicates that the shutdown was initiated by our
190190 /// counterparty.
@@ -236,7 +236,7 @@ impl core::fmt::Display for ClosureReason {
236236 f. write_fmt ( format_args ! ( "counterparty force-closed with message: {}" , peer_msg) )
237237 } ,
238238 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" ) ,
240240 ClosureReason :: CounterpartyInitiatedCooperativeClosure => f. write_str ( "the channel was cooperatively closed by our peer" ) ,
241241 ClosureReason :: LocallyInitiatedCooperativeClosure => f. write_str ( "the channel was cooperatively closed by us" ) ,
242242 ClosureReason :: CommitmentTxConfirmed => f. write_str ( "commitment or closing transaction was confirmed on chain." ) ,
@@ -258,7 +258,7 @@ impl_writeable_tlv_based_enum_upgradable!(ClosureReason,
258258 ( 1 , FundingTimedOut ) => { } ,
259259 ( 2 , HolderForceClosed ) => { } ,
260260 ( 6 , CommitmentTxConfirmed ) => { } ,
261- ( 4 , CooperativeClosure ) => { } ,
261+ ( 4 , LegacyCooperativeClosure ) => { } ,
262262 ( 8 , ProcessingError ) => { ( 1 , err, required) } ,
263263 ( 10 , DisconnectedPeer ) => { } ,
264264 ( 12 , OutdatedChannelManager ) => { } ,
0 commit comments