1. Feb 11, 2020
  2. Feb 10, 2020
    • Tomasz Drwięga's avatar
      Run offchain workers at hash, not number. (#4878) · 671cb852
      Tomasz Drwięga authored
      
      
      * Run offchain workers at particular hash, not number.
      
      * Don't run if not new best.
      
      * Don't run if not new best.
      
      * Update client/service/src/builder.rs
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      * Update client/service/src/builder.rs
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      * Update client/service/src/builder.rs
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      671cb852
    • Nikolay Volf's avatar
      update primitive types to 0.6.2 (#4866) · 613a3bc8
      Nikolay Volf authored
      613a3bc8
    • Bastian Köcher's avatar
      26a4b739
    • Marcio Diaz's avatar
      Add trait to get module and call names. (#4854) · b3883388
      Marcio Diaz authored
      
      
      * Add trait to get module and call names.
      
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      b3883388
    • Gavin Wood's avatar
      Avoid challenging those that can't be suspended anyway (#4804) · d472cd6e
      Gavin Wood authored
      * Merge branch 'gav-split-balanecs-vesting' into gav-upsub
      
      # Conflicts:
      #	Cargo.lock
      #	cli/Cargo.toml
      #	collator/Cargo.toml
      #	primitives/Cargo.toml
      #	runtime/common/Cargo.toml
      #	runtime/common/src/claims.rs
      #	runtime/kusama/Cargo.toml
      #	runtime/polkadot/Cargo.toml
      #	service/Cargo.toml
      
      * Fix tests
      d472cd6e
    • Sergey Pepyakin's avatar
      Refactor and document allocator (#4855) · 1fa3f7f6
      Sergey Pepyakin authored
      
      
      * Clarify code a bit.
      
      * Move code around.
      
      * Introduce `Order`.
      
      * Introduce `Link` structure.
      
      * Get rid of ptr_offset
      
      This is beneficial since ptr_offset is essentially makes us handle two different address spaces, global (i.e. `mem`) and heap local and without it things are becoming simpler.
      
      * Rename PREFIX_SIZE to HEADER_SIZE.
      
      This will come in the next commits.
      
      * Introduce a separate `Memory` trait.
      
      This is not necessary, but will come in handy for the upcoming changes.
      
      * Rename `ptr` to `header_ptr` where makes sense.
      
      * Introduce a `Header` type.
      
      * Make `bump` dumber.
      
      This allows us to pull `HEADER_SIZE` to see that we actually allocate `order.size() + HEADER_SIZE`.
      
      * Clean up.
      
      * Introduce a freelists struct.
      
      * Update documentation.
      
      * Make Sized requirement optional to make the PR truly back-compatible.
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarGavin Wood <[email protected]>
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      1fa3f7f6
    • Marcio Diaz's avatar
      Add trace on import block. (#4871) · 571e3c4d
      Marcio Diaz authored
      571e3c4d
    • Bastian Köcher's avatar
      Don't expose `Benchmarking` host functions by default (#4875) · 0d4586b1
      Bastian Köcher authored
      
      
      * Don't expose `Benchmarking` host functions by default
      
      * Fix tests
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      0d4586b1
    • Ashley's avatar
      Fix timer panics in the wasm light client (#4561) · ae03ee91
      Ashley authored
      * Make WASM browser thing compile
      
      * Fix
      
      * updated exit-future (github repo)
      
      * Switch to broadcast crate
      
      * Migrate client/cli
      
      * Switch exit-future to modernize branch
      
      * Small changes
      
      * Switch to cargo version and fix fg tests
      
      * fix basic-authorship
      
      * Fix crash on grafana macro
      
      * Fix grafana macro
      
      * Switch node python version
      
      * Disable record_metrics_slice in grafana macro on wasm
      
      * Update client/grafana-data-source/src/lib.rs
      
      * Revert "Update client/grafana-data-source/src/lib.rs"
      
      This reverts commit 888009a8.
      
      * Add wasm support for state machine
      
      * Switch to my own libp2p version
      
      * Revert "Switch to my own libp2p version"
      
      This reverts commit ce613871.
      
      * Revert "Add wasm support for state machine"
      
      This reverts commit de7eaa06
      
      .
      
      * Add sc-browser
      
      * Squash
      
      * remove sc-browser
      
      * Fix keystore on wasm
      
      * stubs for removed functions to make env compatible with old runtimes
      
      * Add test (that doesn't work)
      
      * Fix build scripts
      
      * Revert basic-authorship due to no panics
      
      * Revert cli/informant
      
      * Revert consensus
      
      * revert offchain
      
      * Update utils/browser/Cargo.toml
      
      Co-Authored-By: default avatarBenjamin Kampmann <[email protected]>
      
      * export console functions
      
      * Add new chainspec
      
      * Fix ws in chain spec
      
      * revert chainspec
      
      * Fix chainspec
      
      * Use an Option<PathBuf> in keystore instead of cfg flags
      
      * Remove crud
      
      * Only use wasm-timer for instant and systemtime
      
      * Remove telemetry changes
      
      * Assuming this is ok
      
      * Add a KeystoreConfig
      
      * Add stubs back in
      
      * Update libp2p
      
      * Revert "Add stubs back in"
      
      This reverts commit 4690cf18.
      
      * Remove commented js again
      
      * Bump kvdb-web version
      
      * Fix cli
      
      * Switch branch on futures-timer
      
      * Fix tests
      
      * Remove sc-client test build in check-web-wasm because there isn't a good way to build futures-timer with wasm-bindgen support in the build
      
      * Remove more things ^^
      
      * Switch branch on futures-timer back
      
      * Put DB io stats behind a cfg flag
      
      * Fix things
      
      * Don't timeout transports on wasm
      
      * Update branch of futures-timer and fix bad merge
      
      * Spawn informant
      
      * Fix network test
      
      * Fix delay resets
      
      * Changes
      
      * Fix tests
      
      * use wasm_timer for transaction pool
      
      * Fixes
      
      * Switch futures-timer to crates
      
      * Only diagnose futures on native
      
      * Fix sc-network-test tests
      
      * Select log level in js
      
      * Fix syncing ;^)
      
      * Allow disabling colours in the informant
      
      * Use OutputFormat enum for informant
      
      * MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master
      
      * Update futures-diagnose
      
      * Revert "MallocSizeOf impl on transaction pool broke stuff because wasm_timer::Instant doesnt impl it so just revert the transaction pool to master"
      
      This reverts commit baa4ffc9
      
      .
      
      * Pass whole chain spec in start_client
      
      * Get Instant::now to work in transaction pool again
      
      * Informant dep reordering
      
      Co-authored-by: default avatarPierre Krieger <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarSvyatoslav Nikolsky <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarDemi Obenour <[email protected]>
      ae03ee91
    • Cecile Tonglet's avatar
      Update trie-db to the latest (#4874) · 7e8ac2eb
      Cecile Tonglet authored
      7e8ac2eb
    • Gavin Wood's avatar
      Fix vesting logic (#4864) · f735d3e2
      Gavin Wood authored
      * Fix vesting logic
      
      * Bump runtime version
      
      * Docs.
      f735d3e2
    • Shawn Tabrizi's avatar
      Create Benchmarking Setup for Identity Pallet #4695 (#4818) · 8b6b093d
      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]>
      8b6b093d
    • h4x3rotab's avatar
      Export GRANDPA AuthorityPair when full_crypto is enabled (#4872) · 19b67cd9
      h4x3rotab authored
      * Export crypto_full feature in primitives/finality-grandpa
      
      * Export GRANDPA AuthorityPair when full_crypto is enabled
      19b67cd9
  3. Feb 09, 2020
  4. Feb 08, 2020
  5. Feb 07, 2020
  6. Feb 06, 2020
    • Nikolay Volf's avatar
      easy with threads (#4848) · f3742e70
      Nikolay Volf authored
      f3742e70
    • Wei Tang's avatar
      babe: pass epoch data via intermediates (#4807) · dec1bb7d
      Wei Tang authored
      * babe: pass epoch data via intermediates
      
      * Switch to use Box<dyn Any> for intermediates
      
      * Set intermediate.epoch to be Option
      
      * Fix proposer should put out an empty intermediate
      
      * Remove unnecessary encode/decode
      
      * Add EpochData to block_import_params in slot worker
      
      * Fix aura compile
      
      * Fix integration test
      dec1bb7d
    • Wei Tang's avatar
      Refactor epoch changes to a separate crate (#4785) · 8d7bf667
      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
      8d7bf667
    • gabriel klawitter's avatar
      ci: enable build for pre-tags (#4836) · 203445bb
      gabriel klawitter authored
      * build for pre-tags
      
      * shallow clone rustdocs
      203445bb
    • Bastian Köcher's avatar
      Allocator improvements/clean ups (#4838) · 13d88acc
      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
      13d88acc
    • Cecile Tonglet's avatar
      CLI improvements & fixes (#4812) · 099cd0f2
      Cecile Tonglet authored
      These are a few changes I missed during the refactoring.
      
      1. Initialization issue and boilerplate
      
          Most importantly: part of the `Configuration` initialization was done in `sc_cli::init`. This means the user can not benefit from this initialization boilerplate if they have multiple `Configuration` since `sc_cli::init` can only be called once.
      
      2. Boilerplate for `VersionInfo` and `Configuration`
      
          I'm also answering to the critic of @bkchr on the initialization using version: https://github.com/paritytech/substrate/pull/4692/files/bea809d4c14a2ede953227ac885e3b3f9771c548#r372047238 This will allow initializing a `Configuration` and provide the version by default.
      
      3. Loading the `chain_spec` explicitly
      
          In the past it was done automatically but in some cases we want to delay this. I moved the code to `Configuration.load_spec()` so it can be called later on. `chain_spec` can also be written directly to the `Configuration` without using this `load_spec` helper.
      
      4. [deleted]
      
      5. Fixing issue that prevents the user to override the port
      
          In the refactoring I introduced a bug by mistake that could potentially prevent the CLI user to override the ports if defaults where provided for these ports (only on cumulus).
      
      6. Change task_executor from Box to Arc
      
          This is useful for cumulus where we have 2 nodes with 2 separate Configuration that need to spawn tasks to the same runtime.
      
      7. Renamed TasksExecutorRequired to TaskExecutor
      
          For consistency.
      
      This is related to https://github.com/paritytech/cumulus/issues/24
      
      This is the continuation (and hopefully the end of) #4692 
      099cd0f2
    • Marcio Diaz's avatar
      faf608ee
    • Bastian Köcher's avatar
      Fix memory leak in runtime interface (#4837) · 7d83cabf
      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
      7d83cabf
    • Arkadiy Paronyan's avatar
      Fixed a few warnings (#4841) · 666b1c9f
      Arkadiy Paronyan authored
      666b1c9f
    • Jimmy Chu's avatar
      Node template folders restructuring (#4811) · 3fc91c76
      Jimmy Chu authored
      * Restructure node-template so it is clear that node, runtime, and pallets are separated
      * Separating to mock and tests
      * restructuring runtime to top-level
      * updated release script
      * updated Cargo.lock
      3fc91c76