You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some `NodeFeatures` will, in the future, represent features which
are not enabled by the `ChannelManager`, but by other message
handlers handlers. Thus, it doesn't make sense to determine the
node feature bits in the `ChannelManager`.
The simplest fix for this is to change to generating the
node_announcement in `PeerManager`, asking all the connected
handlers which feature bits they support and simply OR'ing them
together. While this may not be sufficient in the future as it
doesn't consider feature bit dependencies, support for those could
be handled at the feature level in the future.
This commit moves the `broadcast_node_announcement` function to
`PeerHandler` but does not yet implement feature OR'ing.
Copy file name to clipboardExpand all lines: lightning-background-processor/src/lib.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -746,7 +746,7 @@ mod tests {
746
746
let p2p_gossip_sync = Arc::new(P2PGossipSync::new(network_graph.clone(),Some(chain_source.clone()), logger.clone()));
747
747
let rapid_gossip_sync = Arc::new(RapidGossipSync::new(network_graph.clone()));
748
748
let msg_handler = MessageHandler{chan_handler:Arc::new(test_utils::TestChannelMessageHandler::new()),route_handler:Arc::new(test_utils::TestRoutingMessageHandler::new()),onion_message_handler:IgnoringMessageHandler{}};
749
-
let peer_manager = Arc::new(PeerManager::new(msg_handler, keys_manager.get_node_secret(Recipient::Node).unwrap(),&seed, logger.clone(),IgnoringMessageHandler{}));
749
+
let peer_manager = Arc::new(PeerManager::new(msg_handler, keys_manager.get_node_secret(Recipient::Node).unwrap(),0,&seed, logger.clone(),IgnoringMessageHandler{}));
750
750
let scorer = Arc::new(Mutex::new(test_utils::TestScorer::with_penalty(0)));
0 commit comments