The block unpacker module accepts block bodies and unpacks them into transactions
The following is the default configuration - if the defaults are OK, everything except the section header can be left out.
[module.block-unpacker]
# Message topics
subscribe-topic = "cardano.block.body"
publish-topic = "cardano.txs"
The block unpacker subscribes for BlockBodyMessages on
cardano.block.body
(see the Upstream Chain
Fetcher module for details). It unpacks
this into transactions, which it publishes as a single RawTxsMessage
on cardano.txs
, containing the block information and an ordered vector of
raw transaction CBOR. This ensure the transactions are kept in order.
pub struct RawTxsMessage {
/// Block info
pub block: BlockInfo,
/// Raw Data for each transaction
pub txs: Vec<Vec<u8>>,
}