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

Commit 394e3fc

Browse files
committed
LSPS1: Simplify channel object
The spec recently dropped a few fields from the channel object. Here, we account for these changes.
1 parent 71b9dd2 commit 394e3fc

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
@@ -180,31 +180,12 @@ pub struct OnchainPayment {
180180
/// Details regarding the state of an ordered channel.
181181
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
182182
pub struct ChannelInfo {
183-
/// The current state of the channel.
184-
pub state: ChannelState,
185183
/// The datetime when the funding transaction has been published.
186184
pub funded_at: String,
187185
/// The outpoint of the funding transaction.
188186
pub funding_outpoint: String,
189-
/// The channel's short channel id.
190-
pub scid: Option<String>,
191187
/// The earliest datetime when the channel may be closed by the LSP.
192188
pub expires_at: String,
193-
/// The transaction id of the channel.
194-
pub closing_transaction: Option<String>,
195-
/// The datetime when the closing transaction was published.
196-
pub closed_at: Option<String>,
197-
}
198-
199-
/// The current state of an ordered channel.
200-
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
201-
pub enum ChannelState {
202-
/// The funding transaction has been published.
203-
Opening,
204-
/// The channel has been opened.
205-
Opened,
206-
/// The channel has been closed.
207-
Closed,
208189
}
209190

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

0 commit comments

Comments
 (0)