Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
fix: ignore Sync messages not for our section
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Mar 3, 2021
1 parent d482dab commit 6d90fcf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/routing/approved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,12 @@ impl Approved {
// Skip validation of these. We will validate them inside the bootstrap task.
return Ok(MessageStatus::Useful);
}
Variant::Sync { section, .. } => {
// Ignore `Sync` not for our section.
if !section.prefix().matches(&self.node.name()) {
return Ok(MessageStatus::Useless);
}
}
Variant::Vote {
content,
proof_share,
Expand All @@ -620,8 +626,7 @@ impl Approved {
}
}
}
Variant::Sync { .. }
| Variant::Relocate(_)
Variant::Relocate(_)
| Variant::BouncedUntrustedMessage(_)
| Variant::BouncedUnknownMessage { .. }
| Variant::DKGMessage { .. }
Expand Down

0 comments on commit 6d90fcf

Please sign in to comment.