From: Arik Sosman Date: Fri, 7 Jun 2024 18:14:42 +0000 (-0700) Subject: Send addresses and features for hitherto unseen nodes. X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=217563a80360bdaf04de86aa1f77ebaf7df13eb1;p=rapid-gossip-sync-server Send addresses and features for hitherto unseen nodes. --- 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 {