Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit d08fc2e

Browse files
authored
Merge pull request #111 from tnull/2024-02-simplify-channel-struct
LSPS1: Simplify channel object
2 parents cbbe9fe + 394e3fc commit d08fc2e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/lsps1/msgs.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -199,31 +199,12 @@ pub struct OnchainPayment {
199199
/// Details regarding the state of an ordered channel.
200200
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
201201
pub struct ChannelInfo {
202-
/// The current state of the channel.
203-
pub state: ChannelState,
204202
/// The datetime when the funding transaction has been published.
205203
pub funded_at: String,
206204
/// The outpoint of the funding transaction.
207205
pub funding_outpoint: String,
208-
/// The channel's short channel id.
209-
pub scid: Option<String>,
210206
/// The earliest datetime when the channel may be closed by the LSP.
211207
pub expires_at: String,
212-
/// The transaction id of the channel.
213-
pub closing_transaction: Option<String>,
214-
/// The datetime when the closing transaction was published.
215-
pub closed_at: Option<String>,
216-
}
217-
218-
/// The current state of an ordered channel.
219-
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
220-
pub enum ChannelState {
221-
/// The funding transaction has been published.
222-
Opening,
223-
/// The channel has been opened.
224-
Opened,
225-
/// The channel has been closed.
226-
Closed,
227208
}
228209

229210
/// A request made to an LSP to retrieve information about an previously made order.

0 commit comments

Comments
 (0)