async fn add_initial_peers<S>(
config: Config,
outbound_connector: S,
peerset_tx: Sender<(PeerSocketAddr, Client)>,
address_book_updater: Sender<MetaAddrChange>,
) -> Result<ActiveConnectionCounter, BoxError>where
S: Service<OutboundConnectorRequest, Response = (PeerSocketAddr, Client), Error = BoxError> + Clone + Send + 'static,
S::Future: Send + 'static,
Expand description
Use the provided outbound_connector
to connect to the configured DNS seeder and
disk cache initial peers, then send the resulting peer connections over peerset_tx
.
Also sends every initial peer address to the address_book_updater
.