Skip to content
  1. Oct 21, 2020
  2. Oct 20, 2020
    • Nikolay Volf's avatar
      Runtime worker threads (#7089) · a062bc2f
      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]>
      a062bc2f
    • Bastian Köcher's avatar
      Fix logging from inside the WASM runtime (#7355) · 203acda6
      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
      203acda6
    • Max Inden's avatar
      *: Bump async-std to v1.6.5 (#7306) · 918a0c80
      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`.
      918a0c80
  3. Oct 19, 2020
  4. Oct 18, 2020
  5. Oct 17, 2020
  6. Oct 16, 2020
  7. Oct 15, 2020
    • André Silva's avatar
      frame: remove finality-tracker (#7228) · f3ea1624
      André Silva authored
      * frame: remove finality-tracker
      
      * node: remove unused parameter types
      
      * node: bump spec_version
      f3ea1624
    • Aten's avatar
      Update token info about ChainX. (#7330) · 8e8a37f7
      Aten authored
      8e8a37f7
    • Ashley's avatar
      Add missing fields to the light sync state (#7225) · d1ef8507
      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 6ede87b0c5fe53f251d7cb45951006a7dc8f9b83.
      
      * 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
      d1ef8507
    • Jon Häggblad's avatar
      babe: make secondary slot randomness available on-chain (#7053) · a297e447
      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]>
      a297e447
  8. Oct 14, 2020
  9. Oct 13, 2020
  10. Oct 12, 2020
  11. Oct 09, 2020