{-# LANGUAGE FlexibleContexts #-}
module Cardano.Chain.Block.ValidationMode
( BlockValidationMode (..),
toTxValidationMode,
)
where
import Cardano.Chain.UTxO.ValidationMode (TxValidationMode (..))
import Cardano.Prelude
data BlockValidationMode
=
BlockValidation
|
NoBlockValidation
deriving (BlockValidationMode -> BlockValidationMode -> Bool
(BlockValidationMode -> BlockValidationMode -> Bool)
-> (BlockValidationMode -> BlockValidationMode -> Bool)
-> Eq BlockValidationMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BlockValidationMode -> BlockValidationMode -> Bool
$c/= :: BlockValidationMode -> BlockValidationMode -> Bool
== :: BlockValidationMode -> BlockValidationMode -> Bool
$c== :: BlockValidationMode -> BlockValidationMode -> Bool
Eq, Int -> BlockValidationMode -> ShowS
[BlockValidationMode] -> ShowS
BlockValidationMode -> String
(Int -> BlockValidationMode -> ShowS)
-> (BlockValidationMode -> String)
-> ([BlockValidationMode] -> ShowS)
-> Show BlockValidationMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BlockValidationMode] -> ShowS
$cshowList :: [BlockValidationMode] -> ShowS
show :: BlockValidationMode -> String
$cshow :: BlockValidationMode -> String
showsPrec :: Int -> BlockValidationMode -> ShowS
$cshowsPrec :: Int -> BlockValidationMode -> ShowS
Show)
toTxValidationMode :: BlockValidationMode -> TxValidationMode
toTxValidationMode :: BlockValidationMode -> TxValidationMode
toTxValidationMode BlockValidationMode
BlockValidation = TxValidationMode
TxValidation
toTxValidationMode BlockValidationMode
NoBlockValidation = TxValidationMode
NoTxValidation