feat(core): WIRE_VERSION byte on every frame

This commit is contained in:
2026-10-22 08:44:09 -07:00
parent 9d4ed7db24
commit 99036514c2
6 changed files with 217 additions and 50 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ use crate::{
use heapless::Vec;
/// Worst-case bytes a [`Frame::Summary`] adds around its bloom bits: the
/// variant tag (1), `from` (16), `salt` as a varint (up to 5), and the bits
/// length as a varint (up to 2).
const SUMMARY_OVERHEAD: usize = 24;
/// `WIRE_VERSION` byte (1), the variant tag (1), `from` (16), `salt` as a
/// varint (up to 5), and the bits length as a varint (up to 2).
const SUMMARY_OVERHEAD: usize = 25;
/// A fragmented observation part-way through transmission to one peer.
///