ouroboros-network:sim-tests-lib
Safe HaskellNone
LanguageHaskell2010

Test.Ouroboros.Network.PeerSelection.LocalRootPeers

Synopsis

Documentation

arbitraryLocalRootPeers :: Ord peeraddr => Set peeraddr -> Gen (LocalRootPeers peeraddr) Source #

restrictKeys :: Ord peeraddr => LocalRootPeers peeraddr -> Set peeraddr -> LocalRootPeers peeraddr Source #

data LocalRootPeers peeraddr #

Constructors

LocalRootPeers (Map peeraddr LocalRootConfig) [(HotValency, WarmValency, Set peeraddr)] 

Instances

Instances details
(Arbitrary peeraddr, Ord peeraddr) => Arbitrary (LocalRootPeers peeraddr) Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.LocalRootPeers

Methods

arbitrary :: Gen (LocalRootPeers peeraddr) #

shrink :: LocalRootPeers peeraddr -> [LocalRootPeers peeraddr] #

(Show peeraddr, Ord peeraddr) => Show (LocalRootPeers peeraddr) 
Instance details

Defined in Ouroboros.Network.PeerSelection.State.LocalRootPeers

Methods

showsPrec :: Int -> LocalRootPeers peeraddr -> ShowS #

show :: LocalRootPeers peeraddr -> String #

showList :: [LocalRootPeers peeraddr] -> ShowS #

Eq peeraddr => Eq (LocalRootPeers peeraddr) 
Instance details

Defined in Ouroboros.Network.PeerSelection.State.LocalRootPeers

Methods

(==) :: LocalRootPeers peeraddr -> LocalRootPeers peeraddr -> Bool #

(/=) :: LocalRootPeers peeraddr -> LocalRootPeers peeraddr -> Bool #

newtype HotValency #

Newtype wrapper representing hot valency value from local root group configuration

Constructors

HotValency 

Fields

newtype WarmValency #

Newtype wrapper representing warm valency value from local root group configuration

Constructors

WarmValency 

Fields

Orphan instances

Arbitrary HotValency Source # 
Instance details

Arbitrary WarmValency Source # 
Instance details

(Arbitrary peeraddr, Ord peeraddr) => Arbitrary (LocalRootPeers peeraddr) Source # 
Instance details

Methods

arbitrary :: Gen (LocalRootPeers peeraddr) #

shrink :: LocalRootPeers peeraddr -> [LocalRootPeers peeraddr] #