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

Make sure connected addresses are inserted when discovering #2616

Merged
merged 3 commits into from
Aug 12, 2022

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Aug 12, 2022

Fix #2568

This PR makes sure that, when we discover a peer that we're already connected to, we insert the addresses we're connected to or connecting to.

Copy link
Contributor

@mergify mergify bot left a comment

Choose a reason for hiding this comment

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

Automatically approving tomaka's pull requests. This auto-approval will be removed once more maintainers are active.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2022

twiggy diff report

Difference in .wasm size before and after this pull request.


 Delta Bytes │ Item
─────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────
        +568 ┊ smoldot::network::service::ChainNetwork<TNow>::discover::h9dfbd6e59d5a59a6
        +566 ┊ smoldot::network::service::ChainNetwork<TNow>::discover::h221aafab68ab946a
        +542 ┊ smoldot::network::service::ChainNetwork<TNow>::discover::h1185cbf11512b681
        +197 ┊ smoldot::libp2p::peers::Peers<TConn,TNow>::established_peer_connections::hf0298eecb2df704a
        +197 ┊ smoldot::libp2p::peers::Peers<TConn,TNow>::handshaking_peer_connections::h18be7735583b0fab
        +192 ┊ data[0]
        +148 ┊ smoldot::network::service::addresses::Addresses::set_pending::h3036ff59479c96db
        +123 ┊ <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::try_fold::h55e99a91dac9e400
        +123 ┊ <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::try_fold::h965a1b680b0606a4
        +102 ┊ <either::Either<L,R> as core::iter::traits::iterator::Iterator>::next::h768c62e5b027d855
        +102 ┊ <either::Either<L,R> as core::iter::traits::iterator::Iterator>::next::hb059e47988cd4313
         +79 ┊ smoldot::libp2p::peers::Peers<TConn,TNow>::connection_state::h0dceef2c65dac98b
         +71 ┊ core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::hc5e2f30547a04708
         +70 ┊ core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::h220f725340e8bb5c
       +4275 ┊ Σ [14 Total Rows]

@tomaka tomaka added the automerge Automatically merge pull request as soon as possible label Aug 12, 2022
@mergify mergify bot merged commit a1ac61c into paritytech:main Aug 12, 2022
@tomaka tomaka deleted the addresses-already-inserted branch August 12, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge pull request as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smoldot panic at addresses.rs
1 participant