From 4bd015e66b5c6aad6a20c4745660092c3ea2a0c3 Mon Sep 17 00:00:00 2001 From: Justin Litchfield Date: Sat, 14 Jan 2023 05:57:13 -0600 Subject: [PATCH] Remove the unused ChannelState --- src/lib.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c9aa260..7769ee0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -267,7 +267,6 @@ pub struct ListFundsResponseFunds { pub struct Channel { pub peer_id: String, pub connected: bool, - pub state: ChannelState, pub our_amount_msat: Amount, pub amount_msat: Amount, pub funding_txid: String, @@ -276,27 +275,6 @@ pub struct Channel { pub short_channel_id: Option, } -#[derive(Debug, Deserialize, Clone)] -pub enum ChannelState { - OPENINGD, - CHANNELD_AWAITING_LOCKIN, - CHANNELD_NORMAL, - CHANNELD_SHUTTING_DOWN, - CLOSINGD_SIGEXCHANGE, - CLOSINGD_COMPLETE, - AWAITING_UNILATERAL, - FUNDING_SPEND_SEEN, - ONCHAIN, - DUALOPENED_OPEN_INIT, - DUALOPEND_AWAITING_LOCKIN, -} - - - - -// ListPeers - - #[derive(Debug, Deserialize)] pub struct ListPeersResponse { pub result: ListPeersResponsePeers,