1. Aug 14, 2019
  2. Aug 13, 2019
  3. Aug 12, 2019
  4. Aug 11, 2019
    • Pierre Krieger's avatar
      Refactor parse_and_execute (#3358) · e0f5dd9f
      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]>
      e0f5dd9f
    • Gavin Wood's avatar
      Scale trait and move to u32 blocknumbers (#3357) · 087c3cf6
      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
      087c3cf6
  5. Aug 09, 2019
  6. Aug 08, 2019
    • André Silva's avatar
    • asynchronous rob's avatar
      remove unneeded as_ref call (#3349) · 76d47365
      asynchronous rob authored
      76d47365
    • Arkadiy Paronyan's avatar
      Fixed warnings (#3345) · 360c0ff7
      Arkadiy Paronyan authored and asynchronous rob's avatar asynchronous rob committed
      360c0ff7
    • David Craven's avatar
      Remove Decode trait bound. (#3342) · c72789cc
      David Craven authored
      c72789cc
    • Pierre Krieger's avatar
      Service various cleanups (#3238) · a8449beb
      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
      a8449beb
    • Logan Saether's avatar
      Fix documentation set_controller (#3340) · 35128f74
      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.
      35128f74
    • cheme's avatar
      Child storage tests and genesis fix. (#3185) · c36d2477
      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
      c36d2477