ouroboros-network-0.16.1.0: A networking layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.PeerSelection.RootPeersDNS.PublicRootPeers

Synopsis

DNS based provider for public root peers

publicRootPeersProvider ∷ ∀ peerAddr resolver exception a m. (MonadThrow m, MonadAsync m, Exception exception, Ord peerAddr) ⇒ Tracer m TracePublicRootPeers → (IPPortNumber → peerAddr) → DNSSemaphore m → ResolvConfSTM m (Map RelayAccessPoint PeerAdvertise) → DNSActions resolver exception m → ((Int → m (Map peerAddr PeerAdvertise, DiffTime)) → m a) → m a Source #