Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions prdoc/pr_7359.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Improve `set_validation_data` error message.
doc:
- audience: Runtime Dev
description: The old error message was often confusing, because the real reason
for the error will be printed during inherent execution.
crates:
- name: cumulus-pallet-parachain-system
bump: patch
Loading