Skip to content

Commit

Permalink
Remove the unused ChannelState
Browse files Browse the repository at this point in the history
  • Loading branch information
litch committed Jan 14, 2023
1 parent 8ab3a7a commit 4bd015e
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -276,27 +275,6 @@ pub struct Channel {
pub short_channel_id: Option<String>,
}

#[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,
Expand Down

0 comments on commit 4bd015e

Please sign in to comment.