From 4e53e152f83ecb88fa162e0a18e6832df5a38fef Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 05:38:20 +0100 Subject: round trips in trees --- src/transport/wire.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/transport/wire.rs') diff --git a/src/transport/wire.rs b/src/transport/wire.rs index 580712e..769545c 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 = 34; +pub(crate) const VERSION: u8 = 35; /// What the second byte of a payload says. fn tag(kind: MessageKind) -> u8 { @@ -384,6 +384,7 @@ pub(crate) fn samples() -> Vec { leaving: false, announcing: false, reaches: None, + round_trips: None, }; let proof = IdentityProof { key: [8; 32], @@ -570,6 +571,7 @@ mod tests { leaving: false, announcing: false, reaches: None, + round_trips: None, }; let decoded = decode(&encode(&ParsedMessage::StatusReply(status.clone())).unwrap()).unwrap(); @@ -595,6 +597,7 @@ mod tests { leaving: false, announcing: false, reaches: None, + round_trips: None, }; assert!(decode(&encode(&ParsedMessage::Status(status)).unwrap()).is_err()); } @@ -695,10 +698,11 @@ mod tests { leaving: false, announcing: true, reaches: None, + round_trips: None, }); assert_eq!( hex(&encode(&status).unwrap()), - format!("{v}03989290c400{epoch_hex}01c3c2c2c3c0") + format!("{v}03999290c400{epoch_hex}01c3c2c2c3c0c0") ); let who = ParsedMessage::Who(IdentityProof { -- cgit v1.3.1