-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds PublicRootPeers and BootstrapPeers
Adds `readLedgerStateJudgement` to `PeerSelectionActions` Adds `currentLedgerStateJudgement` to `PeerSelectionState` Fix PeerSelectionState miss-merge with #4575 Adjusts `PeerSelectionActions` `requestPublicRootPeers` function to provide either only ledger peers or bootstrap peers according to the current ledger state. The same for `requestBigLedgerPeers`. Adds LedgerStateJudgement to tests Moves BigLedgerPeers to PublicRootPeers Refactor `PeerSelectionActions` `requestPublicRootPeers` function
- Loading branch information
Showing
31 changed files
with
951 additions
and
488 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
11 changes: 11 additions & 0 deletions
11
ouroboros-network-api/src/Ouroboros/Network/PeerSelection/Bootstrap.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{-# LANGUAGE DeriveGeneric #-} | ||
|
||
module Ouroboros.Network.PeerSelection.Bootstrap (IsBootstrapPeer (..)) where | ||
|
||
import GHC.Generics (Generic) | ||
|
||
-- | Is Bootstrap peer flag distinguishes different kinds of public root peers | ||
-- | ||
data IsBootstrapPeer = IsNotBootstrapPeer | ||
| IsBootstrapPeer | ||
deriving (Eq, Show, Ord, Generic) |
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
Oops, something went wrong.