cuprated::blockchain::manager

Function init_blockchain_manager

Source
pub async fn init_blockchain_manager(
    clearnet_interface: NetworkInterface<ClearNet>,
    blockchain_write_handle: BlockchainWriteHandle,
    blockchain_read_handle: BlockchainReadHandle,
    txpool_write_handle: TxpoolWriteHandle,
    blockchain_context_service: BlockChainContextService,
    block_verifier_service: BlockVerifierService<BlockChainContextService, TxVerifierService<MapErr<BlockchainReadHandle, fn(_: RuntimeError) -> BoxError>>, MapErr<BlockchainReadHandle, fn(_: RuntimeError) -> BoxError>>,
    block_downloader_config: BlockDownloaderConfig,
)
Expand description

Initialize the blockchain manager.

This function sets up the BlockchainManager and the syncer so that the functions in interface can be called.