Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Sep 5, 2024
1 parent ba0f52f commit 49e7f77
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Check [here](https://github.com/AreaLayer/Lightning-Lending/blob/main/doc/run.md
- [X] LSP (WIP)
- [ ] Bitcoin Knots
- [ ] Mutinynet
- [ ] CLN Plugin

## Contributors

Expand Down
3 changes: 3 additions & 0 deletions src/lending/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use lightning::ln::peer_handler::{MessageHandler, PeerHandler, SocketDescriptor}
use lightning::util::config::UserConfig;
use lightning::ln::BOLT12;
use ldk_node::lightning::ln::msgs::SocketAddress;
use lightning_liquidity::LiquidityProvider;
use lightning_liquidity::LSPS0Client;

use bitcoin::network::constants::Network;

Expand All @@ -21,6 +23,7 @@ let channel_manager = ChannelManager::new(
Arc::new(keys_manager.clone()), // Clone because it's used in multiple places
Arc::new(fee_estimator.clone()),
Arc::new(tx_broadcaster.clone()),
Arc::new(LSPS0Client.clone()),
Arc::new(logger.clone()),
config,
network,
Expand Down
15 changes: 14 additions & 1 deletion src/lending/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,17 @@ impl From<LSPS0ClientEvent> for Event {
fn from(event: LSPS0ClientEvent) -> Self {
Event::LSPS0Client(event)
}
}
}

impl From<LSPS2ClientEvent> for Event {
fn from(event: LSPS2ClientEvent) -> Self {
Event::LSPS2Client(event)
}
}

impl From<LSPS2ServiceEvent> for Event {
fn from(event: LSPS2ServiceEvent) -> Self {
Event::LSPS2Service(event)
}
}

0 comments on commit 49e7f77

Please sign in to comment.