cardano-ledger-byron-1.0.2.0: The blockchain layer of Cardano during the Byron era
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Chain.ValidationMode

Synopsis

Documentation

fromBlockValidationModeBlockValidationModeValidationMode Source #

Helper function which accepts a BlockValidationMode, constructs a sensible TxValidationMode based on that, and constructs a ValidationMode

whenBlockValidation ∷ (MonadError err m, MonadReader ValidationMode m) ⇒ m () → m () Source #

Perform an action only when in the BlockValidation mode. Otherwise, do nothing.

whenTxValidation ∷ (MonadError err m, MonadReader ValidationMode m) ⇒ m () → m () Source #

Perform an action only when in the TxValidation mode. Otherwise, do nothing.

unlessNoTxValidation ∷ (MonadError err m, MonadReader ValidationMode m) ⇒ m () → m () Source #

Perform an action unless in the NoTxValidation mode.