-
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
955 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
13 changes: 13 additions & 0 deletions
13
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,13 @@ | ||
{-# LANGUAGE DeriveGeneric #-} | ||
|
||
module Ouroboros.Network.PeerSelection.Bootstrap (IsBootstrapPeer (..)) where | ||
|
||
import Data.Aeson | ||
import Data.Bool (bool) | ||
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
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.