Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data UseBootstrapPeers Source #
Instances
requiresBootstrapPeers ∷ UseBootstrapPeers → LedgerStateJudgement → Bool Source #
Determines if the system is in a sensitive state based on bootstrap peer usage and ledger state.
- When bootstrap peers are not in use, the system is considered to never be in a sensitive state.
- When bootstrap peers are in use and the ledger is in
YoungEnough
state, the system is not in a sensitive state. - When bootstrap peers are in use and the ledger is in
TooOld
state, the system is considered to be in a sensitive state.
isNodeAbleToMakeProgress ∷ UseBootstrapPeers → LedgerStateJudgement → Bool → Bool Source #
A node is able to make progress either if it isn't in a sensitive state _or_ if it is in a sensitive state and has reached a clean state from which it now only uses trustable peers