Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

upstream patch fixes #160

Merged
merged 13 commits into from
Nov 11, 2020
Merged

upstream patch fixes #160

merged 13 commits into from
Nov 11, 2020

Commits on Nov 10, 2020

  1. Fixes logging of target names with dashes (#7281)

    * Fixes logging of target names with dashes
    
    There was a bug in tracing-core which resulted in not supporting dashes
    in target names. This was fixed upstream. Besides that a test was added
    to ensure that we don't break this again.
    
    * Extend test
    bkchr authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    fd142dc View commit details
    Browse the repository at this point in the history
  2. client: fix log filters (#7241)

    * client: fix multiple logger filters
    
    * client: add test for log filters setup
    andresilva authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    273005f View commit details
    Browse the repository at this point in the history
  3. Fix logging from inside the WASM runtime (#7355)

    * 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
    bkchr authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    ba93b85 View commit details
    Browse the repository at this point in the history
  4. Print an error if an unregistered notifications protocol is used (#7457)

    * Print an error if an nregistered notifications protocol is used
    
    * Print an error if an nregistered notifications protocol is used
    
    * Update client/network/src/service.rs
    
    Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
    2 people authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    3d8df34 View commit details
    Browse the repository at this point in the history
  5. Fix wrong outgoing calculation in election (#7384)

    * Fix wrong outgoing calculation in election
    
    * Add test.
    
    * Lil bit better naming.
    kianenigma authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    3918e91 View commit details
    Browse the repository at this point in the history
  6. grandpa: fix tests

    andresilva authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    863398a View commit details
    Browse the repository at this point in the history
  7. *: Bump async-std to v1.6.5 (#7306)

    * *: Bump async-std to v1.6.5
    
    Prevent users from using v1.6.4 which faces issues receiving incoming
    TCP connections. See async-rs/async-std#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`.
    mxinden authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    1630f3d View commit details
    Browse the repository at this point in the history
  8. client/network: Remove option to disable yamux flow control (#7358)

    With the `OnRead` flow control option yamux "send[s] window updates only
    when data is read on the receiving end" and not as soon as "a Stream's
    receive window drops to 0".
    
    Yamux flow control has proven itself. This commit removes the feature
    flag. Yamux flow control is now always enabled.
    mxinden authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    55dc788 View commit details
    Browse the repository at this point in the history
  9. Make queryStorage and storagePairs unsafe RPC functions (#7342)

    The RPC calls can be rather expensive and can easily bring a RPC node in
    some problems ;)
    bkchr authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    bf8066a View commit details
    Browse the repository at this point in the history
  10. consensus: prioritize finality work over block import in queue (#7307)

    * consensus: prioritize finality work over block import in queue
    
    * consensus: add test for import queue task priority
    andresilva authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    9169f46 View commit details
    Browse the repository at this point in the history
  11. sync: only restart peers not doing finality related requests (#7322)

    * sync: only restart peers not doing finality related requests
    
    * sync: add test for sync restart
    
    * sync: add better docs to restart method
    andresilva authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    eee68d1 View commit details
    Browse the repository at this point in the history
  12. Undo phragmen merge

    jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    9857ac1 View commit details
    Browse the repository at this point in the history
  13. grandpa: fix early enactment of forced changes (#7321)

    * 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
    andresilva authored and jordy25519 committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    30932b2 View commit details
    Browse the repository at this point in the history