Skip to content
  1. Aug 30, 2021
    • Georges's avatar
      Generate storage info for pallet authority_discovery (#9428) · ac2468c4
      Georges authored
      * Migrate Aura pallet to BoundedVec
      
      Implementing issue #8629
      
      * Fixed aura tests after BoundedVec change
      
      * Moved Vec to BoundedVec in authority-discovery
      
      * Merging into the main branch
      
      * Added MaxEncodedLen to crypto
      
      Need this without full_crypto to be able to add generate_store_info
      
      * Add generate_store_info for aura
      
      * Adding changes to Slot to add MaxEncodedLen
      
      * Adding generate_store_info to authority discovery
      
      * fmt
      
      * removing panics in runtime if vec size too large
      
      * authority-discovery: Remove panics in runtime
      Can happen if vec size is too large, so truncate the vec in that case
      
      * Adding logging when I truncate Vecs
      
      * Got the sign the other way around
      
      * Reverting pallet_aura changes
      This is already being addressed by PR #9371
      
      * Change BoundedVec to WeakBoundedVec
      
      More robust implementation following @thiolliere
      
       recommendation.
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      ac2468c4
  2. Aug 29, 2021
  3. Aug 27, 2021
  4. Aug 26, 2021
  5. Aug 25, 2021
    • Shawn Tabrizi's avatar
      Expose `storage_prefix` logic, and remove duplicate code (#9621) · 7c3890c6
      Shawn Tabrizi authored
      
      
      * expose storage prefix generation, remove duplicate code
      
      * remove more duplicate code
      
      * clean up import
      
      * fix io test
      
      * remove slicing
      
      * Update frame/support/src/storage/mod.rs
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      7c3890c6
    • Alexander Theißen's avatar
      Remove dependency on sandboxing host functions (#9592) · 531fd70e
      Alexander Theißen authored
      
      
      * Embed wasmi into the runtime
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      531fd70e
    • Shaun Wang's avatar
      pallet-proxy: emit events on proxy added. (#9546) · a7e714ae
      Shaun Wang authored
      * pallet-proxy: emit events on proxy added.
      
      * Apply review suggestions.
      a7e714ae
    • Bastian Köcher's avatar
      Fix `state_subscribeRuntimeVersion` for parachains (#9617) · 5a347ada
      Bastian Köcher authored
      The old implementation was listening for storage changes and every time
      a block changed the `CODE` storage field, it checked if the runtime
      version changed. It used the best block to compare against the latest
      known runtime version. It could happen that you processed the storage
      notification of block Y and checked the runtime version of block X (the
      current best block). This is also what happened on parachains.
      Parachains import blocks and set the new best block in a later step.
      This means we imported the block that changed the code, got notified and
      checked the runtime version of the current best block (which would still
      be the parent of the block that changed the runtime). As the parent did
      not changed the runtime, the runtime version also did not changed and we
      never notified the subscribers.
      
      The new implementation now switches to listen for best imported blocks.
      Every time we import a new best block, we check its runtime version
      against the latest known runtime version. As we also send a notification
      when the parachains sets a block as new best block, we will trigger this
      code path correctly. It moves some computation from checking if the key
      was modified to getting the runtime version. As fetching the runtime
      version is a rather common pattern, it should not make any big
      difference performancewise.
      5a347ada
  6. Aug 24, 2021
    • Bastian Köcher's avatar
      Upgrade tokio to 1.10 (#9575) · f92e5c5e
      Bastian Köcher authored
      * Upgrade tokio to 1.10
      
      * Fix test runner
      
      * Try fix it
      
      * Update Cargo.lock
      
      * Review feedback
      
      * ahhhh
      
      * FML
      
      * FMT
      
      * Fix tests
      f92e5c5e
    • Tomasz Drwięga's avatar
      Better RPC prometheus metrics. (#9358) · d722c442
      Tomasz Drwięga authored
      
      
      * Better RPC prometehus metrics.
      
      * Add session metrics.
      
      * Add counting requests as well.
      
      * Fix type for web build.
      
      * Fix browser-node
      
      * Filter out unknown method names.
      
      * Change Gauge to Counters
      
      * Use micros instead of millis.
      
      * cargo fmt
      
      * Update client/rpc-servers/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * move log to separate lines.
      
      * Fix compilation.
      
      * cargo +nightly fmt --all
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      d722c442
    • Vladimir Istyufeev's avatar
      3abe7cc4
    • Bastian Köcher's avatar
      Fetch runtime code from storage cache when using proofing backend (#9611) · 30ce8bbc
      Bastian Köcher authored
      Before we fetched the runtime code from the `TrieBackend` and this lead
      to not using the storage cache. Thus, we recalculated the storage hash
      for the runtime code on every call into the runtime and this killed the
      performance on parachains block authoring. The solution is to fetch the
      runtime code from the storage cache, to make sure we use the cached
      storage cache.
      30ce8bbc
    • Alexander Theißen's avatar
      Remove useless borrow (#9615) · ac9c3259
      Alexander Theißen authored
      ac9c3259
    • Gavin Wood's avatar
      Fix spelling (#9614) · 84452e8c
      Gavin Wood authored
      84452e8c
    • brenzi's avatar
      rebranding SubstraTEE to integritee (#9248) · 5f144e15
      brenzi authored
      prefix 13 for parachain
      prefix 113 for sidechains and offchain workers involving a runtime
      5f144e15
    • Zeke Mostov's avatar
      pallet-vesting: Support multiple, merge-able vesting schedules (#9202) · ede36408
      Zeke Mostov authored
      
      
      * Support multiple, mergable vesting schedules
      
      * Update node runtime
      
      * Remove some TODO design questions and put them as commennts
      
      * Update frame/vesting/src/benchmarking.rs
      
      * Syntax and comment clean up
      
      * Create filter enum for removing schedules
      
      * Dry vesting calls with do_vest
      
      * Improve old benchmarks to account for max schedules
      
      * Update WeightInfo trait and make dummy fns
      
      * Add merge_schedule weights
      
      * Explicitly test multiple vesting scheudles
      
      * Make new vesting tests more more clear
      
      * Apply suggestions from code review
      
      * Update remove_vesting_schedule to error with no index
      
      * Try reduce spacing diff
      
      * Apply suggestions from code review
      
      * Use get on vesting for bounds check; check origin first
      
      * No filter tuple; various simplifications
      
      * unwrap or default when getting user schedules
      
      * spaces be gone
      
      * ReadMe fixes
      
      * Update frame/vesting/src/lib.rs
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * address some comments for docs
      
      * merge sched docs
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * log error when trying to push to vesting vec
      
      * use let Some, not is_some
      
      * remove_vesting_schedule u32, not optin
      
      * new not try_new, create validate builder; VestingInfo
      
      * Merge prep: break out tests and mock
      
      * Add files forgot to include in merge
      
      * revert some accidental changes to merged files
      
      * Revert remaining accidental file changes
      
      * More revert of accidental file change
      
      * Try to reduce diff on tests
      
      * namespace Vesting; check key when key should not exist;
      
      * ending_block throws error on per_block of 0
      
      * Try improve merge vesting info comment
      
      * Update frame/vesting/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * add validate + correct; handle duration > blocknumber
      
      * Move vesting_info module to its own file
      
      * Seperate Vesting/locks updates from writing
      
      * Add can_add_vesting schedule
      
      * Adjust min vested transfer to be greater than all ED
      
      * Initial integrity test impl
      
      * merge_finished_and_yet_to_be_started_schedules
      
      * Make sure to assert storage items are cleaned up
      
      * Migration initial impl (not tested)
      
      * Correct try-runtime hooks
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * header
      
      * WIP: improve benchmarks
      
      * Benchmarking working
      
      * benchmarking: step over max schedules
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Simplify APIs by accepting vec; convert to bounded on write
      
      * Test:  build_genesis_has_storage_version_v1
      
      * Test more error cases
      
      * Hack to get polkadot weights to work; should revert later
      
      * Improve benchmarking; works on polkadot
      
      * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * WIP override storage
      
      * Set storage not working example
      
      * Remove unused tests
      
      * VestingInfo: make public, derive MaxEndcodedLen
      
      * Rename ending_block to ending_block_as_balance
      
      * Superificial improvements
      
      * Check for end block infinite, not just duration
      
      * More superficial update
      
      * Update tests
      
      * Test vest with multi schedule
      
      * Don't use half max balance in benchmarks
      
      * Use debug_assert when locked is unexpected 0
      
      * Implement exec_action
      
      * Simplify per_block calc in vesting_info
      
      * VestingInfo.validate in add_vesting_schedule & can_add_vesting_schedule
      
      * Simplify post migrate check
      
      * Remove merge event
      
      * Minor benchmarking updates
      
      * Remove VestingInfo.correct
      
      * per_block accesor max with 1
      
      * Improve comment
      
      * Remoe debug
      
      * Fix add schedule comment
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * no ref for should_remove param
      
      * Remove unused vestingaction derive
      
      * Asserts to show balance unlock in merge benchmark
      
      * Remove unused imports
      
      * trivial
      
      * Fix benchmark asserts to handle non-multiple of 20 locked
      
      * Add generate_storage_info
      
      * migration :facepalm
      
      * Remove per_block 0 logic
      
      * Update frame/vesting/src/lib.rs
      
      * Do not check for ending later than greatest block
      
      * Apply suggestions from code review
      
      * Benchmarks: simplify vesting schedule creation
      
      * Add log back for migration
      
      * Add note in ext docs explaining that all schedules will vest
      
      * Make integrity test work
      
      * Improve integrity test
      
      * Remove unnescary type param from VestingInfo::new
      
      * Remove unnescary resut for ending_block_as_balance
      
      * Remove T param from ending_block_as_balance
      
      * Reduce visibility of raw_per_block
      
      * Remove unused type param for validate
      
      * update old comment
      
      * Make log a dep; log warn in migrate
      
      * VestingInfo.validate returns Err(()), no T type param
      
      * Try improve report_schedule_updates
      
      * is_valid, not validate
      
      * revert node runtime reorg;
      
      * change schedule validity check to just warning
      
      * Simplify merge_vesting_info return type
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Add warning for migration
      
      * Fix indentation
      
      * Delete duplicate warnings
      
      * Reduce diff in node runtime
      
      * Fix benchmark build
      
      * Upgrade cargo.toml to use 4.0.0-dev
      
      * Cleanup
      
      * MaxVestingSchedulesGetter initial impl
      
      * MinVestedTransfer getter inintial impl
      
      * Test MaxVestingSchedules & MinVestedTransfer getters; use getters in benchmarks
      
      * Run cargo fmt
      
      * Revert MinVestedTransfer & MaxVestingSchedules getters; Add integrity test
      
      * Make MAX_VESTING_SCHEDULES a const
      
      * fmt
      
      * WIP: benchmark improvements
      
      * Finish benchmark update
      
      * Add test for transfer to account with less than ed
      
      * Rm min_new_account_transfer; move sp-io to dev-dep
      
      * Reduce cargo.toml diff
      
      * Explain MAX_VESTING_SCHEDULES choice
      
      * Fix after merge
      
      * Try fix CI complaints
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_vesting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/vesting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fmt
      
      * trigger
      
      * fmt
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarkianenigma <[email protected]>
      ede36408
  7. Aug 23, 2021
  8. Aug 22, 2021
  9. Aug 20, 2021
  10. Aug 19, 2021
    • dependabot[bot]'s avatar
      Bump directories from 3.0.1 to 3.0.2 (#9589) · 8a004370
      dependabot[bot] authored
      
      
      Bumps [directories](https://github.com/soc/directories-rs) from 3.0.1 to 3.0.2.
      - [Release notes](https://github.com/soc/directories-rs/releases)
      - [Commits](https://github.com/soc/directories-rs/commits)
      
      ---
      updated-dependencies:
      - dependency-name: directories
        dependency-type: direct:production
        update-type: version-update:semver-patch
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      8a004370
    • dependabot[bot]'s avatar
      Bump prost from 0.7.0 to 0.8.0 (#9560) · b28654c4
      dependabot[bot] authored
      
      
      Bumps [prost](https://github.com/tokio-rs/prost) from 0.7.0 to 0.8.0.
      - [Release notes](https://github.com/tokio-rs/prost/releases)
      - [Commits](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0)
      
      ---
      updated-dependencies:
      - dependency-name: prost
        dependency-type: direct:production
        update-type: version-update:semver-minor
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      b28654c4
    • dependabot[bot]'s avatar
      Bump bitflags from 1.2.1 to 1.3.2 (#9568) · 13d2adc7
      dependabot[bot] authored
      
      
      Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.2.1 to 1.3.2.
      - [Release notes](https://github.com/bitflags/bitflags/releases)
      - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
      - [Commits](https://github.com/bitflags/bitflags/compare/1.2.1...1.3.2)
      
      ---
      updated-dependencies:
      - dependency-name: bitflags
        dependency-type: direct:production
        update-type: version-update:semver-minor
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      13d2adc7
    • Wei Tang's avatar
      Do not implement () for Contains (#9582) · b5b2abc7
      Wei Tang authored
      b5b2abc7
    • Dmitry Kashitsyn's avatar
      Integrate Wasmer into Substrate sandbox environment (#5920) · 61606a0b
      Dmitry Kashitsyn authored
      
      
      * Add comments and refactor Sandbox module
      
      * Adds some comments
      
      * Add wasmtime instance to the sandbox and delegate calls
      
      * Adds module imports stub
      
      * WIP state holder via *mut
      
      * My take at the problem
      
      * Brings back invoke and instantiate implementation details
      
      * Removes redundant bound
      
      * Code cleanup
      
      * Fixes invoke closure
      
      * Refactors FunctionExecutor to eliminate lifetime
      
      * Wraps `FunctionExecutor::sandbox_store` in `RefCell`
      
      * Renames `FunctionExecutor::heap` to `allocator`
      
      * Wraps `FunctionExecutor::allocator` in `RefCell`
      
      * Refactors FunctionExecutor to `Rc<Inner>` pattern
      
      * Implements scoped TLS for FunctionExecutor
      
      * Fixes wasmi instancing
      
      * Fixes sandbox asserts
      
      * Makes sandbox compile after wasmtime API change
      
      * Uses Vurich/wasmtime for the Lightbeam backend
      
      * Uses wasmtime instead of wasmi for sandbox API results
      
      * Refactors sandbox to use one  of the execution backends at a time
      
      * Fixes wasmtime module instantiation
      
      * TEMP vurich branch stuff
      
      * Adds wasmer impl stub
      
      * Adds get global
      
      * Fixes warnings
      
      * Adds wasmer invoke impl
      
      * Implements host function interface for wasmer
      
      * Fixes wasmer instantiation result
      
      * Adds workaround to remove debug_assert
      
      * Fixes import object generation for wasmer
      
      * Attempt to propagate wasmer::Store through sandbox::Store
      
      * Wraps `sandbox::Store::memories` in `RefCell`
      
      * Moves `sandbox::instantiate` to `sandbox::Store`
      
      * Eliminate `RefCell<memories>`
      
      * Implements `HostState::memory_get/set`, removes accidental `borrow_mut`
      
      * Fixes sandbox memory handling for wasmi
      
      * Fix memory allocation
      
      * Resets Cargo.lock to match master
      
      * Fixes compilation
      
      * Refactors sandbox to use TLS for dispatch_thunk propagation to wasmer
      
      * Pass dispatch thunk to the sandbox as a TLS
      
      * Initialize dispatch thunk holder in `SandboxInstance`
      
      * Comment out Wasmtime/Lightbeam sandbox backend
      
      * Revert wasmtime back to mainstream
      
      * Adds SandboxExecutionMethod enum for cli param
      
      * Cleanup sandbox code
      
      * Allow wasmi to access wasmer memory regions
      
      * More cleanup
      
      * Remove debug logging, replace asserts with runtime errors
      
      * Revert "Adds SandboxExecutionMethod enum for cli param"
      
      This reverts commit dcb2b1d3b54145ab51ad2e3fef0d980ba215b596.
      
      * Fixes warnings
      
      * Fixes indentation and line width
      
      * Fix return types condition
      
      * Puts everything related under the `wasmer-sandbox` feature flag
      
      * Fixes warnings
      
      * Address grumbles
      
      * Split instantiate per backend
      
      * More splits
      
      * Refacmemory allocation
      
      * Nitpicks
      
      * Attempt to wrap wasmer memory in protoco enforcing type
      
      * Revert renaming
      
      * WIP wasm buffer proxy API
      
      * Reimplement util::wasmer::MemoryRef to use buffers instead of memory slices
      
      * Adds WasmiMemoryWrapper and MemoryTransfer trait
      
      * Refactor naming
      
      * Perform all memory transfers using MemoryTransfer
      
      * Adds allocating `read`
      
      * Adds comments
      
      * Removes unused imports
      
      * Removes now unused function
      
      * Pulls Cargo.lock from origin/master
      
      * Fix rustdoc
      
      * Removes unused `TransferError`
      
      * Update Cargo.lock
      
      * Removes unused import
      
      * cargo fmt
      
      * Fix feature dependency graph
      
      * Feature should flow from the top level crate
      	* We should not assume a specific workspace structure
      * sc-executor-wasmi does not use the feature
      * sc-executor-wasmtime should not know about the feature
      
      * Fix doc typo
      
      * Enable wasmer-sandbox by default (for now)
      
      It will be removed before merge. It is so that the benchbot
      uses the wasmer sandbox.
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Revert "cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs"
      
      This reverts commit d713590ba45387c4204b2ad97c8bd6f6ebabda4e.
      
      * cargo fmt
      
      * Add ci-check to prevent wasmer sandbox build breaking
      
      * Run tests with wasmer-sandbox enabled
      
      * Revert "Run tests with wasmer-sandbox enabled"
      
      This reverts commit cff63156a162f9ffdab23e7cb94a30f44e320f8a.
      
      Co-authored-by: default avatarSergei Shulepov <[email protected]>
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      61606a0b
    • Shawn Tabrizi's avatar
      Custom Benchmark Errors and Override (#9517) · ccfe485b
      Shawn Tabrizi authored
      
      
      * initial idea
      
      * update benchmark test to frame v2
      
      * fix some errors
      
      * fixes for elec phrag
      
      * fix tests
      
      * update extrinsic time and docs
      
      * fix import
      
      * undo extra changes
      
      * helper function
      
      * wrong way
      
      * Update frame/benchmarking/src/utils.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * doesnt need encode/decode
      
      * fix benchmark return
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      ccfe485b
    • Kian Paimani's avatar
      remove the uselsss weight return type from election provider API (#9569) · 7a32c350
      Kian Paimani authored
      
      
      * remove the uselsss weight return type from election provider API
      
      * fix everything, should be ready for final benchmark
      
      * simplify on_init a bit furhter
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * remove unwraps
      
      * fmt
      
      * Update lock file
      
      * whitelist block weight
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * fix warning
      
      Co-authored-by: default avatarParity Benchmarking Bot <[email protected]>
      7a32c350
  11. Aug 18, 2021
    • Radu Popa's avatar
      upgrade simnet tests to v8 (#9573) · 354b77fb
      Radu Popa authored
      
      
      * upgrade simnet tests to v8
      
      * undo change by mistake
      
      * add suggested changes
      
      * rm un-used script
      
      * echo config of simnet tests
      
      * use proper identation and rm : to fix ci-lint
      
      * Update .gitlab-ci.yml
      
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      
      * fix description for tets
      
      * rm build for PRs from this branch
      
      * dummy trigger ci
      
      * rm content for future PR
      
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      354b77fb
    • Ashley's avatar
      Make choosing an executor (native/wasm) an explicit part of service construction (#9525) · bad45445
      Ashley authored
      
      
      * Split native executor stuff from wasm executor stuff
      
      * Remove `native_runtime_version` in places
      
      * Fix warning
      
      * Fix test warning
      
      * Remove redundant NativeRuntimeInfo trait
      
      * Add a warning for use_native
      
      * Run cargo fmt
      
      * Revert "Add a warning for use_native"
      
      This reverts commit 9494f765a06037e991dd60524f2ed1b14649bfd6.
      
      * Make choosing an executor (native/wasm) an explicit part of service construction
      
      * Add Cargo.lock
      
      * Rename Executor to ExecutorDispatch
      
      * Update bin/node/executor/src/lib.rs
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * Fix tests
      
      * Fix minor node-executor error
      
      * Fix node cli command thing
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      bad45445
  12. Aug 17, 2021
  13. Aug 16, 2021
    • Ashley's avatar
      Simplify `NativeExecutionDispatch` and remove the `native_executor_instance!` macro (#9562) · 7caaa9ef
      Ashley authored
      * Remove the `native_executor_instance!` macro
      
      * Add comment to test runner ex
      
      * Fix comments
      7caaa9ef
    • Trevor Arjeski's avatar
      RUSTSEC-2021-0076 bump libsecp256k1 (#9391) · d9f02296
      Trevor Arjeski authored
      
      
      * RUSTSEC-2021-0076 bump libsecp256k1
      
      libsecp256k1 allows overflowing signatures
      https://rustsec.org/advisories/RUSTSEC-2021-0076
      
      Changes were made to conform to libsecp256k1 version differences.
      
      Closes #9356
      
      * parse_standard_slice() -> parse_overflowing_slice()
      
      * Added v2 host function for ecdsa_verify
      
      * Add feature tag over helpers
      
      * Added ecdsa_verify v2 to test runner
      
      * PR feedback
      
      - Spaces -> tabs
      - renamed two helper functions
      
      * Fixed imports after rebasing
      
      * Bump rest of libsecp256k1 (and libp2p)
      
      libp2p also uses libsecp256k1 so it is required to be bumped too, along
      with all the version difference changes.
      
      * Add version2 for ecdsa pubkey recovery
      
      * libp2p rebase master fixes
      
      * Fix test panic when non Behaviour event is returned
      
      * Update bin/node/browser-testing/Cargo.toml
      
      * Update primitives/core/src/ecdsa.rs
      
      * Update primitives/core/src/ecdsa.rs
      
      * Update Cargo.lock
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      d9f02296