aboutsummaryrefslogtreecommitdiffstats
path: root/src/state
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-05 03:40:09 +0100
committertv <tv@krebsco.de>2026-11-05 03:40:09 +0100
commit11d098477cfc76da0bc4385635e4c4b7124a9259 (patch)
tree941640ead4d8e80b291780f708a56f8be53a0fe1 /src/state
parent9f9015a35b591043ebaf6e306f967ffc62cd07f5 (diff)
announce only to those behind
Diffstat (limited to 'src/state')
-rw-r--r--src/state/peer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs
index a84e069..231f320 100644
--- a/src/state/peer.rs
+++ b/src/state/peer.rs
@@ -150,8 +150,8 @@ pub(crate) struct PeerState {
/// How many heads its most recent keepalive listed (None if it sent a digest).
pub(crate) reported_heads: Option<usize>,
/// The heads its most recent STATUS or STATUS_REPLY carried (an announcement's too),
- /// with its epoch: once they are ours, it has every change we would announce to it
- /// (`swarm::relay`).
+ /// or its latest sync message, with its epoch: what it said it has. Once those cover
+ /// ours, it has every change we would announce to it (`swarm::relay`).
pub(crate) last_heads: Option<(transport::Epoch, transport::HeadsSummary)>,
/// How long its sync messages took to come (`swarm::hop`).
pub(crate) hop_delays: crate::swarm::hop::HopDelays,