Skip to content

Latest commit

 

History

History

block_unpacker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Block unpacker module

The block unpacker module accepts block bodies and unpacks them into transactions

Configuration

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"

Messages

The block unpacker subscribes for BlockBodyMessages on cardano.block.body (see the Mini-protocols module for details). It unpacks this into transactions, which it publishes as a single RawTxsMessage on cardano.txs, containing the slot number and an ordered vector of raw transaction CBOR. This ensure the transactions are kept in order.

pub struct RawTxsMessage {
    /// Slot number
    pub slot: u64,

    /// Raw Data for each transaction
    pub txs: Vec<Vec<u8>>,
}