@@ -36,6 +36,7 @@ use lightning::onion_message::messenger::AOnionMessenger;
3636use lightning:: routing:: gossip:: { NetworkGraph , P2PGossipSync } ;
3737use lightning:: routing:: scoring:: { ScoreUpdate , WriteableScore } ;
3838use lightning:: routing:: utxo:: UtxoLookup ;
39+ use lightning:: sign:: EntropySource ;
3940use lightning:: util:: logger:: Logger ;
4041use lightning:: util:: persist:: Persister ;
4142#[ cfg( feature = "std" ) ]
@@ -649,7 +650,7 @@ use futures_util::{dummy_waker, OptionalSelector, Selector, SelectorOutput};
649650/// # type ChannelManager<B, F, FE> = lightning::ln::channelmanager::SimpleArcChannelManager<ChainMonitor<B, F, FE>, B, FE, Logger>;
650651/// # type OnionMessenger<B, F, FE> = lightning::onion_message::messenger::OnionMessenger<Arc<lightning::sign::KeysManager>, Arc<lightning::sign::KeysManager>, Arc<Logger>, Arc<ChannelManager<B, F, FE>>, Arc<lightning::onion_message::messenger::DefaultMessageRouter<Arc<NetworkGraph>, Arc<Logger>, Arc<lightning::sign::KeysManager>>>, Arc<ChannelManager<B, F, FE>>, lightning::ln::peer_handler::IgnoringMessageHandler, lightning::ln::peer_handler::IgnoringMessageHandler, lightning::ln::peer_handler::IgnoringMessageHandler>;
651652/// # type Scorer = RwLock<lightning::routing::scoring::ProbabilisticScorer<Arc<NetworkGraph>, Arc<Logger>>>;
652- /// # type PeerManager<B, F, FE, UL> = lightning::ln::peer_handler::SimpleArcPeerManager<SocketDescriptor, ChainMonitor<B, F, FE>, B, FE, Arc<UL>, Logger>;
653+ /// # type PeerManager<B, F, FE, UL> = lightning::ln::peer_handler::SimpleArcPeerManager<SocketDescriptor, ChainMonitor<B, F, FE>, B, FE, Arc<UL>, Logger, F, Store >;
653654/// #
654655/// # struct Node<
655656/// # B: lightning::chain::chaininterface::BroadcasterInterface + Send + Sync + 'static,
@@ -736,8 +737,9 @@ pub async fn process_events_async<
736737 EventHandlerFuture : core:: future:: Future < Output = Result < ( ) , ReplayEvent > > ,
737738 EventHandler : Fn ( Event ) -> EventHandlerFuture ,
738739 PS : ' static + Deref + Send ,
740+ ES : ' static + Deref + Send ,
739741 M : ' static
740- + Deref < Target = ChainMonitor < <CM :: Target as AChannelManager >:: Signer , CF , T , F , L , P > >
742+ + Deref < Target = ChainMonitor < <CM :: Target as AChannelManager >:: Signer , CF , T , F , L , P , ES > >
741743 + Send
742744 + Sync ,
743745 CM : ' static + Deref + Send + Sync ,
@@ -764,6 +766,7 @@ where
764766 L :: Target : ' static + Logger ,
765767 P :: Target : ' static + Persist < <CM :: Target as AChannelManager >:: Signer > ,
766768 PS :: Target : ' static + Persister < ' a , CM , L , S > ,
769+ ES :: Target : ' static + EntropySource ,
767770 CM :: Target : AChannelManager + Send + Sync ,
768771 OM :: Target : AOnionMessenger + Send + Sync ,
769772 PM :: Target : APeerManager + Send + Sync ,
@@ -911,8 +914,11 @@ impl BackgroundProcessor {
911914 P : ' static + Deref + Send + Sync ,
912915 EH : ' static + EventHandler + Send ,
913916 PS : ' static + Deref + Send ,
917+ ES : ' static + Deref + Send ,
914918 M : ' static
915- + Deref < Target = ChainMonitor < <CM :: Target as AChannelManager >:: Signer , CF , T , F , L , P > >
919+ + Deref <
920+ Target = ChainMonitor < <CM :: Target as AChannelManager >:: Signer , CF , T , F , L , P , ES > ,
921+ >
916922 + Send
917923 + Sync ,
918924 CM : ' static + Deref + Send + Sync ,
@@ -935,6 +941,7 @@ impl BackgroundProcessor {
935941 L :: Target : ' static + Logger ,
936942 P :: Target : ' static + Persist < <CM :: Target as AChannelManager >:: Signer > ,
937943 PS :: Target : ' static + Persister < ' a , CM , L , S > ,
944+ ES :: Target : ' static + EntropySource ,
938945 CM :: Target : AChannelManager + Send + Sync ,
939946 OM :: Target : AOnionMessenger + Send + Sync ,
940947 PM :: Target : APeerManager + Send + Sync ,
@@ -1085,7 +1092,7 @@ mod tests {
10851092 use lightning:: routing:: gossip:: { NetworkGraph , P2PGossipSync } ;
10861093 use lightning:: routing:: router:: { CandidateRouteHop , DefaultRouter , Path , RouteHop } ;
10871094 use lightning:: routing:: scoring:: { ChannelUsage , LockableScore , ScoreLookUp , ScoreUpdate } ;
1088- use lightning:: sign:: { ChangeDestinationSource , InMemorySigner , KeysManager } ;
1095+ use lightning:: sign:: { ChangeDestinationSource , InMemorySigner , KeysManager , NodeSigner } ;
10891096 use lightning:: types:: features:: { ChannelFeatures , NodeFeatures } ;
10901097 use lightning:: types:: payment:: PaymentHash ;
10911098 use lightning:: util:: config:: UserConfig ;
@@ -1160,6 +1167,7 @@ mod tests {
11601167 Arc < test_utils:: TestFeeEstimator > ,
11611168 Arc < test_utils:: TestLogger > ,
11621169 Arc < FilesystemStore > ,
1170+ Arc < KeysManager > ,
11631171 > ;
11641172
11651173 type PGS = Arc <
@@ -1208,6 +1216,7 @@ mod tests {
12081216 Arc < test_utils:: TestLogger > ,
12091217 IgnoringMessageHandler ,
12101218 Arc < KeysManager > ,
1219+ IgnoringMessageHandler ,
12111220 > ,
12121221 > ,
12131222 chain_monitor : Arc < ChainMonitor > ,
@@ -1568,6 +1577,8 @@ mod tests {
15681577 logger. clone ( ) ,
15691578 fee_estimator. clone ( ) ,
15701579 kv_store. clone ( ) ,
1580+ keys_manager. clone ( ) ,
1581+ keys_manager. get_peer_storage_key ( ) ,
15711582 ) ) ;
15721583 let best_block = BestBlock :: from_network ( network) ;
15731584 let params = ChainParameters { network, best_block } ;
@@ -1621,6 +1632,7 @@ mod tests {
16211632 route_handler : Arc :: new ( test_utils:: TestRoutingMessageHandler :: new ( ) ) ,
16221633 onion_message_handler : messenger. clone ( ) ,
16231634 custom_message_handler : IgnoringMessageHandler { } ,
1635+ send_only_message_handler : IgnoringMessageHandler { } ,
16241636 } ;
16251637 let peer_manager = Arc :: new ( PeerManager :: new (
16261638 msg_handler,
0 commit comments