From 21708b597e676516645151a4079832d97028400c Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 18 Apr 2023 12:23:20 -0500 Subject: [PATCH] Add PeerManager::init_features to DRY up code --- lightning/src/ln/peer_handler.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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