add warp to target block for parachains (#12761)
* add warp to target block for parachains * fix for failing tests * format using `Cargo +nightly fmt` * Remove blocking based on PR comments and create new `WarpSync` on poll * remove method from trait * add tests for wait for target * Update client/network/common/src/sync/warp.rs Co-authored-by:Bastian Köcher <git@kchr.de> * Update client/network/common/src/sync/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/test/src/sync.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/test/src/sync.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/test/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/test/src/sync.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/test/src/sync.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * code refactor based on pr comments * Second round of PR comments * Third round of pr comments * add comments to explain logic * Update client/network/sync/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * code refactor based on last PR comments * move warp sync polling before `process_outbound_requests` Add error message if target block fails to be retreived * Update client/network/sync/src/warp.rs Co-authored-by:
Arkadiy Paronyan <arkady.paronyan@gmail.com> * Update client/network/sync/src/lib.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * fmt after code suggestions * rebase changes * Bring down the node if the target block fails to return * Revert "Bring down the node if the target block fails to return" This reverts commit c0ecb220d66dd8e7b1a5ee29831b776f4f18d024. * Update client/network/common/src/sync/warp.rs Co-authored-by:
Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> * Update client/network/common/src/sync/warp.rs Co-authored-by:
Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> * use matching on polling to avoid calling poll more than once * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/sync/src/warp.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * fix typo on comment * update snapshot with new folder structure * Upload snapshot * Bump zombienet * bump zombienet again * Improve test * Update client/network/test/src/sync.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * Update client/network/test/src/sync.rs Co-authored-by:
Bastian Köcher <git@kchr.de> * fix tests * dummy commit to restart builds * Converted the target block to an optional value that is set to `None` when an error occurs * dummy commit to restart builds --------- Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Arkadiy Paronyan <arkady.paronyan@gmail.com> Co-authored-by:
Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> Co-authored-by:
Sebastian Kunert <skunert49@gmail.com>
Showing
- substrate/bin/node-template/node/src/service.rs 2 additions, 2 deletionssubstrate/bin/node-template/node/src/service.rs
- substrate/bin/node/cli/src/service.rs 4 additions, 2 deletionssubstrate/bin/node/cli/src/service.rs
- substrate/client/informant/src/display.rs 5 additions, 0 deletionssubstrate/client/informant/src/display.rs
- substrate/client/network/common/src/sync/warp.rs 15 additions, 1 deletionsubstrate/client/network/common/src/sync/warp.rs
- substrate/client/network/sync/src/lib.rs 18 additions, 10 deletionssubstrate/client/network/sync/src/lib.rs
- substrate/client/network/sync/src/warp.rs 76 additions, 30 deletionssubstrate/client/network/sync/src/warp.rs
- substrate/client/network/test/src/lib.rs 17 additions, 3 deletionssubstrate/client/network/test/src/lib.rs
- substrate/client/network/test/src/sync.rs 38 additions, 0 deletionssubstrate/client/network/test/src/sync.rs
- substrate/client/service/src/builder.rs 13 additions, 12 deletionssubstrate/client/service/src/builder.rs
- substrate/client/service/src/lib.rs 1 addition, 0 deletionssubstrate/client/service/src/lib.rs
Please register or sign in to comment