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

Commit e231bf4

Browse files
committed
LSPS1: Use DateTime for channel object
1 parent 62b72d9 commit e231bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lsps1/msgs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ pub struct OnchainPayment {
204204
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
205205
pub struct ChannelInfo {
206206
/// The datetime when the funding transaction has been published.
207-
pub funded_at: String,
207+
pub funded_at: chrono::DateTime<Utc>,
208208
/// The outpoint of the funding transaction.
209209
pub funding_outpoint: String,
210210
/// The earliest datetime when the channel may be closed by the LSP.
211-
pub expires_at: String,
211+
pub expires_at: chrono::DateTime<Utc>,
212212
}
213213

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

0 commit comments

Comments
 (0)