1. Oct 29, 2022
  2. Oct 28, 2022
  3. Oct 27, 2022
  4. Oct 26, 2022
  5. Oct 25, 2022
  6. Oct 24, 2022
  7. Oct 22, 2022
    • Aaro Altonen's avatar
      Make `NetworkService` callable for `ChainSync` (#12542) · a877b0cc
      Aaro Altonen authored
      Introduce a middleware called `NetworkServiceProvider` which the
      `ChainSync` can use to communicate with `NetworkService`. `ChainSync` is
      given a `NetworkServiceHandle` which it uses to call `NetworkServiceProvider`
      which then dispatches the calls to `NetworkService` on behalf of `ChainSync`.
      
      This change will allow `ChainSync` to disconnect and report peers and
      in the future it'll be possible to send requests and notifications
      through the `NetworkServiceProvider`.
      
      `NetworkServiceProvider` is needed only until the `ChainSync` object
      has been removed from `Protocol`. After that, a normal `NetworkService`
      handle can be passed onto `ChainSync` and these changes can be
      deprecated.
      
      Co-authored-by: parity-processbot <>
      a877b0cc
  8. Oct 21, 2022
    • Shawn Tabrizi's avatar
      use headers on templates (#12546) · 932e1a33
      Shawn Tabrizi authored
      932e1a33
    • Michal Kucharczyk's avatar
      BlockId removal: refactor: Backend::begin_state_operation (#12541) · c0e8abe1
      Michal Kucharczyk authored
      It changes the arguments of `Backend::begin_state_operation`
      from: block: `BlockId<Block>` to: hash: `&Block::Hash`
      
      This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292)
      c0e8abe1
    • Nazar Mokrynskyi's avatar
      Actually fix major sync detection (#12114) · bf57a2e9
      Nazar Mokrynskyi authored
      * Actually fix major sync detection
      
      * Introduce `SyncState::Importing` state
      
      * Add target to SyncState enum variants and add `is_major_syncing` method on it
      
      * Remove unnecessary duplicated `best_seen_block` from `SyncState` struct
      
      * Revert "Remove unnecessary duplicated `best_seen_block` from `SyncState` struct"
      
      This reverts commit bb8abd458c939881c049f69d59f3acba47c97c5c.
      
      * Add missing `websocket` feature to `libp2p`
      
      Co-authored-by: parity-processbot <>
      bf57a2e9
    • Aaro Altonen's avatar
      Refactor service tests in `sc-network` (#12517) · 7f8aab84
      Aaro Altonen authored
      
      
      * Refactor service tests in `sc-network`
      
      Create a separate directory for the tests and move common network
      instantion related code to `mod.rs` from where it can be used by both
      service and chainsync tests.
      
      Use the builder pattern when creating the `TestNetwork` object to reduce
      code duplication between the test files.
      
      * Update client/network/src/service/tests/mod.rs
      
      Co-authored-by: default avatarDmitrii Markin <[email protected]>
      
      Co-authored-by: default avatarDmitrii Markin <[email protected]>
      Co-authored-by: parity-processbot <>
      7f8aab84
  9. Oct 20, 2022
  10. Oct 19, 2022
  11. Oct 18, 2022