This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
dispute-coordinator
sometimes fails importing dispute votes on startup due to missing CandidateReceipt
#7009
Labels
T5-parachains_protocol
This PR/Issue is related to Parachains features and protocol changes.
While testing disputes on versi I stumbled upon the following error:
After some debugging I discovered that:
dispute-coordinator
relies onCandidateReceipt
being available in the DB.dispute-distribution
and (2) the backing vote is scraped onchain.The reason for (1) is that
dispute-coordinator
was still waiting for a leaf and ignored the import fromdispute-distribution
. This is confirmed by:The reason for (2) is that backing votes (which provide the
CandidateReceipt
) are not scraped beyond finality (as pointed by @eskimor).The remedy is to adjust the oinchain scraper not to prune 10 blocks into finality, but also scrape ten blocks beyond it. This will not fully resolve the issue but will make it almost negligible.
The text was updated successfully, but these errors were encountered: