marconi-1.1.0.0
Safe HaskellNone
LanguageHaskell2010

Marconi.Indexers

Synopsis

Documentation

data Coordinator Source #

The way we synchronise channel consumption is by waiting on a QSemN for each of the spawn indexers to finish processing the current event.

The channel is used to transmit the next event to the listening indexers. Note that even if the channel is unbound it will actually only ever hold one event because it will be blocked until the processing of the event finishes on all indexers.

The indexer count is where we save the number of running indexers so we know for how many we are waiting.

isInTargetTxOut Source #

Arguments

:: TargetAddresses

non empty list of target address

-> TxOut CtxTx era

a cardano transaction out that contains an address

-> Bool 

does the transaction contain a targetAddress

utxoWorker Source #

Arguments

:: (UtxoIndex -> IO UtxoIndex)

CPS function used in the queryApi thread, needs to be non-blocking

-> Maybe TargetAddresses

Target addresses to filter for

-> Worker 

newtype UtxoQueryTMVar Source #

Constructors

UtxoQueryTMVar 

Fields