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

LSPS2: JIT Channels #5

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ description = "Types and primitives to integrate a spec-compliant LSP with an LD
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
lightning = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "498f2331459d8031031ef151a44c90d700aa8c7e", features = ["max_level_trace", "std"] }
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "498f2331459d8031031ef151a44c90d700aa8c7e" }
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "498f2331459d8031031ef151a44c90d700aa8c7e" }
lightning = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "a358ba2e68c84d19e70d1d45d3f677eaf324e09d", features = ["max_level_trace", "std"] }
lightning-invoice = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "a358ba2e68c84d19e70d1d45d3f677eaf324e09d" }
lightning-net-tokio = { git = "https://github.com/lightningdevkit/rust-lightning.git", rev = "a358ba2e68c84d19e70d1d45d3f677eaf324e09d" }

bitcoin = "0.29.0"

Expand Down
8 changes: 6 additions & 2 deletions src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//! Because we don't have a built-in runtime, it's up to the end-user to poll
//! [`crate::LiquidityManager::get_and_clear_pending_events()`] to receive events.

use crate::jit_channel;
use std::collections::VecDeque;
use std::sync::{Condvar, Mutex};

Expand Down Expand Up @@ -53,6 +54,9 @@ impl EventQueue {
}
}

/// Event which you should probably take some action in response to.
/// An Event which you should probably take some action in response to.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Event {}
pub enum Event {
/// A LSPS2 (JIT Channel) protocol event
LSPS2(jit_channel::event::Event),
}
Loading