Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- increaseDepth :: TxStatus -> TxStatus
- initialStatus :: OnChainTx -> TxStatus
- transactionStatus :: BlockNumber -> TxIdState -> TxId -> Either TxStatusFailure TxStatus
- fromTx :: BlockNumber -> ChainIndexTx -> TxIdState
- fromBlock :: Tip -> [ChainIndexTx] -> UtxoState TxIdState
- rollback :: Point -> UtxoIndex TxIdState -> Either RollbackFailed (RollbackResult TxIdState)
- chainConstant :: Depth
- dropOlder :: Monoid a => BlockNumber -> UtxoIndex a -> UtxoIndex a
Documentation
increaseDepth :: TxStatus -> TxStatus Source #
Increase the depth of a tentatively confirmed transaction
initialStatus :: OnChainTx -> TxStatus Source #
The TxStatus
of a transaction right after it was added to the chain
transactionStatus :: BlockNumber -> TxIdState -> TxId -> Either TxStatusFailure TxStatus Source #
Given the current block, compute the status for the given transaction by checking to see if it has been deleted.
fromTx :: BlockNumber -> ChainIndexTx -> TxIdState Source #
rollback :: Point -> UtxoIndex TxIdState -> Either RollbackFailed (RollbackResult TxIdState) Source #
chainConstant :: Depth Source #
The depth (in blocks) after which a transaction cannot be rolled back anymore
dropOlder :: Monoid a => BlockNumber -> UtxoIndex a -> UtxoIndex a Source #
Drop everything older than BlockNumber
in the index.