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

Test.Ouroboros.Network.PeerSelection.Instances

Synopsis

Documentation

newtype PeerAddr Source #

Simple address representation for the tests

Constructors

PeerAddr Int 

Instances

Instances details
Arbitrary PeerAddr Source #

We mostly avoid using this instance since we need careful control over the peer addrs, e.g. to make graphs work, and sets overlap etc. But it's here for the few cases that need it, and it is used for (lack-of) shrinking.

Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Show PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Eq PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

Ord PeerAddr Source # 
Instance details

Defined in Test.Ouroboros.Network.PeerSelection.Instances

genIPv4 :: Gen IP Source #

genIPv6 :: Gen IP Source #

Orphan instances

Arbitrary PeerSelectionTargets Source # 
Instance details

Arbitrary IsLedgerPeer Source # 
Instance details

Methods

arbitrary :: Gen IsLedgerPeer

shrink :: IsLedgerPeer -> [IsLedgerPeer]

Arbitrary PeerAdvertise Source # 
Instance details

Arbitrary PeerSharing Source # 
Instance details

Methods

arbitrary :: Gen PeerSharing

shrink :: PeerSharing -> [PeerSharing]

Arbitrary DomainAccessPoint Source # 
Instance details

Methods

arbitrary :: Gen DomainAccessPoint

shrink :: DomainAccessPoint -> [DomainAccessPoint]

Arbitrary RelayAccessPoint Source # 
Instance details