From 2b4359f23d20b14bae1896512f678d02b7f3c34c Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 03:25:00 +0100 Subject: introduce eager links --- 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 d3bf39d..40976ee 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 = 16; +pub(crate) const VERSION: u8 = 17; /// What the second byte of a payload says. fn tag(kind: MessageKind) -> u8 { @@ -370,6 +370,7 @@ pub(crate) fn samples() -> Vec { syncs_with_you: true, leaving: false, announcing: false, + eager: false, }; let proof = IdentityProof { key: [8; 32], @@ -551,6 +552,7 @@ mod tests { syncs_with_you: false, leaving: false, announcing: false, + eager: false, }; let decoded = decode(&encode(&ParsedMessage::StatusReply(status.clone())).unwrap()).unwrap(); @@ -575,6 +577,7 @@ mod tests { syncs_with_you: true, leaving: false, announcing: false, + eager: false, }; assert!(decode(&encode(&ParsedMessage::Status(status)).unwrap()).is_err()); } @@ -673,10 +676,11 @@ mod tests { syncs_with_you: false, leaving: false, announcing: true, + eager: false, }); assert_eq!( hex(&encode(&status).unwrap()), - format!("{v}03979290c400{epoch_hex}01c3c2c2c3") + format!("{v}03989290c400{epoch_hex}01c3c2c2c3c2") ); let who = ParsedMessage::Who(IdentityProof { -- cgit v1.3.1