cardano-ledger-byron-0.1.0.0: The blockchain layer of Cardano during the Byron era
Safe Haskell None
Language Haskell2010

Cardano.Chain.ValidationMode

Synopsis

Documentation

fromBlockValidationMode :: BlockValidationMode -> ValidationMode 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.