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

Ouroboros.Network.PeerSelection.EstablishedPeers

Synopsis

Documentation

data EstablishedPeers peeraddr peerconn Source #

Instances

Instances details
Functor (EstablishedPeers peeraddr) Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.EstablishedPeers

Methods

fmap ∷ (a → b) → EstablishedPeers peeraddr a → EstablishedPeers peeraddr b Source #

(<$) ∷ a → EstablishedPeers peeraddr b → EstablishedPeers peeraddr a Source #

(Show peeraddr, Show peerconn) ⇒ Show (EstablishedPeers peeraddr peerconn) Source # 
Instance details

Defined in Ouroboros.Network.PeerSelection.EstablishedPeers

Methods

showsPrecIntEstablishedPeers peeraddr peerconn → ShowS Source #

showEstablishedPeers peeraddr peerconn → String Source #

showList ∷ [EstablishedPeers peeraddr peerconn] → ShowS Source #

emptyEstablishedPeers peeraddr perconn Source #

toMapEstablishedPeers peeraddr peerconn → Map peeraddr peerconn Source #

O(1)

toSetEstablishedPeers peeraddr peerconn → Set peeraddr Source #

O(n)

readyPeersOrd peeraddr ⇒ EstablishedPeers peeraddr peerconn → Set peeraddr Source #

Map of established peers that are either active or ready to be promoted to active.

O(n log m), for n not-ready peers, and m established peers

sizeEstablishedPeers peeraddr peerconn → Int Source #

The number of established peers. The size of allPeers

O(1)

sizeReadyEstablishedPeers peeraddr peerconn → Int Source #

The number of ready peers. The size of readyPeers

O(1)

memberOrd peeraddr ⇒ peeraddr → EstablishedPeers peeraddr peerconn → Bool Source #

insertOrd peeraddr ⇒ peeraddr → peerconn → EstablishedPeers peeraddr peerconn → EstablishedPeers peeraddr peerconn Source #

Insert a peer into EstablishedPeers.

deleteOrd peeraddr ⇒ peeraddr → EstablishedPeers peeraddr peerconn → EstablishedPeers peeraddr peerconn Source #

deletePeersOrd peeraddr ⇒ Set peeraddr → EstablishedPeers peeraddr peerconn → EstablishedPeers peeraddr peerconn Source #

Bulk delete of peers from 'EstablishedPeers.

setCurrentTimeOrd peeraddr ⇒ Time → EstablishedPeers peeraddr peerconn → EstablishedPeers peeraddr peerconn Source #

minActivateTimeOrd peeraddr ⇒ EstablishedPeers peeraddr peerconn → Maybe Time Source #

setActivateTimeOrd peeraddr ⇒ Set peeraddr → Time → EstablishedPeers peeraddr peerconn → EstablishedPeers peeraddr peerconn Source #

invariantOrd peeraddr ⇒ EstablishedPeers peeraddr peerconn → Bool Source #