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

Switch node side to v2 candidate receipts #5679

Open
wants to merge 145 commits into
base: master
Choose a base branch
from

Conversation

sandreim
Copy link
Contributor

@sandreim sandreim commented Sep 11, 2024

on top of #5423

This PR implements the plumbing work required for #5047 . I also added additional helper methods gated by feature "test" in primitives.

TODO:

  • PRDoc

Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
@sandreim sandreim marked this pull request as ready for review September 26, 2024 14:51
Signed-off-by: Andrei Sandu <[email protected]>
Copy link
Contributor

@alindima alindima left a comment

Choose a reason for hiding this comment

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

Man was this a tough one to review 😄

Thanks for pushing through the tedious work!

Why is this stacked on top of #5423?
From a quick look it could be merged independently

polkadot/primitives/src/vstaging/mod.rs Show resolved Hide resolved
polkadot/primitives/src/vstaging/mod.rs Outdated Show resolved Hide resolved
fn set_para_head(&mut self, para_head: Hash);
}

#[cfg(feature = "test")]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather directly add these methods onto the CandidateDescriptorV2 and guard each of them with #[cfg(test)], which would save us the import of MutateDescriptorV2. But fine either way really

polkadot/runtime/parachains/src/runtime_api_impl/v10.rs Outdated Show resolved Hide resolved
prdoc/pr_5679.prdoc Outdated Show resolved Hide resolved
Comment on lines 15 to 18
- name: cumulus-client-consensus-common
bump: major
- name: cumulus-client-pov-recovery
bump: major
Copy link
Contributor

Choose a reason for hiding this comment

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

why are these two major? I think they should be none

actually, why is everything a major bump? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've switched the subsystem messages and cumulus traits to new primtives so this breaks things.

Also I'm missing many crates here and the check fails.

Base automatically changed from sandreim/runtime_v2_descriptor_support to master October 7, 2024 07:22
@sandreim
Copy link
Contributor Author

/cmd prdoc --audience node_dev,runtime_dev --bump major

Signed-off-by: Andrei Sandu <[email protected]>
@sandreim
Copy link
Contributor Author

/cmd prdoc --audience node_dev,runtime_dev --bump major

Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
@sandreim
Copy link
Contributor Author

/cmd prdoc --audience node_dev,runtime_dev --bump major

@sandreim
Copy link
Contributor Author

/cmd prdoc --audience node_dev runtime_dev --bump major

actions-user and others added 4 commits October 21, 2024 12:30
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Signed-off-by: Andrei Sandu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

3 participants