joe petrowski
e58032e2e0
Remove Kusama Nomination Pools Init ( #5605 )
...
* remove kusama nomination pools init
* remove OnRuntimeUpgrade import
* remove stale migrations from westend
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-06-16 17:53:13 +00:00
Keith Yeung
2dfc7cec47
Allow relay chain council to send XCMs ( #5597 )
...
* Allow relay chain council to send XCMs
* Update runtime/kusama/src/xcm_config.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* spellcheck
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: joepetrowski <joe@parity.io >
2022-06-16 13:37:49 +00:00
ZhiYong
a3125b9f47
Companion for substrate#11618 ( #5677 )
...
* Companion for substrate#11618
* Fix
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-06-16 02:05:22 +00:00
Kian Paimani
5d8c842b45
add weights for pool::chill ( #5670 )
...
* add weights for pool::chill
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-06-13 23:02:02 +00:00
Kian Paimani
48385183db
Enable nomination pool slashing on Kusama and westend ( #5661 )
...
* enable pool slashes on Kusama and westend
* fix
2022-06-13 20:41:10 +00:00
Gavin Wood
5f350d4d69
Companion for #11124 ( #5615 )
...
* Bump
* Formatting
2022-05-31 11:59:54 +01:00
Mara Robin B
3ea40ba1f7
update weights ( #5601 )
...
* polkadot: update weights
* kusama: update weights
* westend: update weights
* rococo: update weights
2022-05-30 12:41:11 +02:00
Mara Robin B
7eba8f2162
bump to 0.9.23 ( #5593 )
...
* bump version to 0.9.23
* bump spec_version to 9230
2022-05-27 10:18:23 +02:00
Kian Paimani
dc4a455911
remove pallet-nicks from everywhere ( #5587 )
...
* remove pallet-nicks from everywhere
* Update Cargo.lock
* Update Cargo.lock
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-25 15:25:43 +00:00
Nazar Mokrynskyi
c090fb4c2e
Companion for #11415 (WeightToFee) ( #5525 )
...
* Companion for https://github.com/paritytech/substrate/pull/11415
* Rename `WeightToFee::calc()` to `WeightToFee::wight_to_fee()`
* Fix typo
* Fix compile errors
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-05-25 10:06:01 +02:00
Kian Paimani
a6f02a9dc3
companion to substrate 11411 ( #5524 )
...
* companion to substrate 11411
* update substrate
* fmt
* fmt
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-20 11:20:54 +00:00
Shawn Tabrizi
b61c7515d7
Rename BagsList to VoterList and Add Score ( #5463 )
...
* add migration for simple pallet rename
* fmt
* also add score migration
* add try-runtime feature to bags list
* add pre_upgrade to pallet rename
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-05-19 14:33:24 -04:00
dependabot[bot]
2906ee1bcb
Bump scale-info from 2.1.1 to 2.1.2 ( #5552 )
...
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/compare/v2.1.1...v2.1.2 )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-19 10:51:25 +02:00
Ross Bulat
2fb2e8f0ea
Nomination Pools: add MinPointsToBalance constant ( #5520 )
...
* add MinPointsToBalance
* Typo
* cargo update -p sp-io
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-17 19:21:02 +00:00
Mara Robin B
3b685fbf91
version bumps (0.9.22) ( #5495 )
...
* bump versions to 0.9.22
* bump spec_version to 9220
2022-05-16 13:24:24 +02:00
dependabot[bot]
5afc2fd26a
Bump serde_json from 1.0.79 to 1.0.81 ( #5466 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.79 to 1.0.81.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.79...v1.0.81 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-15 23:47:47 -04:00
Mara Robin B
5e458f6acb
update weights ( #5507 )
...
* rococo: update weights
* polkadot: update weights
* kusama: update weights
* westend: update weights
2022-05-12 10:44:21 +00:00
Andronik
15e7536a4e
runtime/session_info: keep track of stash keys ( #5473 )
2022-05-12 09:36:57 +00:00
Kian Paimani
eb2448e1be
companion for 11350 ( #5489 )
...
* fix all runtimes
* fix staking miner
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-05-11 19:22:15 +00:00
Kian Paimani
9f21ec97b8
Add Nomination Pools to Kusama ( #5447 )
...
* add nomination pools to kusama
* Update runtime/kusama/src/lib.rs
Co-authored-by: Mara Robin B. <mara@broda.me >
* Update runtime/kusama/src/lib.rs
* probably fix build
* really fix build
* fix benches
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* whitelist transactional storage limit
* make defensive
* fix
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* update
* fix benches
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* change head
* fmt
Co-authored-by: Mara Robin B. <mara@broda.me >
Co-authored-by: Parity Bot <admin@parity.io >
2022-05-11 07:35:05 +02:00
dependabot[bot]
992705d127
Bump log from 0.4.16 to 0.4.17
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.16 to 0.4.17.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits/0.4.17 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-08 22:32:57 +02:00
Jun Jiang
2e1a3441f9
add force_batch weight entry to runtimes ( #5452 )
2022-05-05 14:39:30 +00:00
Web3 Smith
9cdfbb4c8d
Update MMR Runtime API - add proof batching ( #4700 )
...
* update runtime apis
* rebase
* update apis
* update apis
* minor fix
* minor fix
* minro fixes
* update api
* style fix
* update lockfile for {"substrate"}
Co-authored-by: acatangiu <adrian@parity.io >
Co-authored-by: parity-processbot <>
2022-05-04 11:26:32 +00:00
dependabot[bot]
b7a5044e82
Bump serde from 1.0.136 to 1.0.137 ( #5429 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.136 to 1.0.137.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-03 10:27:13 +00:00
Doordashcon
f23496d350
update ( #5402 )
2022-04-27 17:41:30 +02:00
Chigozie Joshua
ee3b164f65
Companion for Remove Approval feature in Treasury Pallet ( #11243 ) ( #5352 )
...
* added weight for remove_approval call in treasury pallet
* added weight for remove_approval call in kusama runtime
* Update Cargo.lock
* update lockfile for {"substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-04-27 12:37:17 +02:00
Oliver Tale-Yazdi
9621dbebc9
Co #11270 : Update benchmark machine command ( #5386 )
...
* Update benchmark machine command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add import
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Rename POLKADOT_REFERENCE_HARDWARE -> SUBSTRATE_REFERENCE_HARDWARE
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
* Bump spec_version to 9200
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-04-26 18:26:11 +02:00
Ayevbeosa Iyamu
7d0252784d
Companion for Recovery Pallet benchmarking #11176 ( #5366 )
...
* benchmarking for `pallet_recovery`
* Added WeightInfo implementation for pallet_recovery
* Update Cargo.lock
* Update Cargo.toml
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-04-26 13:09:03 +00:00
Mara Robin B
9f79fcaef0
Remove SlotsCrowdloanIndexMigration & InjectValidatorsIntoVoterList ( #5374 ) ( #5379 )
...
* Remove SlotsCrowdloanIndexMigration
* Remove slots index migration code
* Remove crowdloan index migration code
* remove reference to migration
* rustfmt
* westend: remove unused import OnRuntimeUpgrade
* kusama: remove unused import OnRuntimeUpgrade
* polkadot: remove unused import OnRuntimeUpgrade
* Revert "Remove crowdloan index migration code"
This reverts commit fe84b59e3133e950740d911fb019e6002f60d5a3.
* Revert "Remove slots index migration code"
This reverts commit 62c5a28e21d2949189bdb52835cc3a44f6e9c561.
* Revert "remove reference to migration"
This reverts commit 1f8806c010210b638cc59979ab873619910596c0.
* Remove InjectValidatorsIntoVoterList migration
2022-04-25 18:44:47 +02:00
Squirrel
35f6712c5e
fast-runtime tweak ( #5201 )
...
* These should be included in fast-runtime
2022-04-25 17:23:47 +01:00
Mara Robin B
bb3cc7b041
update weights ( #5361 )
...
* polkadot: update weights
* kusama: update weights
* rococo: update weights
* westend: update weights
2022-04-22 09:26:19 +00:00
Zeke Mostov
42cbfba5d3
Companion to Proportional Slashing: Substrate #10982 ( #5306 )
...
* Companion to Proportional Slashing
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-04-22 00:14:28 +00:00
Zeke Mostov
efe74e4336
Companion to Substrate #11002 ( #5309 )
...
* Add SignedMaxRefunds
* Update Cargo.lock
* update lockfile for {"substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-04-21 00:01:17 +02:00
Georges
e460465515
Companion to Split SolutionImprovementThresholds into two types ( #5324 )
...
* Splitting `SolutionImprovementThreshold` in 2.
One for Signed phase, and one for Unsgined.
* Adding missing imports
* Removing `GetDefault`, renaming trait
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-04-20 15:54:25 -04:00
Georges
a74c527d32
Companion for Adding benchmarking for new frame_election_provider_support #11149 ( #5241 )
...
* `GenesisElectionOf` after changes to substrate
* Benchmarking for `frame_election_provider_support`
* Introducing `OnChainSeqPhragmen` after changes
to substrate.
Pallet renaming in substrate
* Fixing `test-runtime`
* Use `UnboundedExecution` after change to substrate
* update lockfile for {"substrate"}
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_election_provider_support --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_election_provider_support --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=westend-dev --steps=50 --repeat=20 --pallet=frame_election_provider_support --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
Co-authored-by: parity-processbot <>
Co-authored-by: Parity Bot <admin@parity.io >
2022-04-15 17:17:38 +02:00
dependabot[bot]
e3326d26b3
Bump scale-info from 2.0.1 to 2.1.1 ( #5325 )
...
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 2.0.1 to 2.1.1.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/commits/v2.1.1 )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-15 08:16:50 +02:00
Shawn Tabrizi
3f56e1ff55
Add XCM Benchmarks to Kusama ( #4442 )
...
* add xcm benchmarks to kusama
* Create temp
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-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/kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* add weights to kusama runtime
* Fixes
* Fixes
* Fixes
* Fixes
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-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/kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* use new benchmark
* Fix license year
* update substrate deps
* Add Configuration::ActiveConfig storage key to the whitelist
* Update Cargo.lock
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-04-14 10:50:06 +02:00
Adrian Catangiu
a46237cebb
Add mmr_root() to pallet-mmr API to expose root from state (companion for substrate#11183) ( #5276 )
...
* Add mmr_root() to pallet-mmr API to expose root from state
* use the right MmrApi primitives
* bridges: use correct mmr primitives
* rococo: beefy-mmr deposit mmr root digest
* fix lockfile
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-04-13 10:55:18 +00:00
Tsvetomir Dimitrov
fd020c07e5
Add staging runtime api ( #5048 )
...
* Move `trait ParachainHost` to a separate version independent module
`trait ParachainHost` is no longer part of a specific primitives
version. Instead there is a single trait for stable and staging api
versions. The trait contains stable AND staging methods. The latter are
explicitly marked as unstable.
* Fix `use` primitives
`polkadot_primitives::v2` becomes `polkadot_primitives::runtime_api`
* Staging API declaration and stubs
Introduces the concept for 'staging functions' in runtime API. These
functions are still in testing and they are meant to be used only
within test networks (Westend).
They coexist with the stable calls for technical reasons - maintaining
different runtime APIs for different networks is hard to implement.
Check the doc comments in source files for more details how the staging
API should be used.
* Add new staging method - get_session_disputes()
Add `staging_get_session_disputes` to `ParachainHost` as the first
method of the staging API.
* Hide vstaging runtime api implementations behind feature flag
* Fix test runtime
* fn staging_get_session_disputes() is renamed to fn staging_get_disputes()
2022-04-12 15:47:46 +00:00
Mara Robin B
2cc30515d8
bump spec_version to 9190 ( #5291 )
2022-04-08 11:48:52 +00:00
Mara Robin B
7ed275bff8
bump version to 0.9.19 ( #5290 )
2022-04-08 11:48:43 +00:00
Shawn Tabrizi
4d837bac88
Custom Slots Migration for Fund Index Change ( #5227 )
...
* new migration
* use new migration in runtime
2022-04-07 10:51:37 -04:00
Stephen Shelton
2433de588a
Replace TransactionByteFee with LengthToFee ( #5028 )
...
* Replace TransactionByteFee with LengthToFee
* s/ConstantModifierFee/ConstantMultiplier/
* fmt
* Remove duplicate import
* fmt
* Update runtime/test-runtime/src/lib.rs
* update lockfile for {"substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-04-07 13:13:32 +00:00
Oliver Tale-Yazdi
c8cdf9fc03
Integrate benchmark-overhead command ( #5137 )
...
* Integrate benchmark-overhead command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Beauty fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove constants:: module
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update block+extrinsic weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Update block+extrinsic weights"
This reverts commit d77bf977f6bca0b1ded35daa2fd54b97e18a67db.
* Revert "Remove constants:: module"
This reverts commit 2d3bcd0212c438f6b96755900a01762592d90265.
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-04-01 10:34:40 +00:00
Shawn Tabrizi
37b8bc4886
Migrate Slot Depositors in Crowdloan Migration ( #5173 )
...
* Also migrate lease depositors
* bump spec version
* Update runtime/common/src/crowdloan/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-03-30 18:41:08 +00:00
dependabot[bot]
d9f454f903
Bump log from 0.4.14 to 0.4.16 ( #5187 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.14 to 0.4.16.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-30 13:23:27 +02:00
Oliver Tale-Yazdi
cb8cf97cd2
Update Block- and Extrinsic base weights ( #5202 )
...
* Remove constants:: module
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update block+extrinsic weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Sanity check full block price
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-03-29 12:11:17 +00:00
Georges
7793796bd2
Adding Fallback on election failure ( #5093 )
...
* Adding `Fallback` on election failure
Use the newly introduced `BoundedOnChainSequentialPhragmen`
and `UnboundedOnChainSequentialPhragmen`
* Adding `BoundedOnchainExecution`
after changes in substrate
* Introducing `ExecutionConfig`
from `frame_election_provider_support::onchain`
* `OnChainSequentialPhragmen` > `OnChainSeqPhragmen`
Renaming to have a shorter name
* `BoundedOnchainExecution` -> `BoundedExecution`
And `UnboundedOnchainExecution` -> `UnboundedExecution`
* `Fallback` back to `NoFallback`
`UnboundedExecution` for `GovernanceFallback`
* Update runtime/test-runtime/src/lib.rs
* update lockfile for {"substrate"}
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2022-03-26 14:27:39 +00:00
Shawn Tabrizi
cbd6570c56
Companion for Update Bounty Deposit ( #11014 ) ( #5183 )
...
* update bounty deposit config
* fix
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-25 11:09:32 -04:00
Sergei Shulepov
c8fda4f1b6
paras: include_pvf_check_statement rt bench ( #4938 )
...
* paras: `include_pvf_check_statement` rt bench
Resolves #4933
This PR adds a benchmark for the `include_pvf_check_statement`
dispatchable. This is a necessary step to make it work without
modifications. That enables us to proceed with testing on Versi.
This introduces 5 new benchmarks. Those measure performance of the
`include_pvf_check_statement` under 2 different conditions:
1. regular vote submission. That's the common case.
2. submission of the last vote. That happens only once and leads to a
heavy finalization stage.
There are 2 different types of finalization (one for onboarding, one for
upgrading) and there are two outcomes: accepted and rejected. Those 4
are similar but I decided to cover them all and assign the maximum of
all 4. This is to avoid a situation when one of those paths becomes more
heavier than others and opens up an attack venue.
The regular vote submission weight is drastically different from the
submission last vote weight. That's why in case during runtime
finalization was not executed the weight consumed value will be lowered
down to the regular vote submission.
The finalization weight is proportional to the number of "causes", i.e.
the events that caused the PVF pre-checking vote in the first place, and
here we assume that the maximum number of causes is 100.
Theoretically, there is nothing that prevents an adversary to
register/upgrade to more than 100 parachains. In that case, the consumed
weight will be lower than the actual time consumed by the finalization
process. That can enable a DoS vector.
However, practically, it is not very possible. Right now it is very
expensive to call `schedule_para_initialize` because it requires a very
large lock up of funds. Moreover, finalizing a vote with 100 causes
leads to around 31ms time spent. Finalizing more will require more time.
However, finalizing with 200 causes will cause ≈62ms delay. This is not
that bad since even though we had a full block and the adversary tried
to finalize 200 causes it won't be able to even exceed the operational
extrinsic boundary of 250ms and even if so it won't make big difference.
That said, this should be addressed later on, esp. when we enable
parathreads, which will make creating causes easier. One of potential
solutions will be shifting the logic of finalization into
`on_initialize`/`on_finalize`. Another is to create a maximum number of
causes and then reject upgrades or onboardings if that was reached.
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras.rs
* cargo run --quiet --profile=production --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs
* Fix import error
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at >
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2022-03-24 17:52:40 +01:00