Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions node/network/bridge/src/validator_discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ impl<N: Network, AD: AuthorityDiscovery> Service<N, AD> {
}
}

// in case of key rotation, a new `AuthorityId` might point to an old `PeerId`
// we don't want to disconnect from that `PeerId` in that case
multiaddr_to_remove.retain(|a| !multiaddr_to_add.contains(a));

// ask the network to connect to these nodes and not disconnect
// from them until removed from the set
if let Err(e) = network_service.add_to_peers_set(
Expand Down