Skip to content

Commit

Permalink
Merge pull request ProvableHQ#1158 from niklaslong/peering-rules
Browse files Browse the repository at this point in the history
Revert "ref: temporarily relax peering rules for sync providers"
  • Loading branch information
ljedrz authored Oct 14, 2021
2 parents f5d62ec + 93dae9e commit 1ad627d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions network/src/peers/peers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,7 @@ impl Node {

// Beacons apply less strict filtering rules if the set is empty by falling back on
// connected peers that may or may not be routable...
let peers = if (self.is_of_type(NodeType::SyncProvider) || self.is_of_type(NodeType::Beacon))
&& strictly_filtered_peers.is_empty()
{
let peers = if self.is_of_type(NodeType::Beacon) && strictly_filtered_peers.is_empty() {
let filtered_peers: Vec<SocketAddr> = connected_peers
.iter()
.filter(|peer| basic_filter(peer))
Expand Down

0 comments on commit 1ad627d

Please sign in to comment.