pub async fn syncer<CN>(
context_svc: BlockchainContextService,
our_chain: CN,
clearnet_interface: NetworkInterface<ClearNet>,
incoming_block_batch_tx: Sender<BlockBatch>,
stop_current_block_downloader: Arc<Notify>,
block_downloader_config: BlockDownloaderConfig,
) -> Result<(), SyncerError>where
CN: Service<ChainSvcRequest, Response = ChainSvcResponse, Error = BoxError> + Clone + Send + 'static,
CN::Future: Send + 'static,
Expand description
The syncer tasks that makes sure we are fully synchronised with our connected peers.