Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ImportException Source #
PrevBlockNotBest | |
Orphan | |
UnexpectedCoinbase | |
BestBlockNotFound | |
BlockNotBest | |
TxNotFound | |
DoubleSpend | |
TxConfirmed | |
InsufficientFunds | |
DuplicatePrevOutput | |
TxSpent |
Instances
Exception ImportException Source # | |
Defined in Haskoin.Store.Logic | |
Show ImportException Source # | |
Defined in Haskoin.Store.Logic showsPrec :: Int -> ImportException -> ShowS # show :: ImportException -> String # showList :: [ImportException] -> ShowS # | |
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 # |
type MonadImport (m :: Type -> Type) = (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 (BlockData, [TxData]) Source #
newMempoolTx :: MonadImport m => Tx -> UnixTime -> m Bool Source #
deleteUnconfirmedTx :: MonadImport m => Bool -> TxHash -> m () Source #