1. 05 Dec, 2022 1 commit
    • Dmitry Markin's avatar
      Upgrade tokio to 1.22.0 and replace async-std with tokio (#12646) · 2bde8c1a
      Dmitry Markin authored
      * Replace deprecated libp2p feature specs with correct ones
      
      * Bump tokio to 1.21.2
      
      * Replace async-std libp2p primitives with tokio ones
      
      * minor: rustfmt
      
      * Fix TestNet to run initialization in the tokio context
      
      * Convert telemetry test from async-std to tokio
      
      * Convert notifications tests from async-std to tokio
      
      * Convert chain sync tests from async-std to tokio
      
      * Ditch async-std completely
      
      * Make executor mandatory
      
      * Bump tokio to 1.22.0
      
      * minor: rustfmt
      
      * Explicitly use tokio runtime in tests
      
      * Move more tests to explicit tokio runtime
      
      * Explicitly set multithreaded runtime in tokio test
      
      * minor: rustfmt
      
      * minor: fix comment
      
      * Replace async-std with tokio in MMR tests
      2bde8c1a
  2. 01 Dec, 2022 1 commit
    • alexgparity's avatar
      Reduce provisioner work (#12749) · 5ae8a3b6
      alexgparity authored
      
      
      * Move create_inherent_data call to use side
      
      * Make provide_inherent_data async
      
      * Fix tests
      
      * Apply suggestions from code review
      
      Co-authored-by: Bastian Köcher's avatarBastian Köcher <git@kchr.de>
      
      * Log errors
      
      * Fix test
      
      * Fix test
      
      * fix
      
      * Deduplicate test code
      
      * fix
      
      * flag
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: Bastian Köcher's avatarBastian Köcher <git@kchr.de>
      
      * Revert "Deduplicate test code"
      
      This reverts commit ba46adbe
      
      .
      
      * Fix test
      
      * remove commented out code
      
      * minor to start CI run
      
      * start CI
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: Marcin S.'s avatarMarcin S. <marcin@bytedude.com>
      
      * Apply PR suggestions
      
      * Apply PR suggestions
      
      * Update client/consensus/slots/src/lib.rs
      
      Co-authored-by: Bastian Köcher's avatarBastian Köcher <git@kchr.de>
      
      * minor
      
      * kickoff CI
      
      * PR suggestions
      
      * Compute remaining duration instead of using slot_info.duration
      
      * Don't rely on sub implementation for Instant
      
      * Apply PR suggestions
      
      * Use saturating_duration_since
      
      Co-authored-by: Bastian Köcher's avatarBastian Köcher <git@kchr.de>
      Co-authored-by: Marcin S.'s avatarMarcin S. <marcin@bytedude.com>
      Co-authored-by: parity-processbot <>
      5ae8a3b6
  3. 30 Nov, 2022 2 commits
  4. 29 Nov, 2022 3 commits
  5. 28 Nov, 2022 2 commits
  6. 27 Nov, 2022 1 commit
    • Bastian Köcher's avatar
      ed25519_verify: Support using dalek for historical blocks (#12661) · a92005a5
      Bastian Köcher authored
      
      
      * ed25519_verify: Support using dalek for historical blocks
      
      The switch from `ed25519-dalek` to `ed25519-zebra` was actually a breaking change. `ed25519-zebra`
      is more permissive. To support historical blocks when syncing a chain this pull request introduces
      an externalities extension `UseDalekExt`. This extension is just used as a signaling mechanism to
      `ed25519_verify` to use `ed25519-dalek` when it is present. Together with `ExtensionBeforeBlock` it
      can be used to setup a node in way to sync historical blocks that require `ed25519-dalek`, because
      they included a transaction that verified differently as when using `ed25519-zebra`.
      
      This feature can be enabled in the following way. In the chain service file, directly after the
      client is created, the following code should be added:
      
      ```
      use sc_client_api::ExecutorProvider;
      client.execution_extensions().set_extensions_factory(
      	sc_client_api::execution_extensions::ExtensionBeforeBlock::<Block, sp_io::UseDalekExt>::new(BLOCK_NUMBER_UNTIL_DALEK_SHOULD_BE_USED)
      );
      ```
      
      * Fix doc
      
      * More fixes
      
      * Update client/api/src/execution_extensions.rs
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      
      * Fix merge and warning
      
      * Fix docs
      
      Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
      a92005a5
  7. 24 Nov, 2022 1 commit
    • Alexander Theißen's avatar
      contracts: Replace `sp-sandbox` and `wasmi-validation` by newest wasmi (#12501) · f465fee7
      Alexander Theißen authored
      
      
      * Replace sp-sandbox and wasmi-validation by just wasmi
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
      
      * Re-check original code on re-instrumentation
      
      * Fix clippy
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      
      * Replace wasmi by ::wasmi
      
      * Bump wasmi to 0.20
      
      * Add explanation for `unreachable`
      
      * Change proof
      
      * Fixup master merge
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
      
      * Fixup naming inconsistencies introduced by reentrancy PR
      
      * Fix `scan_imports` docs
      
      * Apply suggestions from code review
      
      Co-authored-by: Sasha Gryaznov's avatarSasha Gryaznov <hi@agryaznov.com>
      
      * Fixup suggestions
      
      * Remove unnecessary &mut
      
      * Fix test
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
      
      * Fix benchmark merge fail
      
      * ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
      
      * Fix docs as suggested by code review
      
      * Improve docs for `CodeRejected`
      
      * Apply suggestions from code review
      
      Co-authored-by: Sasha Gryaznov's avatarSasha Gryaznov <hi@agryaznov.com>
      
      * Fix logic bug when setting `deterministic_only`
      
      * Don't panic when module fails to compile
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarRobin Freyler <robin.freyler@gmail.com>
      Co-authored-by: Sasha Gryaznov's avatarSasha Gryaznov <hi@agryaznov.com>
      f465fee7
  8. 22 Nov, 2022 1 commit
  9. 16 Nov, 2022 1 commit
  10. 15 Nov, 2022 2 commits
  11. 13 Nov, 2022 1 commit
  12. 10 Nov, 2022 2 commits
  13. 09 Nov, 2022 5 commits
  14. 08 Nov, 2022 1 commit
    • Bastian Köcher's avatar
      `payment_queryInfo`: Make it work with `WeightV2` (#12633) · a1c1286d
      Bastian Köcher authored
      * `payment_queryInfo`: Make it work with `WeighV2`
      
      The runtime api for querying the payment info depends on the `Weight` type and broke for old
      runtimes that still use the `WeighV1`. This pull requests fixes this by:
      
      1. Bumping the version of the runtime api.
      2. Making the node side code use the correct runtime api function depending on the version of the
      runtime api.
      3. Make the RPC always return `WeighV1`.
      
      Users of the api should switch to `state_call` and decide based on the version of the runtime api
      which `Weight` type is being returned.
      
      * Fix tests
      
      * Review comment
      a1c1286d
  15. 05 Nov, 2022 1 commit
  16. 04 Nov, 2022 1 commit
    • Sergej Sakac's avatar
      Move Throughput into `sc-sysinfo` (#12368) · 6bd2eac1
      Sergej Sakac authored
      
      
      * move Throughput to sc-sysinfo
      
      * replace u64
      
      * fix in tests
      
      * change Throughput
      
      * refactored Throughput
      
      * fixes
      
      * moved tests & fixes
      
      * custom serializer
      
      * note
      
      * fix serializer
      
      * forgot to remove
      
      * deserialize
      
      * functioning deserialization :)
      
      * try to make clipply happy
      
      * Serialize as function
      
      * test HwBench
      
      * rename
      
      * fix serialization
      
      * deserialize as function
      
      * unused import
      
      * move serialize/deserialize
      
      * don't serialize none
      
      * remove nonsense
      
      * remove nonsense comment :P
      
      * fixes
      
      * remove all the todos
      
      * return enum
      
      * fixes
      
      * fix nit
      
      * improve docs & readability
      
      * Update client/sysinfo/src/sysinfo.rs
      
      Co-authored-by: Oliver Tale-Yazdi's avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
      
      * fix all the nits
      
      * rename
      
      * fix
      
      * Update client/sysinfo/src/sysinfo.rs
      
      Co-authored-by: Oliver Tale-Yazdi's avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
      
      * remove unit from serialization
      
      * Update utils/frame/benchmarking-cli/src/machine/hardware.rs
      
      Co-authored-by: Oliver Tale-Yazdi's avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
      6bd2eac1
  17. 30 Oct, 2022 1 commit
    • Alexander Theißen's avatar
      WIP: Replace `wasm-gc` with `wasm-opt` (#12280) · 0e33b4e9
      Alexander Theißen authored
      * Use wasm-opt on runtime
      
      * Optimize for size
      
      * Simplify fn compact_wasm_file
      
      * Run a lighter pass for non production builds
      
      * Disable optimizations and keep name section
      
      * Update wasm-opt
      
      * Remove dward sections
      
      * Update wasm-opt
      
      * Update wasm-opt
      0e33b4e9
  18. 28 Oct, 2022 2 commits
  19. 24 Oct, 2022 1 commit
  20. 18 Oct, 2022 3 commits
  21. 17 Oct, 2022 2 commits
    • Dmitry Markin's avatar
      Upgrade libp2p to 0.49.0 (#12256) · 444cf9d8
      Dmitry Markin authored
      
      
      * cargo upgrade libp2p
      
      * Get rid of `NetworkBehaviourEventProcess` in handling of `CustomMessageOutcome`
      
      * Get rid of `NetworkBehaviourEventProcess` in handling of `request_responses::Event`
      
      * Get rid of `NetworkBehaviourEventProcess` in handling of `peer_info::PeerInfoEvent`
      
      * Get rid of `NetworkBehaviourEventProcess` in handling of `DiscoveryOut`
      
      * Get rid of `poll()` method in `Bahaviour`
      
      * minor: comments
      
      * Upgrade libp2p to 0.49.0 (unreleased)
      
      * Support multiple Kad protocol names
      
      * Make borrow checker happy
      
      * minor: wording
      
      * Make substrate build with libp2p-0.49.0
      
      * rustfmt
      
      * Get rid of MdnsWrapper
      
      * Resolve deprecation warnings
      
      * Fix documentation
      
      * Apply suggestions from code review: fix typos
      
      Co-authored-by: default avatarAaro Altonen <48052676+altonen@users.noreply.github.com>
      
      * Apply suggestion: simplify kad protocol name matching
      
      Co-authored-by: default avatarAaro Altonen <48052676+altonen@users.noreply.github.com>
      444cf9d8
    • Aaro Altonen's avatar
      Introduce `ChainSyncInterface` (#12489) · 30a7a5b4
      Aaro Altonen authored
      * Introduce `ChainSyncInterface`
      
      `ChainSyncInterface` provides an asynchronous interface for other
      subsystems to submit calls to `ChainSync`. This allows `NetworkService`
      to delegate calls to `ChainSync` while still providing the same API
      for other subsystems (for now). This makes it possible to move the
      syncing code in piecemeal fashion out of `protocol.rs` as the calls
      are just forwarded to `ChainSync`.
      
      * Apply review comments
      
      * Fix tests
      30a7a5b4
  22. 14 Oct, 2022 1 commit
  23. 13 Oct, 2022 1 commit
    • Aaro Altonen's avatar
      Introduce mockable `ChainSync` object for testing (#12480) · 983b6b0e
      Aaro Altonen authored
      
      
      * Introduce mockable `ChainSync` object for testing
      
      `mockall` allows to mock `ChainSync` and to verify that the calls made
      to `ChaiSync` are firstly executed at all, that they're executed in
      correct order and with correct parameters.
      
      This allows to verify, e.g., that delegating calls directly to
      `ChainSync` from `NetworkService` still calls the correct functions with
      correct arguments even if `Protocol` middleman is removed.
      
      * Add Cargo.lock
      
      * Fix tests
      
      * Update client/network/Cargo.toml
      
      Co-authored-by: Bastian Köcher's avatarBastian Köcher <git@kchr.de>
      
      * Update Cargo.lock
      
      * Fix clippy and documentation
      
      Co-authored-by: Bastian Köcher's avatarBastian Köcher <git@kchr.de>
      Co-authored-by: parity-processbot <>
      983b6b0e
  24. 11 Oct, 2022 2 commits
  25. 07 Oct, 2022 1 commit