mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 13:21:10 +00:00
Check that the validation code matches the parachain code (#3433)
This introduces a check to ensure that the parachain code matches the validation code stored in the relay chain state. If not, it will print a warning. This should be mainly useful for parachain builders to make sure they have setup everything correctly.
This commit is contained in:
@@ -1887,18 +1887,20 @@ async fn background_validate_and_make_available<Context>(
|
||||
if rp_state.awaiting_validation.insert(candidate_hash) {
|
||||
// spawn background task.
|
||||
let bg = async move {
|
||||
if let Err(e) = validate_and_make_available(params).await {
|
||||
if let Error::BackgroundValidationMpsc(error) = e {
|
||||
if let Err(error) = validate_and_make_available(params).await {
|
||||
if let Error::BackgroundValidationMpsc(error) = error {
|
||||
gum::debug!(
|
||||
target: LOG_TARGET,
|
||||
?candidate_hash,
|
||||
?error,
|
||||
"Mpsc background validation mpsc died during validation- leaf no longer active?"
|
||||
);
|
||||
} else {
|
||||
gum::error!(
|
||||
target: LOG_TARGET,
|
||||
"Failed to validate and make available: {:?}",
|
||||
e
|
||||
?candidate_hash,
|
||||
?error,
|
||||
"Failed to validate and make available",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user