Skip to content
  1. Oct 27, 2020
  2. Oct 26, 2020
    • Drew Stone's avatar
      Add keccak512 hash (#7428) · c13f0751
      Drew Stone authored
      * Add keccak512
      
      * Update hashing.rs
      c13f0751
    • thiolliere's avatar
      Fix doc for ChangeMember trait (#7396) · e2a15b0b
      thiolliere authored
      
      
      * fix doc
      
      * Update frame/support/src/traits.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e2a15b0b
    • Kian Paimani's avatar
      Don't slash all outgoing members. (#7394) · 500b10de
      Kian Paimani authored
      
      
      * Don't slash all outgoing members.
      
      * One more fix
      
      * cargo run --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark --chain dev --steps 50 --repeat 20 --extrinsic * --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output ./bin/node/runtime/src/weights --header ./HEADER --pallet pallet_elections_phragmen
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      500b10de
    • Andrew Plaza's avatar
      WASM Local-blob override (#7317) · 74910c48
      Andrew Plaza authored
      
      
      * Provide WASM overwrite functionality in LocalCallExecutor
      
      - add a new module `wasm_overwrite.rs` in client
        - scrapes given folder for runtimes
      - add two new CLI Options `wasm-overwrite` and `wasm_overwrite_path`
      
      * formatting
      
      * Make comment clearer
      
      remove sc-runtime-test from dev-dependencies
      
      * comments
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fix spaces, remove call into backend for 'heap_pages' in 'try_replace'
      
      * Error if path is not a directory, Comments,
      
      Doc Comment for WasmOverwrite
      
      * make WasmOverwrite Option<>
      
      * Change to one CLI argument for overwrites
      
      - move getting runtime version into LocalCallExecutor
      
      * change unwrap() to expect()
      
      * comment
      
      * Remove `check_overwrites`
      
      * Encapsulate checking for overwrites in LocalCallExecutor
      
      * move duplicate code into function
      
      * Update client/cli/src/params/import_params.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * comma
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * cache hash in WasmBlob
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/client.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * move getting overwrite into its own function
      
      * fix error when directory is not a directory
      
      * Error on duplicate WASM runtimes
      
      * better comment, grammar
      
      * docs
      
      * Revert StateBackend back to _
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update client/service/src/client/call_executor.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Add two tests, fix doc comments
      
      Add a test for the runtime_version method of WasmOverwrite
      Add a test for check_overwrite method of LocalCallExecutor
      
      * remove redundant `Return` from expect msg
      
      * Update client/cli/src/params/import_params.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/client/call_executor.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/config.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Add Module Documentation, match on '.wasm' extension
      
      * Add test for scraping WASM blob
      
      * fix expect
      
      * remove creating another block in LocalCallExecutor test
      
      * remove unused import
      
      * add tests for duplicates and scraping wasm
      
      * make tests a bit nicer
      
      * add test for ignoring non-.wasm files
      
      * check error message in test
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove println
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * make tests prettier
      
      * Update client/service/src/client/wasm_overwrite.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * comment for seemingly random client
      
      * locally-built -> custom
      
      * remove unused import
      
      * fix comment
      
      * rename all references to overwrite with override
      
      * fix cli flag in module documentation
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      74910c48
    • André Silva's avatar
      grandpa: don't send equivocation reports for local identities (#7372) · f2925f96
      André Silva authored
      * grandpa: don't send equivocation reports for local identities
      
      * grandpa: add test for self-report
      
      * grandpa: fix test compilation
      
      this works on rust nightly but breaks on ci which is using rust stable
      f2925f96
    • André Silva's avatar
      grandpa: fix early enactment of forced changes (#7321) · 568dd6fd
      André Silva authored
      * grandpa: fix early enactment of forced authority set changes
      
      * grandpa: add test for early enactment of forced changes
      
      * grandpa: fix typo in log message
      
      * grandpa: only allow one pending forced change per fork
      
      * grandpa: fix tests
      568dd6fd
    • Alexander Theißen's avatar
    • Max Inden's avatar
      client/authority-discovery: Remove sentry node logic (#7368) · 653868c0
      Max Inden authored
      * client/authority-discovery: Remove sentry node logic
      
      The notion of sentry nodes has been deprecated (see [1] for details).
      This commit removes support for sentry nodes in the
      `client/authority-discovery` module.
      
      While removing `Role::Sentry` this commit also introduces
      `Role::Discover`, allowing a node to discover addresses of authorities
      without publishing ones own addresses. This will be needed in Polkadot
      for collator nodes.
      
      [1] https://github.com/paritytech/substrate/issues/6845
      
      * client/authority-discovery/service: Improve PeerId comment
      653868c0
  3. Oct 24, 2020
  4. Oct 23, 2020
  5. Oct 22, 2020
    • Bastian Köcher's avatar
      Improve `mock_impl_runtime_apis!` (#7370) · 79be0777
      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`
      79be0777
    • Cecile Tonglet's avatar
      Small fix for log line prefix (#7373) · d847c9b0
      Cecile Tonglet authored
      d847c9b0
    • Max Inden's avatar
      client/network: Make NetworkService::set_priority_group async (#7352) · 0fcf9d6c
      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`.
      0fcf9d6c
  6. Oct 21, 2020
  7. 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
  8. Oct 19, 2020
  9. Oct 18, 2020
  10. Oct 17, 2020
  11. Oct 16, 2020
  12. Oct 15, 2020