mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
gossip: do not try to connect if we are not validators (#2786)
* gossip: do not issue a connection request if we are not a validator * guide updates * use all relevant authorities when issuing a request * use AuthorityDiscoveryApi instead * update comments to the status quo
This commit is contained in:
@@ -115,7 +115,8 @@ pub async fn connect_to_validators_in_session<Context: SubsystemContext>(
|
||||
})
|
||||
}
|
||||
|
||||
async fn connect_to_authorities<Context: SubsystemContext>(
|
||||
/// A helper function for making a `ConnectToValidators` request.
|
||||
pub async fn connect_to_authorities<Context: SubsystemContext>(
|
||||
ctx: &mut Context,
|
||||
validator_ids: Vec<AuthorityDiscoveryId>,
|
||||
peer_set: PeerSet,
|
||||
|
||||
Reference in New Issue
Block a user