From 217563a80360bdaf04de86aa1f77ebaf7df13eb1 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Fri, 7 Jun 2024 11:14:42 -0700 Subject: [PATCH] Send addresses and features for hitherto unseen nodes. --- src/lookup.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lookup.rs b/src/lookup.rs index 751ddf2..4337508 100644 --- a/src/lookup.rs +++ b/src/lookup.rs @@ -559,6 +559,15 @@ pub(super) async fn fetch_node_updates(client: &Client, last_sync_time if address_set != last_seen_update.addresses { current_node_delta.has_address_set_changed = true; } + } else if !is_previously_processed_node_id { + if current_node_delta.last_details_before_seen.is_none() { + if !address_set.is_empty() { + current_node_delta.has_address_set_changed = true; + } + if unsigned_node_announcement.features != NodeFeatures::empty() { + current_node_delta.has_feature_set_changed = true; + } + } } if !is_previously_processed_node_id { -- 2.39.5