Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cumulus/pallets/parachain-system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,12 @@ pub mod pallet {
<UpgradeRestrictionSignal<T>>::kill();
let relay_upgrade_go_ahead = <UpgradeGoAhead<T>>::take();

let vfp = <ValidationData<T>>::get()
.expect("set_validation_data inherent needs to be present in every block!");
let vfp = <ValidationData<T>>::get().expect(
r"Missing required set_validation_data inherent. This inherent must be
present in every block. This error typically occurs when the set_validation_data
execution failed and was rejected by the block builder. Check earlier log entries
for the specific cause of the failure.",
);

LastRelayChainBlockNumber::<T>::put(vfp.relay_parent_number);

Expand Down
7 changes: 7 additions & 0 deletions prdoc/pr_7359.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: Improve `set_validation_data` error message.
doc:
- audience: Runtime Dev
description: Adds a more elaborate error message to the error that appears when `set_validation_data` is missing in a parachain block.
crates:
- name: cumulus-pallet-parachain-system
bump: patch