This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Disputes Runtime: Filter redundant and ancient votes from inherent MultiDisputeStatementSet #3472
Closed
Description
This is the final piece of the puzzle when it comes to wiring the inherent-data pipeline to actually produce ParasInherent
s that contain dispute votes.
The Provisioner gives all recent disputes to the runtime because of the expectation that disputes are rare. As such, it's very likely that votes are redundant or even correspond to outdated disputes or disputes that concluded long ago.
We need to implement the filter_multi_dispute_data
function in the disputes module to select only votes which are relevant and don't overfill spam slots. There should be a lot of code we can share between the actual import logic and the filtering logic. Maybe 2 different modes of the provide_multi_dispute_data
routine.