Safe Haskell | None |
---|---|
Language | Haskell98 |
Build a table of unspent transactions outputs (the transactions are assumed to be valid!)
- data UnspentOutput = UnspentOutput {
- _unspentTxId :: !Hash256
- _unspentTxOut :: !Word32
- buildUnspentTable :: ChainTable -> TxLookup -> IO (Map UnspentOutput Amount)
Documentation
data UnspentOutput Source #
An unspent transaction output
UnspentOutput | |
|
buildUnspentTable :: ChainTable -> TxLookup -> IO (Map UnspentOutput Amount) Source #
Builds a table of unspent transactions outputs. Note that all transactions are assumed to be valid! So you have to check them before, to be safe.