From: Arik Sosman Date: Fri, 7 Jun 2024 18:15:06 +0000 (-0700) Subject: Serialize removal of all socket addresses in snapshots. X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=41724eaa13b06ec9ea77360b4cd41024d2ba6322;p=rapid-gossip-sync-server Serialize removal of all socket addresses in snapshots. --- diff --git a/src/lib.rs b/src/lib.rs index 58fcc76..4da8f38 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -338,13 +338,11 @@ fn serialize_delta(serialization_details: &SerializationSet, s }; } - if total_address_count > 0 { - // signal the presence of node addresses - current_node_delta_serialization[0] |= 1 << 2; - // serialize the actual addresses and count - total_address_count.write(&mut current_node_delta_serialization).unwrap(); - current_node_delta_serialization.append(&mut address_serialization); - } + // signal the presence of node addresses + current_node_delta_serialization[0] |= 1 << 2; + // serialize the actual addresses and count + total_address_count.write(&mut current_node_delta_serialization).unwrap(); + current_node_delta_serialization.append(&mut address_serialization); } if node_delta.has_feature_set_changed {