Core Index Mismatch in Commitments and Descriptor #7107
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Description
A bug was identified during the implementation of the malus collator using undying collator (PR #6924). The following error message was observed from the
collation-generation
subsystem when the normal (non-malus) undying collator attempted to generate and submit collations to 3 assigned cores:ERROR tokio-runtime-worker parachain::collation-generation: Failed to construct and distribute collation: V2 core index check failed: The core index in commitments doesn't match the one in descriptor.
The issue arises because the current code provides core indexes sequentially from the claim queue for the descriptor, while the commitments can include core indexes determined by the parachain using a core selector from UMP signals, potentially in a different sequence. This mismatch leads to the observed error.
Steps to Reproduce
Why was this not detected earlier?
collator_fn
have not been tested much, as they should not be used in production.Proposed Solution
CandidateDescriptorV2
to get the core index from commitments (via UMP signals) instead of using sequential indexes got from the claim queue;The text was updated successfully, but these errors were encountered: