Skip to content
  1. Dec 01, 2021
    • Shawn Tabrizi's avatar
      XCM Benchmarks for Generic Instructions (#3940) · bf5808eb
      Shawn Tabrizi authored
      
      
      * initial stuff
      
      * quick fixes
      
      * move to individual tests
      
      * dont need these
      
      * Update benchmarking.rs
      
      * add to westend
      
      * make benchmarks execute
      
      * fix compile
      
      * add post_execute
      
      * ClaimAsset benchmark working
      
      * subscribe and unsubscribe benchmarks
      
      * benchmark for initiate reserve withdraw
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * fix spell check
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * update worst case for query_holding
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * move verification logic below
      
      * introduce worst case holding to initiate reserve withdraw
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * feedback
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * Revert "cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs"
      
      This reverts commit 277903944be620dc57d83b9bcf3b462d2fb73ab5.
      
      * fix benchmark template
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * use response::version
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * refactor worst case holding
      
      * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
      
      * fmt
      
      * one more todo needs to be labeled
      
      * change option to result with benchmark error
      
      * fmt and fix import
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      bf5808eb
    • Chevdor's avatar
      Announce only on releases (#4417) · 55d07ee3
      Chevdor authored
      * Announce only on releases
      
      * Add filtering to send announces for pre-releases only where desired
      55d07ee3
    • Shawn Tabrizi's avatar
      Companion for 10379 (EnsureOneOf) (#4405) · 3771b90f
      Shawn Tabrizi authored
      
      
      * new ensure one of
      
      * fmt
      
      * Update lib.rs
      
      * Update substrate
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      3771b90f
    • zjb0807's avatar
      add pallet-babe/std (#4438) · 77460393
      zjb0807 authored
      77460393
    • dependabot[bot]'s avatar
      Bump nix from 0.20.0 to 0.23.0 (#4430) · ee2c373f
      dependabot[bot] authored
      
      
      Bumps [nix](https://github.com/nix-rust/nix) from 0.20.0 to 0.23.0.
      - [Release notes](https://github.com/nix-rust/nix/releases)
      - [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/nix-rust/nix/compare/v0.20.0...v0.23.0)
      
      ---
      updated-dependencies:
      - dependency-name: nix
        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>
      ee2c373f
    • Bernhard Schuster's avatar
      bb93a997
    • dependabot[bot]'s avatar
      Bump assert_cmd from 1.0.8 to 2.0.2 (#4431) · 04d3ca5b
      dependabot[bot] authored
      
      
      Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 1.0.8 to 2.0.2.
      - [Release notes](https://github.com/assert-rs/assert_cmd/releases)
      - [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/assert-rs/assert_cmd/compare/v1.0.8...v2.0.2)
      
      ---
      updated-dependencies:
      - dependency-name: assert_cmd
        dependency-type: direct:production
        update-type: version-update:semver-major
      ...
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      04d3ca5b
    • thiolliere's avatar
      companion for pallet order fix. (#4181) · e16f71b7
      thiolliere authored
      
      
      * companion
      
      * remove no-op duplicated function
      
      * fmt
      
      * add comment on constraint
      
      * Run cargo update
      
      * fix integration test
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      e16f71b7
  2. Nov 30, 2021
    • Sergey Pepyakin's avatar
      pvf-precheck: Candidate Validation Changes (#4409) · 8f75230e
      Sergey Pepyakin authored
      
      
      * pvf-precheck: Candidate Validation Changes
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      
      * Rename `MockValidationBackend` and specialize it
      
      * Add pre-check tests
      
      Co-authored-by: default avatarChris Sosnin <[email protected]>
      8f75230e
    • Enoch Chejieh's avatar
      Update system event variants (#4339) · 27d001db
      Enoch Chejieh authored
      
      
      * chore: update system event variants
      
      * chore: update system event variants
      
      * chore: modified event variants
      
      * Update Substrate
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      27d001db
    • dependabot[bot]'s avatar
      Bump clap from 2.33.3 to 2.34.0 (#4414) · 0cca1d04
      dependabot[bot] authored
      
      
      Bumps [clap](https://github.com/clap-rs/clap) from 2.33.3 to 2.34.0.
      - [Release notes](https://github.com/clap-rs/clap/releases)
      - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
      - [Commits](https://github.com/clap-rs/clap/commits)
      
      ---
      updated-dependencies:
      - dependency-name: clap
        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>
      0cca1d04
    • Robert Klotzner's avatar
      Double time we give spawned tasks. (#4415) · ce27250c
      Robert Klotzner authored
      * Double time we give spawned tasks.
      
      * Increase time even more, for better robustness.
      ce27250c
    • zjb0807's avatar
      Companion for #10324 - update frame-benchmarking/runtime-benchmarks (#4387) · a7843702
      zjb0807 authored
      
      
      * update frame-benchmarking/runtime-benchmarks
      
      * Update Substrate
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      a7843702
    • Lldenaurois's avatar
      Revert "remove provisioner checks (#4254)" (#4375) · 22431214
      Lldenaurois authored
      * Revert "remove provisioner checks (#4254)"
      
      This reverts commit d5d916a9.
      
      * Remove TODO in implementer's guide
      22431214
    • Chevdor's avatar
    • Sergey Pepyakin's avatar
      pvf-precheck: Add `PvfCheckStatement` to polkadot-primitives (#4406) · 5e5aa668
      Sergey Pepyakin authored
      * pvf-precheck: Add `sign` in subsystem-util
      
      Right now, most of operations that sign stuff in polkadot protocol are
      handled by a very convenient tool - `Signed`. However `Signed` assumes
      that whatever is signed is anchored to some `parent_hash` which works
      for most cases, but does not work for others.
      
      One instance of such a case is pre-checking (#3211). There validators
      submit signed votes on-chain. A vote is valid for the entire session. If
      we were to use `Signed` we would have to root a vote in some block of
      that session and during vote verification check that this block is
      indeed within the session. This is especially annoying since we agreed
      to use unsigned extrinsics to submit votes and we need to make the
      unsigned extrinsic validation as slim as possible.
      
      (FWIW, the definition of a pre-checking vote can be seen in the next
      diff in the stack)
      
      That's the reason why we opted-out from using `Signed` for pre-checking
      and decided to go with the manual signing approach. Almost every piece
      of machinery is in place except for signing which is presented in this
      PR.
      
      * pvf-precheck: Add `PvfCheckStatement` to polkadot-primitives
      
      This is an insubstantial PR that just unlocks PRs down the line. This PR
      is a part of #3211.
      
      Regarding the `PvfCheckStatement` struct itself: this is a structure
      that will be used to convert from/into the binary representation and
      ultimately will be used to sign and submit votes onto chain.
      5e5aa668
    • Sergey Pepyakin's avatar
      pvf-precheck: Add `sign` in subsystem-util (#4407) · 9f778ccf
      Sergey Pepyakin authored
      Right now, most of operations that sign stuff in polkadot protocol are
      handled by a very convenient tool - `Signed`. However `Signed` assumes
      that whatever is signed is anchored to some `parent_hash` which works
      for most cases, but does not work for others.
      
      One instance of such a case is pre-checking (#3211). There validators
      submit signed votes on-chain. A vote is valid for the entire session. If
      we were to use `Signed` we would have to root a vote in some block of
      that session and during vote verification check that this block is
      indeed within the session. This is especially annoying since we agreed
      to use unsigned extrinsics to submit votes and we need to make the
      unsigned extrinsic validation as slim as possible.
      
      (FWIW, the definition of a pre-checking vote can be seen in the next
      diff in the stack)
      
      That's the reason why we opted-out from using `Signed` for pre-checking
      and decided to go with the manual signing approach. Almost every piece
      of machinery is in place except for signing which is presented in this
      PR.
      9f778ccf
    • Bernhard Schuster's avatar
      make chain selection typed and more explicit in naming and logging (#4345) · 13f0e5d7
      Bernhard Schuster authored
      * minor: assure conditions match
      
      This simplifies visual integrity checks that an overseer is connected
      when it has to be.
      
      * fix: avoid printing a misleading log in case of the disabled disputes feature
      
      * chore: comments
      
      * add expressive types for the selection algorithm
      13f0e5d7
  3. Nov 29, 2021
  4. Nov 28, 2021
  5. Nov 27, 2021
  6. Nov 26, 2021
    • Sergey Pepyakin's avatar
      Do not log PVF prunning every hour (#4372) · f6b42151
      Sergey Pepyakin authored
      This lowers the level of the PVF pruning.
      
      Closes https://github.com/paritytech/polkadot/issues/4361
      f6b42151
    • Sergey Pepyakin's avatar
      Impose new restrictions on paras init and cleanup (#4360) · bce0e5ac
      Sergey Pepyakin authored
      * Impose new restrictions on paras init and cleanup
      
      For upcoming PVF pre-checking feature we will need to impose a couple of
      new restrictions for:
      
      - `schedule_para_initialize`.
      - `schedule_para_cleanup`.
      
      Specifically, for the former we do not want to allow registration of
      wasm blob that is empty, i.e. 0 bytes. While that currently already
      does not make a lot of sense, it allows us to simplify the PVF
      pre-checking logic: if this PR is deployed before the following changes
      for PVF prechecking then we can be sure that no paras onboarding have to
      have to go through the PVF pre-checking. In case, we deploy it
      altogether this property will allow us to distingush paras that came in
      before PVF pre-checking.
      
      For `schedule_para_cleanup` we do not want to allow offboarding of paras
      that are undergoing the upgrade process. While this is not a harsh
      restriction this change allows us to avoid making the PVF prechecking
      more complicated than it has to be.
      
      * Add a test for schedule_para_initialize
      
      * Link to `ParaLifecycle::is_stable` in docs.
      
      * `schedule_para_{init,cleanup}` docs
      
      Now they link to their original declarations in the pallet for more
      details.
      bce0e5ac
    • sandreim's avatar
      Fix Provisioner dispute metrics naming (#4374) · e4e22f40
      sandreim authored
      
      
      * update dispute metric names
      
      Signed-off-by: default avatarAndrei Sandu <[email protected]>
      
      * update
      
      Signed-off-by: default avatarAndrei Sandu <[email protected]>
      e4e22f40
    • Keith Yeung's avatar
      Update W3F URL links (#4376) · bbde75e8
      Keith Yeung authored
      bbde75e8
  7. Nov 25, 2021
  8. Nov 24, 2021