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

Move bitswap to its own crate #12242

Merged
merged 7 commits into from
Sep 13, 2022
Merged

Conversation

altonen
Copy link
Contributor

@altonen altonen commented Sep 12, 2022

Move bitswap protocol to its own crate and improve test coverage for the protocol. Fixes the second bullet from #12133

polkadot companion: paritytech/polkadot#5994

@altonen altonen added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Sep 12, 2022
client/network/src/behaviour.rs Outdated Show resolved Hide resolved
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Thank you! :)

client/network/src/behaviour.rs Outdated Show resolved Hide resolved
client/network/src/config.rs Show resolved Hide resolved
client/network/src/service.rs Outdated Show resolved Hide resolved
@altonen
Copy link
Contributor Author

altonen commented Sep 13, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit c1103fd into master Sep 13, 2022
@paritytech-processbot paritytech-processbot bot deleted the sc-network-bitswap branch September 13, 2022 08:02
@skunert
Copy link
Contributor

skunert commented Sep 14, 2022

A bit late to the party 😬

As far as I see his newly added field block_request_protocol_config in the network params is currently not used.

Should it not be passed here together with the protocols from network_config?

@altonen
Copy link
Contributor Author

altonen commented Sep 14, 2022

@skunert you're right, the request response vector that's passed to Behaviour is not extended with the bitswap protocol if it's enabled. Fixed here #12262

@sinkingsugar
Copy link

Was this properly tested with an ipfs client?
Seems broken so far...

ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Introduce `sc-network-bitswap`

Move the bitswap protocol out of `sc-network` to its own crate.

* Improve test coverage

* Remove mention of bitswap from `sc-network`

* Fix documentation

* Fix clippy and remove the void dependency

* Remove unneeded trait bound and bump prost to 0.11
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. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
Status: done
Development

Successfully merging this pull request may close these issues.

7 participants