Skip to content
  1. Jul 17, 2019
  2. Jul 16, 2019
  3. Jul 15, 2019
  4. Jul 14, 2019
    • Pierre Krieger's avatar
      Improvements to the import queue (#3101) · fb9871a7
      Pierre Krieger authored
      * Remove block_imported
      
      * Move blocks results processing to sync
      
      * Remove methods from Link
      
      * Better errors
      
      * Allow cancelling the import queue
      
      * Restore the import trace
      
      * Fix network tests
      
      * Line widths
      
      * Use has_error instead
      
      * Minor style
      fb9871a7
  5. Jul 13, 2019
  6. Jul 12, 2019
    • Toralf Wittner's avatar
      Remove `sync::Context` trait. (#3105) · 5c22d05d
      Toralf Wittner authored
      Instead of passing a context around to each method, thereby introducing
      side-effecting I/O actions everywhere, with this PR `sync::ChainSync`
      only contains state which is updated by invoking various callback
      methods (`on_*`) and actionable items are returned as regular results
      from method calls, often iterators yielding requests that should be
      issued to peers. It is up to the caller to handle these in an
      appropriate way, currently `protocol` will send those as messages.
      5c22d05d
  7. Jul 11, 2019
  8. Jul 10, 2019
  9. Jul 09, 2019
    • thiolliere's avatar
      Make use of child storage for testExternalities and basicExternalities (#3009) · 0bc753ff
      thiolliere authored
      * impl test using both storage and child_storage
      
      * few fixes
      
      * remove unused code
      
      * impl PartialEq with children keys
      
      * fmt
      
      * implementation of basic with children + rename new
      
      * assert and test
      
      * no panic in runtime
      
      * address comments
      
      * fix
      0bc753ff
    • Max Inden's avatar
      Introduce flag to enable sentry nodes to participate in grandpa gossip (#3018) · cf5b132b
      Max Inden authored
      Given the following situation: A validator 'A' is not supposed to be
      connected to the public internet to protect it from e.g. a DoS attack.
      Instead it connects to a sentry node 'sentry-A' which connects to the
      public internet. Validator 'B' can reach validator 'A' via sentry node
      'sentry-A' and vice versa.
      
      A sentry node needs to participate in the grandpa gossip without
      becoming a validator itself in order to forward these message to its
      validator. This commit adds a new command line flag (`--grandpa-voter`)
      forcing a node to participate in the grandpa voting process even though
      no `--key` was specified. Due to the fact that it does not have a key,
      it does not become a validator in the network.
      
      In order to simulate the above situation this commit also adds a Docker
      Compose file (`scripts/sentry-node/docker-compose.yml`) with further
      documentation.
      cf5b132b
    • Gavin Wood's avatar
      Allow sub accounts to be derived from an TypeId. (#3039) · 180e30ea
      Gavin Wood authored
      * Allow sub accounts to be derived from an TypeId.
      
      * Deduplicate
      
      * Fix
      
      * Rephrase.
      180e30ea