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 light clients gossip block announces to each other #2226

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Apr 8, 2022

Close #2157
Changes are very similar to #2143

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 Apr 8, 2022

twiggy diff report

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


 Delta Bytes │ Item
─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       +4667 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h3503dab5c4fb46b2
       +4327 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h91ba71e252c576f0
       -4103 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hae1309c459dd754b
       -3230 ┊ smoldot_light_base::sync_service::standalone::Task<TPlat>::process_one_verification_queue::hb7a42ee11335c269
        +477 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h0c3e2bc057ccde9d
        +415 ┊ core::ptr::drop_in_place<core::future::from_generator::GenFuture<smoldot_light_base::sync_service::standalone::start_standalone_chain<smoldot_light_wasm::platform::Platform>::{{closure}}>>::hcdc1a0177e14f448
        +408 ┊ hashbrown::raw::RawTable<T,A>::resize::h345a6b7afbbf3841
        +297 ┊ hashbrown::raw::RawTable<T,A>::rehash_in_place::h7c9f0667459c2e05
        +213 ┊ <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h9bd8c70dc12a1f4f
        +193 ┊ <core::iter::adapters::copied::Copied<I> as core::iter::traits::iterator::Iterator>::fold::hcb78093b4ef1dfc3
        +193 ┊ <core::iter::adapters::copied::Copied<I> as core::iter::traits::iterator::Iterator>::fold::he17d8f74fd701fac
        +185 ┊ <hashbrown::raw::RawIterRange<T> as core::iter::traits::iterator::Iterator>::next::h00267c30f0c34f35
        +181 ┊ hashbrown::raw::RawTable<T,A>::reserve_rehash::hb0e9a76d96ce59cd
        +173 ┊ smoldot::sync::all::AllSync<TRq,TSrc,TBl>::try_add_known_block_to_source::hecf797c8b3250926
        +162 ┊ <hashbrown::raw::RawTable<T,A> as core::iter::traits::collect::IntoIterator>::into_iter::hfa35f3d60fc6e167
        +158 ┊ <hashbrown::map::HashMap<K,V,S,A> as core::iter::traits::collect::Extend<(K,V)>>::extend::h49bede24fd7e2057
        -155 ┊ core::ptr::drop_in_place<core::future::from_generator::GenFuture<smoldot_light_base::sync_service::standalone::start_standalone_chain<smoldot_light_wasm::platform::Platform>::{{closure}}>>::hf382d324639fa195
        +151 ┊ <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::ha4ac36dd4aca34d4
        +144 ┊ <either::Either<L,R> as core::iter::traits::iterator::Iterator>::fold::h2a9bef3cb4f250cd
        +144 ┊ data[0]
       +2739 ┊ ... and 61 more.
      +14931 ┊ Σ [81 Total Rows]

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@tomaka tomaka added the automerge Automatically merge pull request as soon as possible label Apr 8, 2022
@mergify mergify bot merged commit f1b45cb into paritytech:main Apr 8, 2022
@tomaka tomaka deleted the light-block-announces branch April 8, 2022 12:35
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.

Make the wasm node announce blocks to the nodes it is connected to
2 participants