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

Commit b538337

Browse files
LSPS2: JIT Channels
1 parent 58fbce0 commit b538337

File tree

11 files changed

+1706
-24
lines changed

11 files changed

+1706
-24
lines changed

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ description = "Types and primitives to integrate a spec-compliant LSP with an LD
88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

1010
[dependencies]
11-
lightning = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "498f2331459d8031031ef151a44c90d700aa8c7e", features = ["max_level_trace", "std"] }
12-
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "498f2331459d8031031ef151a44c90d700aa8c7e" }
13-
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "498f2331459d8031031ef151a44c90d700aa8c7e" }
11+
lightning = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "d327c231cf7f998a8f588898841a385ac5cee58e", features = ["max_level_trace", "std"] }
12+
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "d327c231cf7f998a8f588898841a385ac5cee58e" }
13+
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "d327c231cf7f998a8f588898841a385ac5cee58e" }
1414

1515
bitcoin = "0.29.0"
1616

1717
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
18-
serde_json = "1.0"
18+
serde_json = "=1.0.99"

src/events.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//! Because we don't have a built-in runtime, it's up to the end-user to poll
1414
//! [`crate::LiquidityManager::get_and_clear_pending_events()`] to receive events.
1515
16+
use crate::jit_channel;
1617
use std::collections::VecDeque;
1718
use std::sync::{Condvar, Mutex};
1819

@@ -53,6 +54,9 @@ impl EventQueue {
5354
}
5455
}
5556

56-
/// Event which you should probably take some action in response to.
57+
/// An Event which you should probably take some action in response to.
5758
#[derive(Debug, Clone, PartialEq, Eq)]
58-
pub enum Event {}
59+
pub enum Event {
60+
/// A LSPS2 (JIT Channel) protocol event
61+
LSPS2(jit_channel::event::Event),
62+
}

0 commit comments

Comments
 (0)