Skip to content
  1. Oct 26, 2020
  2. Oct 24, 2020
  3. Oct 23, 2020
  4. Oct 22, 2020
    • Bastian Köcher's avatar
      Improve `mock_impl_runtime_apis!` (#7370) · 019019ff
      Bastian Köcher authored
      * Improve `mock_impl_runtime_apis!`
      
      This adds a new attribute for functions being implemented in the
      `mock_impl_runtime_apis!` macro, the `advanced` attribute. When this
      attribute is given the user gets access to the `at` parameter and is
      able to return a `Result`, instead of letting the macro generate this
      stuff.
      
      * Use the `at_param_name` directly
      
      * Prevent clashing of `params`
      019019ff
    • Cecile Tonglet's avatar
      Small fix for log line prefix (#7373) · 27515376
      Cecile Tonglet authored
      27515376
    • Max Inden's avatar
      client/network: Make NetworkService::set_priority_group async (#7352) · 575cbf8b
      Max Inden authored
      As done with `NetworkService::{add_to,remove_from}_priority_group`, make
      `NetworkService::set_priority_group` async as well. This future-proofs
      the API should we ever decide to use a bounded channel between
      `NetworkService` and `NetworkWorker`.
      575cbf8b
  5. Oct 21, 2020
  6. Oct 20, 2020
    • Nikolay Volf's avatar
      Runtime worker threads (#7089) · 18452782
      Nikolay Volf authored
      
      
      * std variant
      
      * principal work
      
      * format and naming
      
      * format and naming continued
      
      * working nested fork
      
      * add comment
      
      * naming and tabs
      
      * line width
      
      * fix wording
      
      * address review
      
      * refactor dynamic dispatch
      
      * update wasmtime
      
      * some care
      
      * move ext
      
      * more refactor
      
      * doc effort
      
      * simplify
      
      * doc effort
      
      * tests and docs
      
      * address review
      
      * naming
      
      * explain some args
      
      * add example
      
      * unwinding for native and tests
      
      * rename stray
      
      * fix refs
      
      * fix tests
      
      * fix warnings
      
      * stray naming
      
      * fixes and comments
      
      * Update primitives/io/src/tasks.rs
      
      Co-authored-by: default avatarcheme <[email protected]>
      
      * make examples "compile"
      
      * dyn_dispatch -> spawn_call
      
      * fix impl
      
      * address review
      
      * Update primitives/io/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update primitives/io/src/tasks.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update primitives/io/src/async_externalities.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update primitives/io/src/tasks.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/example-parallel/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * fix compilation
      
      * Update client/executor/common/src/wasm_runtime.rs
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      
      * address review
      
      * Update client/executor/wasmtime/src/instance_wrapper.rs
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      
      * Update client/executor/src/native_executor.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update primitives/io/src/tasks.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/src/native_executor.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update primitives/io/src/tasks.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/executor/wasmtime/src/instance_wrapper.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * address some issues
      
      * address more issues
      
      * wasm_only interface
      
      * define sp_tasks
      
      * avoid anyhow
      
      * fix example
      
      Co-authored-by: default avatarcheme <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      18452782
    • Bastian Köcher's avatar
      Fix logging from inside the WASM runtime (#7355) · 743981a0
      Bastian Köcher authored
      * Fix logging from inside the WASM runtime
      
      When using `RuntimeLogger` to log something from the runtime, we didn't
      set any logging level. So, we actually did not log anything from the
      runtime as logging is disabled by default. This pr fixes that by setting
      the logging level to `TRACE`. It also adds a test to ensure this does
      not break again ;)
      
      * Update frame/support/src/debug.rs
      743981a0
    • Max Inden's avatar
      *: Bump async-std to v1.6.5 (#7306) · 15247034
      Max Inden authored
      * *: Bump async-std to v1.6.5
      
      Prevent users from using v1.6.4 which faces issues receiving incoming
      TCP connections. See https://github.com/async-rs/async-std/issues/888
      for details.
      
      * client/network/src/gossip: Use channel instead of condvar
      
      `async_std::sync::Condvar::wait_timeout` uses
      `gloo_timers::callback::Timeout` when compiled for
      `wasm32-unknown-unknown`. This timeout implementation does not fulfill
      the requirement of being `Send`.
      
      Instead of using a `Condvar` use a `futures::channel::mpsc` to signal
      progress from the `QueuedSender` to the background `Future`.
      
      * client/network/Cargo.toml: Remove async-std unstable feature
      
      * client/network/src/gossip: Forward all queued messages
      
      * client/network/gossip: Have QueuedSender methods take &mut self
      
      * client/network/gossip: Move queue_size_limit into QueuedSender
      
      The `queue_size_limit` field is only accessed by `QueuedSender`, thus
      there is no need to share it between the background future and the
      `QueuedSender`.
      
      * client/network/gossip: Rename background task to future
      
      To be a bit picky the background task is not a task in the sense of an
      asynchonous task, but rather a background future in the sense of
      `futures::future::Future`.
      15247034
  7. Oct 19, 2020
  8. Oct 18, 2020
  9. Oct 17, 2020
  10. Oct 16, 2020
  11. Oct 15, 2020
    • André Silva's avatar
      frame: remove finality-tracker (#7228) · cefcd99d
      André Silva authored
      * frame: remove finality-tracker
      
      * node: remove unused parameter types
      
      * node: bump spec_version
      cefcd99d
    • Aten's avatar
      Update token info about ChainX. (#7330) · 45402941
      Aten authored
      45402941
    • Ashley's avatar
      Add missing fields to the light sync state (#7225) · 65cc9af9
      Ashley authored
      * Initial draft
      
      * Add an iterator that helps us get most items
      
      * Revert changes to grandpa
      
      * Change fields to just be the grandpa authority set and babe epoch changes
      
      * Only use the fields we need from the shared authority set
      
      * Switch to RPC call
      
      * Revert "Only use the fields we need from the shared authority set"
      
      This reverts commit a8f09667.
      
      * Add babe_finalized_block_weight from `ashley-improve-sync-state-WIP-loading`
      
      * Fix rpc test
      
      * Move sync state rpc stuff into sc-sync-state-rpc
      
      * Remove as_json_value and remove unwraps from sc-sync-state-rpc
      
      * Add clone_inner to SharedAuthoritySet
      65cc9af9
    • Jon Häggblad's avatar
      babe: make secondary slot randomness available on-chain (#7053) · d86a98c2
      Jon Häggblad authored
      
      
      * babe: make secondary slot randomness available on-chain
      
      * babe: extract out vrf_output function
      
      * babe: add missing comment
      
      * babe: fix incorrectly storing primary randomness
      
      * babe: add test for onchain author vrf
      
      * babe: fix reviewer nits
      
      * runtime: bump spec_version
      
      * babe: remove outer Option for AuthorVrfRandomness
      
      * babe: fix reviewer nits on doc strings
      
      * babe: move make_vrf_output to mock.rs
      
      * babe: cleanup docs
      
      * babe: kill ephemeral entry instead of take
      
      * babe: use type alias for maybe randomness
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      d86a98c2
  12. Oct 14, 2020
  13. Oct 13, 2020