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

Test.Ouroboros.Network.LedgerPeers

Synopsis

Documentation

tests :: TestTree Source #

newtype ArbitraryPortNumber Source #

Constructors

ArbitraryPortNumber 

Fields

Instances

Instances details
Arbitrary ArbitraryPortNumber Source # 
Instance details

Defined in Test.Ouroboros.Network.LedgerPeers

data StakePool Source #

Instances

Instances details
Arbitrary StakePool Source # 
Instance details

Defined in Test.Ouroboros.Network.LedgerPeers

Show StakePool Source # 
Instance details

Defined in Test.Ouroboros.Network.LedgerPeers

newtype LedgerPools Source #

Constructors

LedgerPools 

Fields

Instances

Instances details
Arbitrary LedgerPools Source # 
Instance details

Defined in Test.Ouroboros.Network.LedgerPeers

Show LedgerPools Source # 
Instance details

Defined in Test.Ouroboros.Network.LedgerPeers

prop_pick100 Source #

Arguments

:: Word16 
-> NonNegative Int

number of pools with 0 stake

-> ArbLedgerPeersKind 
-> MockRoots 
-> DelayAndTimeoutScripts 
-> Property 

A pool with 100% stake should always be picked.

prop_pick :: LedgerPools -> ArbLedgerPeersKind -> Word16 -> Word16 -> MockRoots -> Script DNSLookupDelay -> Property Source #

Verify that given at least one peer we manage to pick count peers.

evaluateTrace :: SimTrace a -> IO (SimResult a) Source #

verboseTracer :: forall a m. (MonadAsync m, MonadSay m, MonadMonotonicTime m, Show a) => Tracer m a Source #

threadAndTimeTracer :: forall a m. (MonadAsync m, MonadMonotonicTime m) => Tracer m (WithThreadAndTime a) -> Tracer m a Source #