-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime: unify and harden UMP signal checks in check_core_index #6179
Comments
We're already doing
|
I opened another issue for refactoring the runtime code so that we only do candidate validation during filtering and remove this code from inclusion: #6186 It makes sense however to harden the core index check as you suggest here: #6178 (comment) |
yup, sounds good to me. As you say, we already call |
Currently in
para_inherent
we do some filtering of candidates which includes checking if the core index is correct, but we do not check the count of UMP signals or format. If these are invalid we assume the parachain cannot use elastic scaling and we check the core index in the descriptor.We need to move the UMP checks from
verify_backed_candidate
to the filtering stage inpara_inherent
so old nodes that don't check the number of UMP messages offchain filter candidates and don't panic during block production if a parachain sends a malformed signal.I am not an expert on that code but it appears to me that we can move the
verify_backed_candidate
as last step in filtering stage just to ensure that filtering bugs on the node don't make the author panic.The text was updated successfully, but these errors were encountered: