This includes a fix for the deadlock in #32.
[dependencies]
bitcoin = "0.29"
-lightning = { version = "0.0.115" }
-lightning-block-sync = { version = "0.0.115", features=["rest-client"] }
-lightning-net-tokio = { version = "0.0.115" }
+lightning = { version = "0.0.116-alpha1" }
+lightning-block-sync = { version = "0.0.116-alpha1", features=["rest-client"] }
+lightning-net-tokio = { version = "0.0.116-alpha1" }
tokio = { version = "1.25", features = ["full"] }
tokio-postgres = { version="=0.7.5" }
futures = "0.3"
ErroringMessageHandler, IgnoringMessageHandler, MessageHandler, PeerManager,
};
use lightning::routing::gossip::NetworkGraph;
-use lightning::chain::keysinterface::KeysManager;
+use lightning::sign::KeysManager;
use tokio::sync::mpsc;
use crate::{config, TestLogger};
chan_handler: ErroringMessageHandler::new(),
route_handler: Arc::clone(&router),
onion_message_handler: IgnoringMessageHandler {},
+ custom_message_handler: IgnoringMessageHandler {},
};
let peer_handler = Arc::new(PeerManager::new(
message_handler,
0xdeadbeef,
&random_data,
TestLogger::new(),
- IgnoringMessageHandler {},
keys_manager,
));
router.set_pm(Arc::clone(&peer_handler));
use std::sync::Arc;
use std::ops::Deref;
-use lightning::chain::keysinterface::KeysManager;
+use lightning::sign::KeysManager;
use lightning::ln::msgs::{ChannelAnnouncement, ChannelUpdate};
use lightning::ln::peer_handler::{ErroringMessageHandler, IgnoringMessageHandler, PeerManager};
use lightning::util::logger::{Logger, Record};