Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Intended for qualified import
import Ouroboros.Consensus.Fragment.ValidatedDiff (ValidatedChainDiff (..)) import qualified Ouroboros.Consensus.Fragment.ValidatedDiff as ValidatedDiff
Synopsis
- data ValidatedChainDiff b l where
- pattern ValidatedChainDiff ∷ ChainDiff b → l → ValidatedChainDiff b l
- getChainDiff ∷ ValidatedChainDiff b l → ChainDiff b
- getLedger ∷ ValidatedChainDiff b l → l
- new ∷ ∀ b l. (GetTip l, HasHeader b, HeaderHash l ~ HeaderHash b, HasCallStack) ⇒ ChainDiff b → l → ValidatedChainDiff b l
- rollbackExceedsSuffix ∷ HasHeader b ⇒ ValidatedChainDiff b l → Bool
- toValidatedFragment ∷ (GetTip l, HasHeader b, HeaderHash l ~ HeaderHash b, HasCallStack) ⇒ ValidatedChainDiff b l → ValidatedFragment b l
Documentation
data ValidatedChainDiff b l where Source #
A ChainDiff
along with the ledger state after validation.
INVARIANT:
getTip chainDiff == ledgerTipPoint ledger
pattern ValidatedChainDiff ∷ ChainDiff b → l → ValidatedChainDiff b l | Allow for pattern matching on a |
getChainDiff ∷ ValidatedChainDiff b l → ChainDiff b Source #
getLedger ∷ ValidatedChainDiff b l → l Source #
new ∷ ∀ b l. (GetTip l, HasHeader b, HeaderHash l ~ HeaderHash b, HasCallStack) ⇒ ChainDiff b → l → ValidatedChainDiff b l Source #
rollbackExceedsSuffix ∷ HasHeader b ⇒ ValidatedChainDiff b l → Bool Source #
toValidatedFragment ∷ (GetTip l, HasHeader b, HeaderHash l ~ HeaderHash b, HasCallStack) ⇒ ValidatedChainDiff b l → ValidatedFragment b l Source #