Skip to content
Snippets Groups Projects
  1. Dec 23, 2022
  2. Nov 30, 2022
  3. Oct 10, 2022
    • Aaro Altonen's avatar
      Move block announcement protocol config out of `Protocol` (#12441) · ce9ce49b
      Aaro Altonen authored
      * Move Role(s) to `sc-network-common`
      
      * Introduce `NotificationHandshake` type
      
      * Move block announce protocol config creation to `ChainSync`
      
      * Include block announcement into `notification_protocols`
      
      * Apply review comments
      
      * Remove unneeded include
      
      * Add missing include
      
      * Apply review comments
      ce9ce49b
  4. Sep 26, 2022
  5. Sep 21, 2022
  6. Sep 03, 2022
    • Dmitry Markin's avatar
      Use custom type for ProtocolName (#12172) · 24d09fe8
      Dmitry Markin authored
      * Add ProtocolName custom type
      
      * Use new ProtocolName in sc_network_common
      
      * Use new ProtocolName in sc_network
      
      * Use new ProtocolName for BEEFY and GRANDPA
      
      * Use new ProtocolName for notifications
      
      * Use new ProtocolName in sc_network (part 2)
      
      * Use new ProtocolName in sc_network_gossip
      
      * Use new ProtocolName in sc_offchain
      
      * Remove unused imports
      
      * Some more fixes
      
      * Add tests
      
      * Fix minor import issues
      
      * Re-export ProtocolName in sc_network
      
      * Revert "Re-export ProtocolName in sc_network"
      
      This reverts commit 8d8ff71927e7750757f29c9bbd88dc0ba181d214.
      
      * Re-export ProtocolName in sc_network
      
      * Remove dependency on sc-network-common from beefy-gadget
      24d09fe8
  7. Aug 31, 2022
  8. Aug 09, 2022
    • Nazar Mokrynskyi's avatar
      Network sync refactoring (part 6) (#11940) · a685582b
      Nazar Mokrynskyi authored
      * Extract `NetworkKVProvider` trait in `sc-authority-discovery` and remove unnecessary dependency
      
      * Extract `NetworkSyncForkRequest` trait in `sc-finality-grandpa`
      
      * Relax requirements on `SyncOracle` trait, remove extra native methods from `NetworkService` that are already provided by trait impls
      
      * Move `NetworkSigner` trait from `sc-authority-discovery` into `sc-network-common` and de-duplicate methods on `NetworkService`
      
      * Move `NetworkKVProvider` trait from `sc-authority-discovery` into `sc-network-common` and de-duplicate methods on `NetworkService`
      
      * Minimize `sc-authority-discovery` dependency on `sc-network`
      
      * Move `NetworkSyncForkRequest` trait from `sc-finality-grandpa` to `sc-network-common` and de-duplicate methods in `NetworkService`
      
      * Extract `NetworkStatusProvider` trait and de-duplicate methods on `NetworkService`
      
      * Extract `NetworkPeers` trait and de-duplicate methods on `NetworkService`
      
      * Extract `NetworkEventStream` trait and de-duplicate methods on `NetworkService`
      
      * Move more methods from `NetworkService` into `NetworkPeers` trait
      
      * Move `NetworkStateInfo` trait into `sc-network-common`
      
      * Extract `NetworkNotification` trait and de-duplicate methods on `NetworkService`
      
      * Extract `NetworkRequest` trait and de-duplicate methods on `NetworkService`
      
      * Remove `NetworkService::local_peer_id()`, it is already provided by `NetworkStateInfo` impl
      
      * Extract `NetworkTransaction` trait and de-duplicate methods on `NetworkService`
      
      * Extract `NetworkBlock` trait and de-duplicate methods on `NetworkService`
      
      * Remove dependencies on `NetworkService` from most of the methods of `sc-service`
      
      * Address simple review comments
      a685582b
  9. Aug 05, 2022
    • Dmitry Markin's avatar
      Change on-the-wire protocol names to include genesis hash & fork id (#11938) · 6eda842c
      Dmitry Markin authored
      * Rename transactions protocol to include genesis hash
      
      * Add protocol name generation to sc_network::utils
      
      * Use utils functions for transactions protocol name generation
      
      * Extract protocol name generation into public module
      
      * Use sc_network::protocol_name::standard_protocol_name() for BEEFY and GRANDPA
      
      * minor: add missing newline at EOF
      
      * Change block-announces protocol name to include genesis_hash & fork_id
      
      * Change protocol names to include genesis hash and fork id
      
      Protocols changed:
          - sync
          - state
          - light
          - sync/warp
      
      * Revert "Use sc_network::protocol_name::standard_protocol_name() for BEEFY and GRANDPA"
      
      This reverts commit cd60a95a3face397e1b67f4bc95dd0f2b581bfae.
      
      * Get rid of `protocol_name` module
      6eda842c
  10. Jul 21, 2022
  11. May 03, 2022
    • Nazar Mokrynskyi's avatar
      Network sync refactoring (part 2) (#11322) · e397e0b6
      Nazar Mokrynskyi authored
      
      * Move `api.v1.proto` schema into new crate `sc-network-sync`
      
      * Move `sc_network::protocol::sync::state` module into `sc_network_sync::state`
      
      * Move `sc_network::protocol::sync::blocks` module into `sc_network_sync::blocks` and some data structures from `sc_network::protocol::message` module into `sc_network_sync::message`
      
      * Move some data structures from `sc_network::config` and `sc_network::request_responses` into new `sc-network-common` crate
      
      * Move `sc_network::protocol::sync::warm` and `sc_network::warp_request_handler` modules into `sc_network_sync`
      
      * Move `client/network/sync/src/lib.rs` to `client/network/sync/src/lib_old.rs` to preserve history of changes of the file in the next commit
      
      * Move `client/network/src/protocol/sync.rs` on top of `client/network/sync/src/lib.rs` to preserve history of changes
      
      * Move `sc_network::protocol::sync` to `sc_network_sync` with submodules, move message data structures around accordingly
      
      * Move `sc_network::block_request_handler` to `sc_network_sync::block_request_handler`
      
      * Move `sc_network::state_request_handler` to `sc_network_sync::state_request_handler`
      
      * Add re-exports for compatibility reasons
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      e397e0b6
  12. Apr 30, 2022
  13. Jan 03, 2022
  14. Dec 09, 2021
  15. Nov 13, 2021
  16. Oct 08, 2021
    • ordian's avatar
      NetworkService: change `remove_from_peers_set` to accept `PeerId`s (#9964) · 12f958fa
      ordian authored
      * NetworkService: expose split_multiaddr_and_peer_id
      
      * Revert "NetworkService: expose split_multiaddr_and_peer_id"
      
      This reverts commit 47b9a0d57c3617e64d01c449afca8896bd4bb6b6.
      
      * change remove_from_peer_set to accets PeerIds
      
      * fixes
      
      * try fixing it
      
      * try fixing it again
      
      * FMT
      
      * revert me
      
      * Revert "revert me"
      
      This reverts commit 1ea34f473f1aedc8b3e6e888d1ad2e1b45eaa1e0.
      12f958fa
  17. Oct 01, 2021
  18. Jul 21, 2021
  19. May 06, 2021
  20. Apr 05, 2021
  21. Feb 26, 2021
  22. Feb 24, 2021
  23. Feb 18, 2021