pub fn start_dandelion_pool_manager<P, R, Tx, TxId, PeerId>(
buffer_size: usize,
dandelion_router: R,
backing_pool: P,
config: DandelionConfig,
) -> DandelionPoolService<Tx, TxId, PeerId>where
Tx: Clone + Send + 'static,
TxId: Hash + Eq + Clone + Send + 'static,
PeerId: Hash + Eq + Clone + Send + 'static,
P: Service<TxStoreRequest<TxId>, Response = TxStoreResponse<Tx>, Error = BoxError> + Send + 'static,
P::Future: Send + 'static,
R: Service<DandelionRouteReq<Tx, PeerId>, Response = State, Error = DandelionRouterError> + Send + 'static,
R::Future: Send + 'static,Expand description
Start the DandelionPoolManager.
This function spawns the DandelionPoolManager and returns DandelionPoolService which can be used to send
requests to the pool.
§Args
buffer_sizeis the size of the channel’s buffer between theDandelionPoolServiceandDandelionPoolManager.dandelion_routeris the router service, kept generic instead ofDandelionRouterto allow user to customise routing functionality.backing_poolis the backing transaction storage serviceconfigisDandelionConfig.