From 41724eaa13b06ec9ea77360b4cd41024d2ba6322 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Fri, 7 Jun 2024 11:15:06 -0700 Subject: [PATCH] Serialize removal of all socket addresses in snapshots. --- src/lib.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 { -- 2.39.5