1. Jul 15, 2019
  2. 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
  3. Jul 13, 2019
  4. 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
  5. Jul 11, 2019
  6. Jul 10, 2019
  7. 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
    • Pierre Krieger's avatar
      Change the import queue traits to take &mut self instead of &self (#3058) · 3e6f9051
      Pierre Krieger authored
      * SharedFinalityProofRequestBuilder -> BoxFinalityProofRequestBuilder
      
      * SharedThings -> BoxThings
      
      * Fix tests
      
      * build_request_data now takes &mut self
      
      * The other traits now also take &mut self
      
      * More or less fix tests
      
      * Fix tests
      
      * Fix more tests
      
      * Moar tests
      
      * Don't call make_block_import multiple time
      
      * Fix doctest
      3e6f9051
    • Tomasz Drwięga's avatar
      [offchain] Support for sign & verify for crypto keys (#3023) · 4dc625ff
      Tomasz Drwięga authored
      * Implement sign & verify.
      
      * Use phrases and password.
      
      * Sign & verify with authority keys.
      
      * Fix tests.
      
      * WiP
      
      * WiP
      
      * Allow the caller to decide on 'CryptoKind'.
      
      * Remove TODO.
      
      * Make seed private back.
      
      * Fix non-std build and bump version.
      
      * Use Into<u32> instead of asses.
      
      * Add missing typedef.
      4dc625ff
    • André Silva's avatar
      srml: system: prune block hash mapping (#3062) · ef7587d9
      André Silva authored
      * srml: system: prune block number to hash mapping
      
      * srml: system: add test for block hash mapping pruning
      
      * node: bump runtime version
      
      * srml: system: wrap long line
      
      * srml: system: use parameter type for block hash count
      
      * srml: system: prune block hash mapping before storage root calculation
      
      * srml: system: keep the genesis hash in block number map
      ef7587d9
  8. Jul 08, 2019
    • Pierre Krieger's avatar
      d5dc301e
    • David Craven's avatar
      Update deps. (#3060) · 42f564a6
      David Craven authored
      42f564a6
    • asynchronous rob's avatar
      Dispatch on-disabled digests from consensus modules (#3055) · bdd6e8bd
      asynchronous rob authored
      * on-disable primitives for engines
      
      * dispatch on-disabled digests from SRML consensus
      
      * bump runtime versions
      
      * use find_map
      bdd6e8bd
    • Shawn Tabrizi's avatar
      Make priviledged functions explicity use `origin` (#3045) · fdbb0f0f
      Shawn Tabrizi authored
      * Make priviledged functions explicity use `origin`
      
      * Fix typo in docs
      
      * Fix more tests
      
      * Remove `root` pathway, add semicolons
      fdbb0f0f
    • Bastian Köcher's avatar
      Make `RUSTFLAGS` configurable in `wasm-builder` (#3057) · 198e5c9f
      Bastian Köcher authored
      * Make `RUSTFLAGS` configurable in `wasm-builder`
      
      * Version ups
      
      * Update `Cargo.lock`
      198e5c9f
    • Pierre Krieger's avatar
      9be1ee8b
    • Pierre Krieger's avatar
      Network crate cleanups (#3049) · 09086cf7
      Pierre Krieger authored
      * Remove useless internal messages
      
      * Remove NetworkService::disconnect_peer
      
      * Remove NetworkMsg altogether
      
      * Rename ProtocolMsg ServerToWorkerMsg
      
      * Remove useless code
      
      * Add example for parse_str_addr
      
      * Move parse_str_addr and ProtocolId to config
      
      * Don't reexport the content of config
      
      * Rework the imports
      
      * More reexports rework
      
      * Add documentation
      
      * Move finalization report to network future
      
      * Move on_block_imported to worker
      
      * get_value/put_value no longer locking
      
      * local_peer_id() no longer locks
      
      * Remove FetchFuture
      
      * Service imports cleanup
      
      * Produce the network state in the network task
      
      * Merge network task and RPC network task
      
      * Move network methods to NetworkWorker
      
      * Remove Arc peers system from network
      
      * add_reserved_peer now goes through the channel
      
      * Remove Mutex around network swarm
      
      * Remove the FnOnce alias traits
      
      * Replace is_offline with num_connected
      
      * Improve style of poll()
      
      * Fix network tests
      
      * Some doc in service module
      
      * Remove macro export
      
      * Minor doc changes
      
      * Remove the synchronized() method of the import queue
      
      * Line width
      
      * Line widths
      
      * Fix import queue tests
      
      * Fix CLI tests
      09086cf7
    • asynchronous rob's avatar
      Slash and prove membership of prior sessions (#2970) · 60c54f0d
      asynchronous rob authored
      
      
      * skeleton for tracking historical sessions
      
      * refactor OpaqueKeys
      
      * some more skeleton work
      
      * adjust session to new OpaqueKeys API
      
      * further refactoring of key-type-ids
      
      * session gets validator ID parameter
      
      * run up against compiler
      
      * tweak staking to support new session changes
      
      * first run at child storage for deduplication
      
      * Make session use `AccountId` as `ValidatorId`
      
      * run up against child trie issues
      
      * switch to using normal trie but with a fixed prefix
      
      * clear out some println
      
      * add dedup test
      
      * flesh out historical module more
      
      * introduce ExposureOf for staking
      
      * test the historical module
      
      * WASM compiles
      
      * tests all compile
      
      * do some mock change
      
      * fix bulk of tests
      
      * fix staking tests
      
      * test obsolecence mechanic
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * some more style nits
      
      * a couple more nits
      
      * tweak tries
      
      * fix typo thie -> this
      60c54f0d
    • Arkadiy Paronyan's avatar
      a44650f1
  9. Jul 07, 2019