-
Notifications
You must be signed in to change notification settings - Fork 668
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…ode_v2_descriptors
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…aritytech/polkadot-sdk into sandreim/node_v2_descriptors
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…aritytech/polkadot-sdk into sandreim/node_v2_descriptors Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
There was a problem hiding this 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/node/network/collator-protocol/src/validator_side/collation.rs
Outdated
Show resolved
Hide resolved
@@ -368,7 +471,7 @@ pub enum CandidateReceiptError { | |||
|
|||
macro_rules! impl_getter { | |||
($field:ident, $type:ident) => { | |||
/// Returns the value of $field field. | |||
/// Returns the value of `$field`` field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Returns the value of `$field`` field. | |
/// Returns the value of `$field` field. |
fn set_para_head(&mut self, para_head: Hash); | ||
} | ||
|
||
#[cfg(feature = "test")] |
There was a problem hiding this comment.
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
- audience: Node Dev | ||
description: | | ||
This change is just plumbing work and updates all crate interfaces to use the new primitives. | ||
Id doesn't alter any functionality and is required before implementing RFC103 on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Id doesn't alter any functionality and is required before implementing RFC103 on the | |
It doesn't alter any functionality and is required before implementing RFC103 on the |
- name: cumulus-client-consensus-common | ||
bump: major | ||
- name: cumulus-client-pov-recovery | ||
bump: major |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
/cmd prdoc --audience node_dev,runtime_dev --bump major |
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
…reim/node_v2_descriptors Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
/cmd prdoc --audience node_dev,runtime_dev --bump major |
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
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: