referrerpolicy=no-referrer-when-downgrade

build_maintenance_task

Function build_maintenance_task 

Source
pub fn build_maintenance_task<Block, C, P>(
    client: &Arc<C>,
    tx_pool: &Arc<P>,
    pool: Arc<HopDataPool>,
    buffer_secs: u64,
    check_interval_secs: u64,
) -> HopMaintenanceTask
where Block: BlockT, C: HeaderBackend<Block> + ProvideRuntimeApi<Block> + CallApiAt<Block> + Send + Sync + 'static, P: LocalTransactionPool<Block = Block> + 'static,
Expand description

Build a HopMaintenanceTask wired to the node’s client and transaction pool.

Detects HopRuntimeApi support at startup (see try_build_promoter) and captures a best-block closure over client so callers only need to spawn the returned task on their task manager.