Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Remove legacy network code #860

Merged
merged 20 commits into from
Mar 5, 2020
Merged

Remove legacy network code #860

merged 20 commits into from
Mar 5, 2020

Conversation

rphmeier
Copy link
Contributor

@rphmeier rphmeier commented Feb 24, 2020

This PR removes the legacy Polkadot-specific networking code, replacing it with the version introduced in #788 . This is the second-to-last step in removing NetworkSpecialization from the codebase.

The protocol handler was extended with certain additional capabilities to support collators.

@rphmeier rphmeier added the A3-in_progress Pull request is in progress. No review needed at this stage. label Feb 24, 2020
@rphmeier rphmeier changed the title Rh remove legacy network Remove legacy network code Feb 24, 2020
@rphmeier rphmeier marked this pull request as ready for review February 26, 2020 22:38
@expenses
Copy link
Contributor

Looks good as far as I can tell. tests need fixing.

Copy link
Contributor

@montekki montekki left a comment

Choose a reason for hiding this comment

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

Looks good! Looks like this solves some issues I am running into when building with the latest substrate.

availability-store/src/store.rs Show resolved Hide resolved
@rphmeier rphmeier added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Mar 2, 2020
service/src/lib.rs Outdated Show resolved Hide resolved
service/src/lib.rs Outdated Show resolved Hide resolved
@rphmeier rphmeier merged commit 532f0e0 into master Mar 5, 2020
@rphmeier rphmeier deleted the rh-remove-legacy-network branch March 5, 2020 18:11
General-Beck pushed a commit to General-Beck/polkadot that referenced this pull request Mar 19, 2020
* expunge legacy code from polkadot-network

* mostly rip out old legacy protocol from service

* ensure validation work is spawned by incoming messages

* decouple availabliity store from network logic; clean up data flow

* av_store: test helpers and use futures-abort

* update polkadot-validation to pass n_validators when submitting chunks

* fallible erasure-chunk fetching

* implement `ErasureNetworking` for new network prot

* API for registering availability store in network

* fully integrate new network service into service

* fix validation tests

* scaffolding for porting collator over to new network

* track connected validators' peer IDs and distribute collators' collations

* helper in network for fetching all checked statements

* fix adder-collator

* actually register notifications protocol

* Update service/src/lib.rs

* merge with master
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants