Skip to main content

start_exit_incoming_ack_pipeline

Function start_exit_incoming_ack_pipeline 

Source
async fn start_exit_incoming_ack_pipeline<S, AckIn, A, SEvt>(
    ack_incoming: AckIn,
    exit_proc: A,
    recovered_ssa: SEvt,
    concurrency: usize,
)
where S: PixSpec, AckIn: Stream + Send + 'static, AckIn::Item: Into<WithContext<(OffchainPublicKey, Vec<Acknowledgement>)>> + Send, A: ExitAcknowledgementShareProcessor<S> + Clone + Send + Sync + 'static, SEvt: Sink<ShareResolution<S::Pseudonym, S::AddressPrivateKey>> + Clone + Unpin + Send + 'static, SEvt::Error: Error,
Expand description

Processes incoming acknowledgements using the ExitAcknowledgementShareProcessor, sending all recovered SSAs to the given recovered_ssa sink.

Used by Exit nodes: they do not receive any incoming tickets but still use the incoming acknowledgements to recover SSAs and forward them to the recovered_ssa sink.