Skip to content
  1. Feb 10, 2020
    • Shawn Tabrizi's avatar
      Create Benchmarking Setup for Identity Pallet #4695 (#4818) · e5a7fcc8
      Shawn Tabrizi authored
      
      
      * Starting
      
      * closer
      
      * Compiles!
      
      * comments
      
      * Create seperate mock
      
      * Remove changes to test env
      
      * Fix step calculation
      
      * Add host function
      
      * Add runtime api
      
      * compiles
      
      * Update to use offchain timestamp
      
      * Gives a result
      
      * added some CLI wip
      
      * make generic
      
      * Update instance
      
      * Remove CLI stuff
      
      * Remove last cli stuff
      
      * undo more changes
      
      * Update benchmarks
      
      * Update Cargo.lock
      
      * remove test
      
      * Move loop out of runtime
      
      * Benchmarking externalities
      
      * Benchmarking state
      
      * Implemented commit
      
      * Make CLI work, move loop back into runtime
      
      * Wipe resets to genesis
      
      * Speedup benchmarks
      
      * Use enum to select extrinsic within pallet
      
      * CLI controls which module and extrinsic to call
      
      * Select a pallet with cli
      
      * Add steps and repeats to cli
      
      * Output as CSV format
      
      * Introduce benchmark pallet
      
      * Append bench
      
      * Use Results
      
      * fix merge
      
      * Clear Identity benchmark
      
      * Bench request judgment and cancel request
      
      * Add final benchmarks
      
      * Fix CSV output
      
      * Start cleaning up for PR
      
      * Bump numbers in `wasmtime` integration tests.
      
      * More docs
      
      * Add rockdb feature to bench
      
      * Fix formatting issues
      
      * Add test feature to bench
      
      * Add test feature to bench
      
      * Add rocksdb feature flag
      
      * Update bench.rs
      
      Co-authored-by: default avatarArkadiy Paronyan <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      e5a7fcc8
    • h4x3rotab's avatar
      Export GRANDPA AuthorityPair when full_crypto is enabled (#4872) · 376deef3
      h4x3rotab authored
      * Export crypto_full feature in primitives/finality-grandpa
      
      * Export GRANDPA AuthorityPair when full_crypto is enabled
      376deef3
  2. Feb 09, 2020
  3. Feb 07, 2020
  4. Feb 06, 2020
    • Wei Tang's avatar
      Refactor epoch changes to a separate crate (#4785) · 4df27e76
      Wei Tang authored
      * Init epoch changes module
      
      * Initial integration of new epoch changes module for BABE
      
      * Fix all initial compile errors
      
      * rename: digest -> digests
      
      * Fix babe tests
      
      * Bump impl_version
      
      * Fix more test issues
      
      * Remove test flag for tree
      
      It unfortunately won't work for multiple crates.
      
      * Update cargo lock
      
      * Fix duplicate parking_lot version
      
      * Add missing license header
      4df27e76
    • Bastian Köcher's avatar
      Allocator improvements/clean ups (#4838) · 07daa525
      Bastian Köcher authored
      * FreeingBumpAllocator: Initialize the heads to `u32::max_value()`
      
      `self.heads` can point to an element with the index `0` in the heap.
      This would make the allocator fail to reuse this element.
      
      * Simplify the `PREFIX_SIZE` handling
      07daa525
    • Bastian Köcher's avatar
      Fix memory leak in runtime interface (#4837) · c7867e51
      Bastian Köcher authored
      * Fix memory leak in runtime interface
      
      We used `slice::from_raw_parts` in runtime-interface which did not free
      the memory afterwards. This pr changes it to `Vec::from_raw_parts` to
      make sure `drop` is called properly and the values are freed.
      
      * Check that `len` is non-zero
      
      * Adds comment
      c7867e51
  5. Feb 05, 2020
  6. Feb 04, 2020
    • Demi Obenour's avatar
      Bump `parking_lot` (#4817) · 0ab013bd
      Demi Obenour authored
      Hopefully this can be merged if the tests pass.
      0ab013bd
    • Bastian Köcher's avatar
      Fix flaky messed signature test (#4819) · cd0d2fd7
      Bastian Köcher authored
      When messing with the signature, we need to make sure that we acutally
      mess-up the signature. As the generated private/public key is random,
      the signature is random as well. It can happen that `bytes[0] ==
      bytes[2]` which makes the test fail. We fix this problem by just
      inverting the bytes at `0` and `2`.
      cd0d2fd7
  7. Feb 03, 2020
  8. Jan 31, 2020
  9. Jan 30, 2020
    • Bastian Köcher's avatar
      Expose information about the extrinsic in the metadata (#4774) · 45938d80
      Bastian Köcher authored
      * Expose information about the extrinsic in the metadata
      
      This pr exposes some information about the extrinsic used in the runtime
      via metadata. The following information are exposed:
      
      - Version of the extrinsic
      - List of all signed extensions used by the extrinsic.
      
      * Increment `spec_version`
      45938d80
    • Cecile Tonglet's avatar
      CLI API refactoring and improvement (#4692) · 605f643e
      Cecile Tonglet authored
      It changes the way we extended the CLI functionalities of substrate to allow more flexibility. (If this was not clear, here is another version: it changes the `sc_cli` API to allow more flexibility).
      
      This touches a few important things:
       - the startup of the async task with tokei:
          This was in node and node-template and I moved it to substrate. The idea is to have 1 time the code that handles unix signals (SIGTERM and SIGINT) properly. It is however possible to make this more generic to wait for a future instead and provide only a helper for the basic handling of SIGTERM and SIGINT.
       - increased the version of structopt and tokei
       - no more use of structopt internal's API
       - less use of generics
      
      Related to #4643 and https://github.com/paritytech/cumulus/pull/42: the implementation of "into_configuration" and "get_config" are similar but with better flexibility so it is now possible in cumulus to have the command-line arguments only of the run command for polkadot if we want
      
      Related to https://github.com/paritytech/cumulus/issues/24 and https://github.com/paritytech/cumulus/issues/34 : it will now be possible to make a configuration struct for polkadot with some overrides of the default parameters much more easily.
      605f643e
  10. Jan 29, 2020
  11. Jan 28, 2020
  12. Jan 27, 2020
  13. Jan 24, 2020
    • Bastian Köcher's avatar
      Introduces `author_hasKey` and `author_hasSessionKeys` rpc endpoints (#4720) · fc99887d
      Bastian Köcher authored
      
      
      * Introduces `author_hasKey` and `author_hasSessionKeys` rpc endpoints
      
      Both endpoints can be used to check if a key is present in the keystore.
      
      - `hasKey` works on with an individual public key and key type. It
      checks if a private key for the given combination exists in the
      keystore.
      - `hasSessionKeys` works with the full encoded session key blob stored
      on-chain in `nextKeys`. This requires that the given blob can be decoded
      by the runtime. It will return `true`, iff all public keys of the
      session key exist in the storage.
      
      Fixes: https://github.com/paritytech/substrate/issues/4696
      
      * Update client/rpc-api/src/author/error.rs
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      * Indentation
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      fc99887d
    • Nikolay Volf's avatar
      Async/await in transaction-graph (#4645) · 1614ce09
      Nikolay Volf authored
      * async/await in tx graph
      
      * review notes
      
      * remove unused typedef
      1614ce09
    • Nikolay Volf's avatar
      Refactor tx-pool maintenance and other high-level api (#4629) · 14e95f33
      Nikolay Volf authored
      * Reduction.
      
      * Reformation.
      
      * add locked timer stuff
      
      * fix issues and introduce full pool
      
      * arrange together
      
      * fix benches
      
      * fix new_light
      
      * Add revalidation test case
      
      * review fixes
      
      * review fixes
      
      * use just ready future
      
      * address review
      14e95f33
  14. Jan 23, 2020
  15. Jan 22, 2020
    • Bastian Köcher's avatar
      Move "wasm" allocator into its own crate (#4716) · 5bd6e94e
      Bastian Köcher authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      This moves the wasm-allocator (`FreeingBumpHeapAllocator`) into its own
      crate `sp-allocator`. This new crate can theoretically provide multiple
      different allocators. Besides moving the allocator, this pr also makes
      `FreeingBumpHeapAllocator` compile on `no_std`.
      5bd6e94e