Skip to content
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

feat(dot/parachain): implement candidate validation pre-check #4223

Merged
merged 53 commits into from
Oct 9, 2024

Conversation

edwardmack
Copy link
Member

@edwardmack edwardmack commented Oct 4, 2024

Changes

Implement code for candidate validation pre-check subsystem.

  • precheckPvF function for determining if the validation code in valid:
    • Retrieves the validation code from the relay parent's runtime instance.
    • Determines executor parameters for pre-check.
    • Determines timeout durations
    • calls pvf host precheck function

Implements code in pvf host:

  • handlePrecheckPvF returns error if there is an issue compiling validation code
  • modify addNewWorker to accept timeout duration.

Create tests for pre-checks.

Tests

go test github.com/ChainSafe/gossamer/dot/parachain/candidate-validation

Issues

closes: #3921

Copy link
Contributor

@haikoschol haikoschol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for the typo in the constant name

@edwardmack edwardmack merged commit 20b85ad into feat/parachain Oct 9, 2024
22 checks passed
@edwardmack edwardmack deleted the ed/feat/candidate_validation_precheck_sq branch October 9, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants