Skip to content

Remove the deprecated CheckInherents logic#9732

Merged
serban300 merged 10 commits intomasterfrom
bkchr-remove-check-inherents
Sep 17, 2025
Merged

Remove the deprecated CheckInherents logic#9732
serban300 merged 10 commits intomasterfrom
bkchr-remove-check-inherents

Conversation

@bkchr
Copy link
Member

@bkchr bkchr commented Sep 12, 2025

This removes the CheckInherents logic from register_validate_block, instead the ConsensusHook should be used to verify certain data.

Besides that it also changes the how validate_block verifies the ValidationData passed by the collator. Instead of extracting the ValidationData before executing the block, the validation data is now checked as part of the pallet logic.

This removes the `CheckInherents` logic from `register_validate_block`, instead the `ConsensusHook` should be used to verify certain data.

Besides that it also changes the how `validate_block` verifies the `ValidationData` passed by the collator. Instead of extracting the `ValidationData`
before executing the block, the validation data is now checked as part of the pallet logic.
@bkchr bkchr added the T9-cumulus This PR/Issue is related to cumulus. label Sep 12, 2025
@bkchr bkchr requested a review from a team September 12, 2025 19:11
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/17683779792
Failed job name: test-linux-stable-int

@bkchr
Copy link
Member Author

bkchr commented Sep 17, 2025

@serban300 applied your comments

@bkchr
Copy link
Member Author

bkchr commented Sep 17, 2025

/cmd prdoc --audience runtime_dev --bump minor

@RomarQ
Copy link
Contributor

RomarQ commented Sep 17, 2025

This can also be removed:

/// 5. We are going to run `check_inherents`. This is important to check stuff like the timestamp
/// matching the real world time.

@serban300 serban300 added this pull request to the merge queue Sep 17, 2025
Merged via the queue into master with commit decf9b0 Sep 17, 2025
282 of 284 checks passed
@serban300 serban300 deleted the bkchr-remove-check-inherents branch September 17, 2025 20:23
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
This removes the `CheckInherents` logic from `register_validate_block`,
instead the `ConsensusHook` should be used to verify certain data.

Besides that it also changes the how `validate_block` verifies the
`ValidationData` passed by the collator. Instead of extracting the
`ValidationData` before executing the block, the validation data is now
checked as part of the pallet logic.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T9-cumulus This PR/Issue is related to cumulus.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants