Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Various types related to ledger peers. This module is re-exported from Ouroboros.Network.PeerSelection.LedgerPeers.
Synopsis
- newtype PoolStake = PoolStake {}
- newtype AccPoolStake = AccPoolStake {}
- data IsBigLedgerPeer
- data LedgerStateJudgement
- data LedgerPeersConsensusInterface m = LedgerPeersConsensusInterface {}
- data UseLedgerPeers
- data AfterSlot
- isLedgerPeersEnabled ∷ UseLedgerPeers → Bool
Documentation
The relative stake of a stakepool in relation to the total amount staked. A value in the [0, 1] range.
newtype AccPoolStake Source #
The accumulated relative stake of a stake pool, like PoolStake but it also includes the relative stake of all preceding pools. A value in the range [0, 1].
Instances
Num AccPoolStake Source # | |
Fractional AccPoolStake Source # | |
Show AccPoolStake Source # | |
Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type showsPrec ∷ Int → AccPoolStake → ShowS # show ∷ AccPoolStake → String # showList ∷ [AccPoolStake] → ShowS # | |
Eq AccPoolStake Source # | |
Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type (==) ∷ AccPoolStake → AccPoolStake → Bool # (/=) ∷ AccPoolStake → AccPoolStake → Bool # | |
Ord AccPoolStake Source # | |
Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type compare ∷ AccPoolStake → AccPoolStake → Ordering # (<) ∷ AccPoolStake → AccPoolStake → Bool # (<=) ∷ AccPoolStake → AccPoolStake → Bool # (>) ∷ AccPoolStake → AccPoolStake → Bool # (>=) ∷ AccPoolStake → AccPoolStake → Bool # max ∷ AccPoolStake → AccPoolStake → AccPoolStake # min ∷ AccPoolStake → AccPoolStake → AccPoolStake # |
data IsBigLedgerPeer Source #
A boolean like type. Big ledger peers are the largest SPOs which control 90% of staked stake.
Note that IsBigLedgerPeer
indicates a role that peer plays in the eclipse
evasion, e.g. that a peer was explicitly selected as a big ledger peer, e.g.
IsNotBigLedgerPeer
does not necessarily mean that the peer isn't a big
ledger peer. This is because we select root peers from all ledger peers
(including big ones).
Instances
data LedgerStateJudgement Source #
Wether the node is caught up or fell too far behind the chain
Instances
data LedgerPeersConsensusInterface m Source #
Return ledger state information and ledger peers.
data UseLedgerPeers Source #
Only use the ledger after the given slot number.
Instances
Only use the ledger after the given slot number.
Instances
Generic AfterSlot Source # | |
Show AfterSlot Source # | |
Eq AfterSlot Source # | |
NoThunks AfterSlot Source # | |
type Rep AfterSlot Source # | |
Defined in Ouroboros.Network.PeerSelection.LedgerPeers.Type type Rep AfterSlot = D1 ('MetaData "AfterSlot" "Ouroboros.Network.PeerSelection.LedgerPeers.Type" "ouroboros-network-api-0.7.2.0-inplace" 'False) (C1 ('MetaCons "Always" 'PrefixI 'False) (U1 ∷ Type → Type) :+: C1 ('MetaCons "After" 'PrefixI 'False) (S1 ('MetaSel ('Nothing ∷ Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SlotNo))) |