-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5081 from IntersectMBO/coot/peer-selection-exports
peer selection exports
- Loading branch information
Showing
44 changed files
with
130 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{-# LANGUAGE ExplicitNamespaces #-} | ||
|
||
module Ouroboros.Network.PeerSelection | ||
( module Governor | ||
, module PeerSelection | ||
, module PeerSelection.Types | ||
, module PeerSelection.PublicRootPeers | ||
, module PeerSelection.PeerStateActions | ||
, module PeerSelection.PeerSelectionActions | ||
, module PeerSelection.RelayAccessPoint | ||
, module PeerSelection.LedgerPeers | ||
, module PeerSelection.PeerMetrics | ||
, module PeerSelection.Churn | ||
, module PeerSelection.PeerAdvertise | ||
, module PeerSelection.PeerSharing | ||
) where | ||
|
||
import Ouroboros.Network.PeerSelection.Churn as PeerSelection.Churn | ||
-- Only essential `Governor` types. | ||
import Ouroboros.Network.PeerSelection.Governor as Governor | ||
(DebugPeerSelection (..), PeerSelectionActions, | ||
PeerSelectionInterfaces (..), PeerSelectionPolicy (..), | ||
PeerSelectionState, PeerSelectionTargets (..), PeerStateActions, | ||
PickPolicy) | ||
import Ouroboros.Network.PeerSelection.LedgerPeers as PeerSelection.LedgerPeers | ||
(AfterSlot (..), IsBigLedgerPeer (..), LedgerPeerSnapshot (..), | ||
LedgerPeers (..), LedgerPeersConsensusInterface (..), | ||
LedgerPeersKind (..), NumberOfPeers (..), TraceLedgerPeers (..), | ||
UseLedgerPeers (..), WithLedgerPeersArgs (..), withLedgerPeers) | ||
import Ouroboros.Network.PeerSelection.PeerAdvertise as PeerSelection.PeerAdvertise | ||
import Ouroboros.Network.PeerSelection.PeerMetric as PeerSelection.PeerMetrics | ||
(PeerMetrics, PeerMetricsConfiguration (..), ReportPeerMetrics (..), | ||
newPeerMetric, newPeerMetric', nullMetric, reportMetric) | ||
import Ouroboros.Network.PeerSelection.PeerSelectionActions as PeerSelection.PeerSelectionActions | ||
import Ouroboros.Network.PeerSelection.PeerSharing as PeerSelection.PeerSharing | ||
import Ouroboros.Network.PeerSelection.PeerStateActions as PeerSelection.PeerStateActions | ||
import Ouroboros.Network.PeerSelection.PublicRootPeers as PeerSelection.PublicRootPeers | ||
(PublicRootPeers) | ||
import Ouroboros.Network.PeerSelection.RelayAccessPoint as PeerSelection.RelayAccessPoint | ||
(DomainAccessPoint (..), IP (..), PortNumber, RelayAccessPoint (..)) | ||
import Ouroboros.Network.PeerSelection.Types as PeerSelection | ||
import Ouroboros.Network.PeerSelection.Types as PeerSelection.Types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 13 additions & 12 deletions
25
ouroboros-network/src/Ouroboros/Network/PeerSelection/RootPeersDNS.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
module Ouroboros.Network.PeerSelection.RootPeersDNS (PeerActionsDNS (..)) where | ||
module Ouroboros.Network.PeerSelection.RootPeersDNS | ||
( PeerActionsDNS (..) | ||
, module DNSActions | ||
, module DNSSemaphore | ||
, module LedgerPeers | ||
, module LocalRootPeers | ||
, module PublicRootPeers | ||
) where | ||
|
||
import Data.IP (IP) | ||
import Network.Socket (PortNumber) | ||
|
||
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSActions | ||
|
||
-- | Record of some parameters that are commonly used together | ||
-- | ||
data PeerActionsDNS peeraddr resolver exception m = PeerActionsDNS { | ||
paToPeerAddr :: IP -> PortNumber -> peeraddr, | ||
paDnsActions :: DNSActions resolver exception m | ||
} | ||
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSActions as DNSActions | ||
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSSemaphore as DNSSemaphore | ||
import Ouroboros.Network.PeerSelection.RootPeersDNS.LedgerPeers as LedgerPeers | ||
import Ouroboros.Network.PeerSelection.RootPeersDNS.LocalRootPeers as LocalRootPeers | ||
import Ouroboros.Network.PeerSelection.RootPeersDNS.PublicRootPeers as PublicRootPeers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.