From efcb5d9d0f1861977ef9748ab84ec5e69240283b Mon Sep 17 00:00:00 2001 From: benthecarman Date: Sun, 4 Feb 2024 16:33:08 +0000 Subject: [PATCH] Rename old CooperativeClosure to LegacyCooperativeClosure --- lightning/src/events/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning/src/events/mod.rs b/lightning/src/events/mod.rs index 5d64c6df..27096584 100644 --- a/lightning/src/events/mod.rs +++ b/lightning/src/events/mod.rs @@ -185,7 +185,7 @@ pub enum ClosureReason { /// The channel was closed after negotiating a cooperative close and we've now broadcasted /// the cooperative close transaction. Note the shutdown may have been initiated by us. // Can be removed once we disallow downgrading to 0.0.121 - CooperativeClosure, + LegacyCooperativeClosure, /// The channel was closed after negotiating a cooperative close and we've now broadcasted /// the cooperative close transaction. This indicates that the shutdown was initiated by our /// counterparty. @@ -237,7 +237,7 @@ impl core::fmt::Display for ClosureReason { f.write_fmt(format_args!("counterparty force-closed with message: {}", peer_msg)) }, ClosureReason::HolderForceClosed => f.write_str("user manually force-closed the channel"), - ClosureReason::CooperativeClosure => f.write_str("the channel was cooperatively closed"), + ClosureReason::LegacyCooperativeClosure => f.write_str("the channel was cooperatively closed"), ClosureReason::CounterpartyInitiatedCooperativeClosure => f.write_str("the channel was cooperatively closed by our peer"), ClosureReason::LocallyInitiatedCooperativeClosure => f.write_str("the channel was cooperatively closed by us"), ClosureReason::CommitmentTxConfirmed => f.write_str("commitment or closing transaction was confirmed on chain."), @@ -259,7 +259,7 @@ impl_writeable_tlv_based_enum_upgradable!(ClosureReason, (1, FundingTimedOut) => {}, (2, HolderForceClosed) => {}, (6, CommitmentTxConfirmed) => {}, - (4, CooperativeClosure) => {}, + (4, LegacyCooperativeClosure) => {}, (8, ProcessingError) => { (1, err, required) }, (10, DisconnectedPeer) => {}, (12, OutdatedChannelManager) => {}, -- 2.30.2