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,
) -> HopMaintenanceTaskwhere
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.