Function run

Source
pub fn run(
    conn_pool: ConnectionPool,
    conf: RunConfig,
    contract_registry: ContentAddress,
    program_registry: ContentAddress,
    block_notify: BlockTx,
) -> Result<Handle, CriticalError>
Expand description

Optionally run the relayer and validation stream.

Relayer will sync blocks from the node API blocks stream to node database and notify validation stream of new blocks via the shared watch channel.

Returns a Handle that can be used to close the streams. The streams will continue to run until the handle is dropped.