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

Implement Aura+Grandpa warp syncing #2581

Merged
merged 9 commits into from
Aug 5, 2022

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Aug 5, 2022

Close #933

It currently only works for GrandPa+Babe.
This PR changes it to support Aura.

It is done simply by querying Aura-related parameters instead of Babe-related parameters.

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 5, 2022

twiggy diff report

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


 Delta Bytes │ Item
─────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
      +10306 ┊ smoldot::sync::warp_sync::BuildChainInformation<TSrc,TRq>::build::he4c5e048eed14c6c
       -4555 ┊ smoldot::sync::warp_sync::BuildChainInformation<TSrc,TRq>::build::hc27d7e43284ba47b
       +1345 ┊ smoldot::trie::proof_verify::trie_node_info::h994b0f693d0c71e9
       +1345 ┊ smoldot::trie::proof_verify::trie_node_info::hb33b00a061356856
       +1096 ┊ smoldot::sync::warp_sync::InProgressWarpSync<TSrc,TRq>::desired_requests::h1a4c1b26960c2c79
        +601 ┊ <smoldot::sync::warp_sync::Error as core::fmt::Display>::fmt::h722f2cf65b83e083
        +574 ┊ smoldot::sync::warp_sync::InProgressWarpSync<TSrc,TRq>::runtime_call_merkle_proof_success::hd0d4c498c3115b8b
        -535 ┊ <smoldot::sync::warp_sync::Error as core::fmt::Display>::fmt::h6c99addc0f27b455
        +467 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::hfa849698a97ccff3
        -467 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::hfea216fb6dd0b75f
        +412 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h788dfce03351b57c
        -410 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h58ded23874fa01b5
        +402 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h2cae490a11665c99
        -400 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h0ab018d9accd2d73
        +400 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h86faea1d9139a00e
        +400 ┊ <core::iter::adapters::chain::Chain<A,B> as core::iter::traits::iterator::Iterator>::try_fold::h8ddaeb92ab46527e
        +399 ┊ smoldot::sync::warp_sync::warp_sync::h11cd4bb9b77bf5fb
        -331 ┊ smoldot::sync::warp_sync::warp_sync::hfc57df39e5768290
        +283 ┊ <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h485ccdf072c2c889
        +283 ┊ <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h7a0507e587417fe6
       +5122 ┊ ... and 70 more.
      +27915 ┊ Σ [90 Total Rows]

@tomaka
Copy link
Contributor Author

tomaka commented Aug 5, 2022

Confirmed working on substrate-node-template.

@tomaka tomaka added the automerge Automatically merge pull request as soon as possible label Aug 5, 2022
@mergify mergify bot merged commit a51c999 into paritytech:main Aug 5, 2022
@tomaka tomaka deleted the warp-sync-consensus-init branch August 5, 2022 15:05
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.

Add support for GrandPa warp sync for Aura-based chains
1 participant