Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ImportException Source #
PrevBlockNotBest | |
Orphan | |
UnexpectedCoinbase | |
BestBlockNotFound | |
BlockNotBest | |
TxNotFound | |
DoubleSpend | |
TxConfirmed | |
InsufficientFunds | |
DuplicatePrevOutput | |
TxSpent |
Instances
Eq ImportException Source # | |
Defined in Haskoin.Store.Logic (==) :: ImportException -> ImportException -> Bool # (/=) :: ImportException -> ImportException -> Bool # | |
Ord ImportException Source # | |
Defined in Haskoin.Store.Logic compare :: ImportException -> ImportException -> Ordering # (<) :: ImportException -> ImportException -> Bool # (<=) :: ImportException -> ImportException -> Bool # (>) :: ImportException -> ImportException -> Bool # (>=) :: ImportException -> ImportException -> Bool # max :: ImportException -> ImportException -> ImportException # min :: ImportException -> ImportException -> ImportException # | |
Show ImportException Source # | |
Defined in Haskoin.Store.Logic showsPrec :: Int -> ImportException -> ShowS # show :: ImportException -> String # showList :: [ImportException] -> ShowS # | |
Exception ImportException Source # | |
Defined in Haskoin.Store.Logic |
type MonadImport m = (MonadError ImportException m, MonadLoggerIO m, StoreReadBase m, StoreWrite m) Source #
initBest :: MonadImport m => m () Source #
revertBlock :: MonadImport m => BlockHash -> m () Source #
importBlock :: MonadImport m => Block -> BlockNode -> m () Source #
newMempoolTx :: MonadImport m => Tx -> UnixTime -> m Bool Source #
deleteUnconfirmedTx :: MonadImport m => Bool -> TxHash -> m () Source #