From 8366f7c5de474753dbfbf88431917e79c15e5389 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 05:21:25 +0100 Subject: replace eager links by trees --- src/transport/wire.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/transport/wire.rs') diff --git a/src/transport/wire.rs b/src/transport/wire.rs index 8e3baa6..67f6de0 100644 --- a/src/transport/wire.rs +++ b/src/transport/wire.rs @@ -14,7 +14,7 @@ use super::{EncodedMessage, MessageKind, ParsedMessage}; /// The wire format's version, the first byte of every payload. Bump it with every change /// to a message type or a codec (`golden_bytes` fails then). -pub(crate) const VERSION: u8 = 22; +pub(crate) const VERSION: u8 = 23; /// What the second byte of a payload says. fn tag(kind: MessageKind) -> u8 { @@ -370,7 +370,6 @@ pub(crate) fn samples() -> Vec { syncs_with_you: true, leaving: false, announcing: false, - eager: false, reaches: None, }; let proof = IdentityProof { @@ -447,8 +446,6 @@ pub(crate) fn samples() -> Vec { down: false, rtt_us: Some(1500), dormant: false, - eager_to: true, - eager_from: false, others: vec![crate::transport::OtherPath { transport: "mycelium".into(), rtt_us: None, @@ -556,7 +553,6 @@ mod tests { syncs_with_you: false, leaving: false, announcing: false, - eager: false, reaches: None, }; let decoded = @@ -582,7 +578,6 @@ mod tests { syncs_with_you: true, leaving: false, announcing: false, - eager: false, reaches: None, }; assert!(decode(&encode(&ParsedMessage::Status(status)).unwrap()).is_err()); @@ -682,12 +677,11 @@ mod tests { syncs_with_you: false, leaving: false, announcing: true, - eager: false, reaches: None, }); assert_eq!( hex(&encode(&status).unwrap()), - format!("{v}03999290c400{epoch_hex}01c3c2c2c3c2c0") + format!("{v}03989290c400{epoch_hex}01c3c2c2c3c0") ); let who = ParsedMessage::Who(IdentityProof { -- cgit v1.3.1