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

Commit 7e63f38

Browse files
LSPS2: JIT Channels
1 parent b31f1c0 commit 7e63f38

File tree

11 files changed

+1705
-23
lines changed

11 files changed

+1705
-23
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ 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 = "a358ba2e68c84d19e70d1d45d3f677eaf324e09d", features = ["max_level_trace", "std"] }
12+
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "a358ba2e68c84d19e70d1d45d3f677eaf324e09d" }
13+
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "a358ba2e68c84d19e70d1d45d3f677eaf324e09d" }
1414

1515
bitcoin = "0.29.0"
1616

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)