Skip to content
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

update libp2p and import used features only #259

Merged
merged 5 commits into from
Apr 12, 2022

Conversation

leviathanbeak
Copy link
Contributor

This PR introduces following updates:

  • update libp2p to the latest version, consequently some changes needed to be made to the code,
    most notably: ProtocolsHandler was renamed to ConnectionHandler and 2 methods were completely removed
    from the code inject_connected() and inject_disconnected() in favor of their code being moved to other 2 similar already existing methods

  • we also define clearly which libp2p features we need instead of importing default-features

  • we use our own production-ready build_transport() instead of libp2p's development_transport() for transport creation

@leviathanbeak leviathanbeak self-assigned this Apr 8, 2022
fuel-p2p/Cargo.toml Outdated Show resolved Hide resolved
@leviathanbeak leviathanbeak merged commit 5c9f466 into master Apr 12, 2022
@leviathanbeak leviathanbeak deleted the leviathanbeak/libp2p-specific-features branch April 12, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants