]> git.bitcoin.ninja Git - rapid-gossip-sync-server/commitdiff
Send addresses and features for hitherto unseen nodes.
authorArik Sosman <git@arik.io>
Fri, 7 Jun 2024 18:14:42 +0000 (11:14 -0700)
committerArik Sosman <git@arik.io>
Fri, 7 Jun 2024 18:14:42 +0000 (11:14 -0700)
src/lookup.rs

index 751ddf228145595332a42f884f5fe6424ac2dd1f..4337508a3eec165f32b6099529e044d0e27715a2 100644 (file)
@@ -559,6 +559,15 @@ pub(super) async fn fetch_node_updates<L: Deref>(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 {