-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
Backing does not yet use it.
node/network/availability-distribution/src/pov_requester/mod.rs
Outdated
Show resolved
Hide resolved
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 think it would be better to keep the same external API of "get the PoV from someone in the group" as it keeps backing simple. Retrying & querying different peers can be handled within the subsystem.
Also, I don't think availability distribution is really the best home for this logic as it has little to do with availability and everything to do with backing
Yeah, we would probably need a different name if we keep it that way. Pierre's blog post inspired me to an architecture, where we stay in "standard" Rust more, with easy sharing of data, via references and such and still get all the benefits of asynchronous programming and the efficiency/concurrency it brings. Basically simplifying things a lot/making it easier to reason about code and also improving performance. I wanted to try this out in the small here and give a knowledge share presentation if it worked out, to me it looks very promising, but only code does not lie. |
+ Typechecks + Should work Missing: - Guide - Tests - Do fallback fetching in case fetching from seconding validator fails.
dbd3009
to
b1a201a
Compare
94de933
to
071bcca
Compare
* Indentation fix. * Prepare request-response for PoV fetching. * Drop old PoV distribution. * WIP: Fetch PoV directly from backing. * Backing compiles. * Runtime access and connection management for PoV distribution. * Get rid of seemingly dead code. * Implement PoV fetching. Backing does not yet use it. * Don't send `ConnectToValidators` for empty list. * Even better - no need to check over and over again. * PoV fetching implemented. + Typechecks + Should work Missing: - Guide - Tests - Do fallback fetching in case fetching from seconding validator fails. * Check PoV hash upon reception. * Implement retry of PoV fetching in backing. * Avoid pointless validation spawning. * Add jaeger span to pov requesting. * Add back tracing. * Review remarks. * Whitespace. * Whitespace again. * Cleanup + fix tests. * Log to log target in overseer. * Fix more tests. * Don't fail if group cannot be found. * Simple test for PoV fetcher. * Handle missing group membership better. * Add test for retry functionality. * Fix flaky test. * Spaces again. * Guide updates. * Spaces.
@eskimor any update on implements guide? the doc still has pov-distribution here: https://w3f.github.io/parachain-implementers-guide/node/subsystems-and-jobs.html |
I'll revisit the guide, thanks! |
Fixes #2590