1. Aug 12, 2019
  2. Aug 11, 2019
    • Pierre Krieger's avatar
      Refactor parse_and_execute (#3358) · 6fa84bae
      Pierre Krieger authored
      
      
      * Refactor `parse_and_execute`
      
      Adds a new function named `parse_and_prepare`, which prepares the environment and parses the command.
      Contrary to `parse_and_execute`, `parse_and_prepare` returns a struct that permis the user to execute the command, as opposed to execute it itself.
      
      `parse_and_execute` has been modified to use `parse_and_prepare` internally.
      
      * Embed dispatch functions directly into run()
      
      After the previous commit, we now have a lot of functions whose only one is to call other functions. And these other functions are called only from one location.
      Let's merge these two for clarity.
      
      * Deprecate parse_and_execute and replace it in node and node-template
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      6fa84bae
    • Gavin Wood's avatar
      Scale trait and move to u32 blocknumbers (#3357) · 14bb1151
      Gavin Wood authored
      
      
      * Scale trait and move to u32 blocknumbers.
      
      * Fixes
      
      * Cleanups
      
      * Update node/runtime/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Fix up some of the factory stuff.
      
      * Update core/sr-primitives/src/traits.rs
      
      Co-Authored-By: default avatarShawn Tabrizi <[email protected]>
      
      * Move Nonce/Index to u32 (#3361)
      
      * Force a non-borked version of upstream crate
      
      * Line lengths and runtime version bump
      14bb1151
  3. Aug 09, 2019
  4. Aug 08, 2019
    • André Silva's avatar
    • asynchronous rob's avatar
      remove unneeded as_ref call (#3349) · a1a8c982
      asynchronous rob authored
      a1a8c982
    • Arkadiy Paronyan's avatar
      Fixed warnings (#3345) · 17a851b4
      Arkadiy Paronyan authored and asynchronous rob's avatar asynchronous rob committed
      17a851b4
    • David Craven's avatar
      Remove Decode trait bound. (#3342) · a7c87f21
      David Craven authored
      a7c87f21
    • Pierre Krieger's avatar
      Service various cleanups (#3238) · bafc7202
      Pierre Krieger authored
      * Remove generic from sign()
      
      * Remove mandatory RuntimeGenesis trait req
      
      * Remove requirement from Configuration
      
      * Relax trait bounds of core/cli
      
      * Move method
      
      * The config field is no longer public
      
      * Remove Components from bounds of functions
      
      * Implement DerefMut for LightComponents
      
      * Implement Executor for Full/LightComponents
      
      * Fix bad merge
      
      * Fix forgotten config()
      
      * Fix build
      bafc7202
    • Logan Saether's avatar
      Fix documentation set_controller (#3340) · fe18b405
      Logan Saether authored
      The documentation for the `set_controller` function was copied from the function above it, however it does not do the same thing. Fixed the documentation to fit the correct description of what `set_controller` does.
      fe18b405
    • cheme's avatar
      Child storage tests and genesis fix. (#3185) · b0e1212d
      cheme authored
      * Using child storage, (srml-support only), test failing .
      
      * fix simple tests.
      
      * Enumerable by requiring owned struct (previous form only allow
      &'static).
      Broken tests are from genesis init.
      
      * implement for_child_keys_with_prefix
      
      * indent
      
      * clear_child_prefix fix.
      
      * clear_child_prefix fix 2.
      
      * fix for storage_impl, if/when allowing child and not child this could be
      reverted.
      
      * Fix lot of urlinked child genesis, still need to look upon actual
      genesis srml module code.
      Probably still a lot of broken code needing debugging.
      
      * switch well_known_key to their associated module child trie.
      Fix a genesis init (balance).
      Complete some testing.
      Comment some tests before using.
      
      * fixing test runtime child keys
      
      * latest commit fix broken genesis init
      
      * fix system balances child name.
      
      * Important fix: storage_root from test externalities need children (it is
      already the case for ext).
      
      * executive root with child calculation
      
      * Avoid empty trie on test ext.
      
      * Symetric removal of key for system.
      
      * commenting changes related tests.
      
      * Remove child module specifics.
      
      * fix issues.
      
      * fix some formatting
      
      * fix bench and bump runtime
      
      * Remove extend_storage_overlays, assimilate_storage do the same as is
      proper considering srml macro.
      
      * Fix warning for assimilate.
      
      * Removing kill as they do not impact any test cases.
      
      * Use tuple of storage map instead of two parameters. This changes the
      behavior of decl_storage genesis build closure (breaking api).
      
      * Do not use build storage before assimilate.
      
      * fix error
      
      * Update core/state-machine/src/backend.rs
      b0e1212d
    • Jim Posen's avatar
      srml-contracts: Refactor away some duplication in runtime functions. (#3257) · 0067b2d9
      Jim Posen authored
      * srml-contracts: Storage access micro-optimization.
      
      * srml-contracts: Refactor runtime functions to reduce duplication.
      
      * Bump node runtime impl version.
      0067b2d9
    • Bastian Köcher's avatar
      Make `--dev` to `--alice` again (#3338) · 7c1fc4cc
      Bastian Köcher authored
      7c1fc4cc
    • Bastian Köcher's avatar
      Adds `author_rotateKeys` RPC (#3337) · 0de7d9bb
      Bastian Köcher authored
      * Adds `author_rotateKeys` RPC
      
      `author_rotateKeys` will rotate all session keys, store them into the
      keystore and returns their encoded public keys as result. These encoded
      public keys can be used directly to send the transaction to the chain.
      
      * Review comments
      0de7d9bb
    • André Silva's avatar
      grandpa: track multiple live rounds in voter set state (#3298) · 6565e1f8
      André Silva authored
      * grandpa: track multiple live rounds in voter set state
      
      * grandpa: don't assume rounds are completed in-order
      
      * grandpa: fix tests
      
      * grandpa: don't assume round is being tracked on Environment::completed
      
      * grandpa: fix missing import in test
      6565e1f8
    • Xiliang Chen's avatar
      add post_dispatch (#3229) · 0f0df985
      Xiliang Chen authored
      * add post_dispatch
      
      * Update traits.rs
      
      * Update checked_extrinsic.rs
      
      * Update traits.rs
      
      * Update traits.rs
      
      * fix build issue
      
      * update runtime version
      
      * fix test build issue
      0f0df985
    • Pierre Krieger's avatar
      Switch offchain workers to new futures (#3285) · 3d65753d
      Pierre Krieger authored
      * Switch offchain workers to new futures
      
      * Fix tests
      3d65753d
    • Arkadiy Paronyan's avatar
      Improve console output (#3326) · b2927723
      Arkadiy Paronyan authored
      * Cache idle state
      
      * Display import error by default
      b2927723
    • Bastian Köcher's avatar
      Clean up CLI interface (#3334) · 60269d65
      Bastian Köcher authored
      * Clean up CLI interface
      
      - Removes `--validator` and `--grandpa-voter`
      - Make `--alice` etc work without `--dev`
      
      * Style fixes
      60269d65
    • Pierre Krieger's avatar
      Reintroduce mplex (reverts #3312) (#3328) · 63969014
      Pierre Krieger authored
      This reverts commit f11291cd.
      63969014
  5. Aug 07, 2019