aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index 640754a..d794271 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -252,8 +252,6 @@ pub(crate) enum ParsedMessage {
NeighbourReply(NeighbourAnswer),
/// Tells the recipient we are neighbours no more (`swarm::hyparview`).
Disconnect(NeighbourAnswer),
- /// Signatures of changes, sent on their own (`swarm::signatures`).
- Signatures(SignaturesMessage),
/// Changes the sender refused, of those the recipient brought (`swarm::refusals`).
Refusals(RefusalsMessage),
}
@@ -273,17 +271,6 @@ pub(crate) struct RefusalsMessage {
pub(crate) changes: Vec<crate::document::ChangeHash>,
}
-/// SIGNATURES: signatures of changes no sync message took (`swarm::signatures`).
-#[derive(Debug, Clone, Serialize, Deserialize)]
-pub(crate) struct SignaturesMessage {
- #[serde(with = "crate::transport::wire::codec::epoch")]
- pub(crate) epoch: Epoch,
- /// See `SyncEnvelope::epoch_seq`.
- pub(crate) epoch_seq: u32,
- /// As `SyncEnvelope::signatures`.
- pub(crate) signatures: serde_bytes::ByteBuf,
-}
-
/// A node's proof that it holds the key of its node ID (`identity`), sending from its
/// transport address to the recipient's: a signature over both addresses
/// (`transport::identity::signed`). WHO and ME end at the identity layer; the rest of
@@ -429,7 +416,6 @@ pub(crate) enum MessageKind {
Neighbour,
NeighbourReply,
Disconnect,
- Signatures,
Refusals,
}
@@ -453,7 +439,6 @@ impl ParsedMessage {
ParsedMessage::Neighbour(_) => MessageKind::Neighbour,
ParsedMessage::NeighbourReply(_) => MessageKind::NeighbourReply,
ParsedMessage::Disconnect(_) => MessageKind::Disconnect,
- ParsedMessage::Signatures(_) => MessageKind::Signatures,
ParsedMessage::Refusals(_) => MessageKind::Refusals,
}
}
@@ -480,7 +465,6 @@ impl ParsedMessage {
ParsedMessage::NeighbourReply(answer) | ParsedMessage::Disconnect(answer) => {
Some((answer.epoch, answer.epoch_seq))
}
- ParsedMessage::Signatures(message) => Some((message.epoch, message.epoch_seq)),
ParsedMessage::Refusals(message) => Some((message.epoch, message.epoch_seq)),
ParsedMessage::Who(_)
| ParsedMessage::Me(_)