Skip to main content

Module post_bundle_feedback_healing

Module post_bundle_feedback_healing 

Source
Expand description

§Peer-to-peer reconciliation of post-bundle feedback

Analogue of crate::client::post_bundle::post_bundle_healing for the feedback layer. After a fetch has pulled feedback from several peers, this module merges them into a best-known view and spawns background HealPostBundleFeedbackV1 RPCs to each peer whose copy is missing reactions or has weaker per-client signed entries. No two-phase token is needed for feedback because the payload is small and fully self-describing.

Functions§

heal_post_bundle_feedbacks
Spawns a background task that sends each peer the feedbacks it is missing relative to merged (the pre-computed union of all peer bundles). Does nothing if there are fewer than 2 bundles or merged feedbacks are empty.