From: Jeffrey Czyz Date: Tue, 18 Apr 2023 17:23:20 +0000 (-0500) Subject: Add PeerManager::init_features to DRY up code X-Git-Tag: v0.0.116-alpha1~35^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=21708b597e676516645151a4079832d97028400c;p=rust-lightning Add PeerManager::init_features to DRY up code --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index c3c241c01..ae2a52378 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -870,6 +870,13 @@ impl InitFeatures { + self.message_handler.chan_handler.provided_init_features(their_node_id) + | self.message_handler.route_handler.provided_init_features(their_node_id) + | self.message_handler.onion_message_handler.provided_init_features(their_node_id) + | self.message_handler.custom_message_handler.provided_init_features(their_node_id) + } + /// Indicates a new outbound connection has been established to a node with the given `node_id` /// and an optional remote network address. /// @@ -1265,10 +1272,7 @@ impl