Skip to content

Commit 1b1bd5b

Browse files
committed
Expose inner field of LSPSDateTime constructor
We require users to construct an `LSPSDateTime` and give it back to us (e.g., in LSPS2 OpeningFeeParameters), but currently only offer construction via `FromStr`. Here, we simply expose the wrapped `DateTime` field, allowing users to construct an `LSPSDateTime`.
1 parent 98297a6 commit 1b1bd5b

File tree

1 file changed

+1
-1
lines changed
  • lightning-liquidity/src/lsps0

1 file changed

+1
-1
lines changed

lightning-liquidity/src/lsps0/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pub struct LSPSRequestId(pub String);
195195
/// An object representing datetimes as described in bLIP-50 / LSPS0.
196196
#[derive(Clone, Debug, PartialEq, Eq, Hash, Deserialize, Serialize)]
197197
#[serde(transparent)]
198-
pub struct LSPSDateTime(chrono::DateTime<chrono::Utc>);
198+
pub struct LSPSDateTime(pub chrono::DateTime<chrono::Utc>);
199199

200200
impl LSPSDateTime {
201201
/// Returns the LSPSDateTime as RFC3339 formatted string.

0 commit comments

Comments
 (0)