-
Notifications
You must be signed in to change notification settings - Fork 1.6k
pvf-precheck: PVF pre-checker subsystem #4643
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
86834f5
to
649f134
Compare
649f134
to
ef957aa
Compare
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.
Overseer integration looks good, I'll take another pass on the actual impl.
const NUM_SUBSYSTEMS_MESSAGED: usize = NUM_SUBSYSTEMS - 3; | ||
const NUM_SUBSYSTEMS: usize = 21; | ||
// -4 for BitfieldSigning, GossipSupport, AvailabilityDistribution and PvfCheckerSubsystem. | ||
const NUM_SUBSYSTEMS_MESSAGED: usize = NUM_SUBSYSTEMS - 4; |
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.
❤️
fc7e458
to
645c825
Compare
I've managed to verify that the thing works as a whole, but only if we change the weight for polkadot/runtime/parachains/src/paras/mod.rs Lines 852 to 857 in c8abae0
to something manageable. |
645c825
to
b3ef387
Compare
b3ef387
to
7dbc79d
Compare
impl PvfData { | ||
/// Initialize a new `PvfData` which is awaiting for the initial judgement. | ||
fn pending(origin: Hash) -> Self { | ||
// Preallocate the hashset with 5 items. This is the anticipated maximum leafs we can |
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.
leaves
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.
huh i wonder why spell check did not go off )
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.
It's a dev comment and they are currently not checked by CI
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.
TIL!
node/core/pvf-checker/src/lib.rs
Outdated
} else { | ||
// Pre-checking request dropped before replying. That can happen in case the | ||
// overseer is shutting down. Our part of shutdown will be handled by the | ||
// overseer conclude signal. |
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.
Maybe add some debug log, so if this happens for some other reason it will be easier to see what's going on.
// Abstain. | ||
// | ||
// Returning here will leave the PVF in the view dangling. Since it is there, no new | ||
// pre-checking request will be sent. |
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.
Some log message?
node/core/pvf-checker/src/tests.rs
Outdated
} | ||
|
||
#[test] | ||
fn activation_of_descedant_leaves_pvfs_in_view() { |
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.
Typo
Really nice! Especially the test suite - reads like a book! |
This commit implements the last major piece of #3211: the subsystem that tracks PVFs that require voting, issues pre-check requests to candidate-validation and makes sure that the votes are submitted to the chain.
7dbc79d
to
a9d2340
Compare
bot merge |
Waiting for commit status. |
This commit implements the last major piece of paritytech#3211: the subsystem that tracks PVFs that require voting, issues pre-check requests to candidate-validation and makes sure that the votes are submitted to the chain.
Closes #4610
This commit implements the last major piece of #3211: the subsystem that
tracks PVFs that require voting, issues pre-check requests to
candidate-validation and makes sure that the votes are submitted to the
chain.
TODO:
I am skipping the cumulus check since this is not related.
skip check-dependent-cumulus