zjb0807
fb9656489a
Companion for substrate PR#9890 ( #3961 )
...
* add on_initialize_base_with_launch_period
* trigger GitHub actions
* cargo update -p sp-io
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-30 14:08:46 +00:00
Martin Pugh
72eab56e88
Bump version, tx_version and spec_version in prep for v0.9.11 ( #3970 )
...
* bump version and spec_version
* bump transaction version
* Bump of the default value in CI
* bump tx version for westend and kusama
Co-authored-by: Wilfried Kopp <wilfried@parity.io >
2021-09-30 14:44:19 +02:00
Keith Yeung
819849f097
Make most XCM APIs accept an Into<MultiLocation> where MultiLocation is accepted ( #3627 )
...
* Change send_xcm MultiLocation argument to be generic
* Change pallet_xcm::send_xcm MultiLocation and Junctions argument to be generic
* Change convert_origin MultiLocation argument to be generic
* Change OnResponse MultiLocation arguments to be generic
* Change UniversalWeigher MultiLocation argumente to be generic
* Change ExecuteXcm MultiLocation argument to be generic
* Remove usages of into for the MultiLocation argument in execute_xcm
* Make use of generic MultiLocation arguments in rustdocs
* Cargo fmt
* Remove unused import in tests
* Resolve conflicts
* cargo fmt
* Appease spellcheck
* impl Into<MultiLocation> in more places
2021-09-29 23:24:49 +00:00
Robert Habermeier
b6a87891ac
Drop availability only for candidates that lose disputes ( #3973 )
...
* guide: updates for disputes changes
* paras_inherent: drop availability only for candidates that lose disputes
* spellcheck
* Update runtime/parachains/src/paras_inherent.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-29 20:33:16 +00:00
Andronik Ordian
019d4e3b99
paras_inherent: reject only candidates with concluded disputes ( #3969 )
...
* paras_inherent: reject only candidates with concluded disputes
* remove unused Error variant
2021-09-29 13:58:04 -05:00
Bernhard Schuster
c57a1e7934
remove AllSubsystems and AllSubsystemsGen types ( #3874 )
...
* introduce the OverseerConnector, use it
* introduce is_relay_chain to RelayChainSelection
* Update node/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* avoid the deferred setting of `is_relay_chain` in `RelayChainSelection`
* positive assertion is not mandated, only the negative one, to avoid a stall
* cleanup: overseer residue
* spellcheck
* fixin
* groundwork to obsolete Overseer::new and AllSubsystemsGen proc-macro
* Now all malus & tests can be ported to the builder pattern.
Obsoletes `Overseer::new`, `AllSubsystemsGen` derive macro, `AllSubsystems`.
* spellcheck
* adjust tests, minor fixes
* remove derive macro AllSubsystemsGen
* add forgotten file dummy.rs
* remove residue
* good news everyone!
* spellcheck
* address review comments
* fixup imports
* make it conditional
* fixup docs
* reduce import
* chore: fmt
* chore: fmt
* chore: spellcheck / nlprules
* fixup malus variant-a
* fmt
* fix
* fixins
* pfmt
* fixins
* chore: fmt
* remove expanded overseer generation
* tracing version
* Update node/network/statement-distribution/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* use future::ready instead
* silence warning
* chore: fmt
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-09-29 14:24:56 +00:00
Bastian Köcher
c752b5d61b
Substrate Companion for #9552 ( #3834 )
...
* Prepare for wasmtime 0.29
* update Substrate
* Use Pallet
Co-authored-by: parity-processbot <>
2021-09-29 13:29:33 +00:00
dependabot[bot]
c0719034a1
Bump parity-scale-codec from 2.3.0 to 2.3.1 ( #3959 )
...
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/parity-scale-codec-v2.3.0...parity-scale-codec-v2.3.1 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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>
2021-09-29 11:57:24 +02:00
Keith Yeung
7da1421baa
Add benchmarking for parachain runtime initializer pallet ( #3913 )
...
* Add benchmarking for parachain runtime initializer pallet
* Fix default impl for initializer pallet WeightInfo
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_initializer.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs
* Use real weights and use max_block as default weight
* Add variable for digest vec length for initializer benchmark
* Fix compilation errors
* Add WeightInfo to parachains_initializer config in polkadot runtime
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_initializer.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs
* Appease spellchecker
* Use kusama weights in polkadot runtime for parachain initializer pallet
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-28 04:55:19 +00:00
Robert Habermeier
94986bec7e
disputes: reject single-sided disputes ( #3903 )
...
* disputes: reject single-sided disputes
* fmt
2021-09-27 12:16:34 -05:00
Ayush Mishra
fdebbbf4b3
Added multisig in Rococo ( #3873 )
...
* Added multisig in Rococo
* removed formatting error
Co-authored-by: Ayush <>
2021-09-27 12:35:50 +00:00
Shawn Tabrizi
7c8804c049
XCM Benchmarks for Asset Transactor w/ Fungible Asset ( #3818 )
...
* benchmarks for fungibles
* add benchmark to westend
* fix hex
* clean up a bit
* update code doc
* fix warnings
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=westend-dev --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --steps=10 --repeat=10 --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./ --execution=wasm --wasm-execution=compiled
* use skip
* fix spelling
* Update Cargo.lock
* add scale-info
* Update Cargo.lock
* update bench
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* weights compile
* update westend to use weights
* fmt
* spelling fixes
* Delete pallet_xcm_benchmarks::fungible.rs
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix code review
* update weight
* fix report_error
* fix spell check
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-09-27 00:38:46 -04:00
Lldenaurois
e49a43ba05
Update logging in paras_inherent ( #3927 )
2021-09-24 20:44:45 +02:00
dependabot[bot]
b7466eceb6
Bump libsecp256k1 from 0.6.0 to 0.7.0 ( #3909 )
...
Bumps [libsecp256k1](https://github.com/paritytech/libsecp256k1 ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/paritytech/libsecp256k1/releases )
- [Changelog](https://github.com/paritytech/libsecp256k1/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/libsecp256k1/commits )
---
updated-dependencies:
- dependency-name: libsecp256k1
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>
2021-09-24 16:31:53 +00:00
Andreas Doerr
53ec86769e
Remove BEEFY repo dependency ( #3923 )
2021-09-24 17:51:12 +02:00
Xiliang Chen
c19581e72d
update BaseXcmWegiht to match Kusama ( #3911 )
2021-09-24 04:11:20 +00:00
Robert Habermeier
ccb7bc5c60
add parachains pallets to Polkadot runtime ( #3815 )
...
* add parachains pallets to Polkadot runtime
* some updates
* temp update deposits, fix compile
* lower para byte deposit
* fix genesis
* fmt
* fix spell
* updates to consts
* update benchmark list
* fix merge master
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_crowdloan.rs
* skip large meta
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_crowdloan.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_paras_registrar.rs
* fmt
* add and update proxies
* add weight info
* weights
* lower minimum contribution to 5 DOT
* only overwrite when default
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-23 18:17:34 -04:00
Robert Habermeier
03934d2af1
Add a force_unfreeze extrinsic to the disputes module ( #3906 )
...
* add a 'force_unfreeze' to the Disputes module
* fmt
* Benchmark Disputes `force_unfreeze` extrinsic (#3908 )
* Companion for Generate storage info for pallet babe #9760 (#3831 )
* Adding MaxSegmentLength and MaxAuthorities
to pallet babe
* Missed a few to_vec
* Removing `MaxSegmentLength` as not needed anymore
* Adding `MaxAuthorities` to couple of missing place
* Adding missing definition of `MaxAuthorities`
* Adding a missing to_vec
* update Substrate
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: parity-processbot <>
* Benchmark Disputes `force_unfreeze` extrinsic
target pr: #3906
target branch: rh-unfreeze
* Add benchmark to rococo runtime; run benchmark locally
* Revert unintentionally added diff
* Some spacing and comments
* Bump proc-macro-crate from 1.0.0 to 1.1.0 (#3863 )
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases )
- [Commits](https://github.com/bkchr/proc-macro-crate/commits )
---
updated-dependencies:
- dependency-name: proc-macro-crate
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>
* Bump parity-scale-codec from 2.2.0 to 2.3.0 (#3833 )
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/v2.2...parity-scale-codec-v2.3.0 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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>
* Use super::WeightInfo to try and get CI to compile
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::disputes --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/parachains/src/disputes/weights.rs --header=./file_header.txt
* impl TestWeightInfo; remove weights from runtime_parachains dir
* fmt
* Update test-runtime
Co-authored-by: Georges <georges.dib@gmail.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
Co-authored-by: Georges <georges.dib@gmail.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-23 19:29:26 +00:00
Keith Yeung
bae5ecb896
Ensure all parachain configuration extrinsics are operational ( #3912 )
2021-09-23 06:21:06 +00:00
dependabot[bot]
4f70899f6b
Bump parity-scale-codec from 2.2.0 to 2.3.0 ( #3833 )
...
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/v2.2...parity-scale-codec-v2.3.0 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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>
2021-09-23 00:29:41 +00:00
Georges
24a141b5a3
Companion for Generate storage info for pallet babe #9760 ( #3831 )
...
* Adding MaxSegmentLength and MaxAuthorities
to pallet babe
* Missed a few to_vec
* Removing `MaxSegmentLength` as not needed anymore
* Adding `MaxAuthorities` to couple of missing place
* Adding missing definition of `MaxAuthorities`
* Adding a missing to_vec
* update Substrate
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: parity-processbot <>
2021-09-22 23:33:44 +00:00
Kian Paimani
8c68412958
Companion for substrate PR#9766 ( #3900 )
...
* fix weights
* reduce time
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-22 15:21:42 +00:00
Georges
9d7972ab79
Companion for Generate storage info for pallet grandpa #9817 ( #3892 )
...
* Adding `MaxAuthorities` to pallet grandpa
This is neede after changes to substrate
* Adding `MaxAuthorities` to granda in test-runtime
* Missed one `MaxAuthorities`
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-22 10:28:59 +00:00
Keith Yeung
db0b7e0048
Add benchmarking for parachain runtime paras pallet ( #3888 )
...
* Crate basic barebones benchmarking infrastructure for paras
* Fill in benchmarking contents
* cargo run --quiet --release --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 --release --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
* Use autogenerated WeightInfos for kusama and westend
* cargo fmt
* Use saturating_sub
* Add missing import
* Try and hit the worst possible time complexity as much as possible
* cargo fmt
* cargo run --quiet --release --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 --release --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
* Add a MAX_HEAD_DATA_SIZE constant
* Prefill vectors with sample data for worst case complexity
* cargo run --quiet --release --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 --release --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
* Improve comment on SAMPLE_SIZE constant
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-22 01:14:12 +00:00
Kian Paimani
5bbcb665d9
companion for substrate#9788 ( #3858 )
...
* companion for https://github.com/paritytech/substrate/pull/9788
* fmt
* Some fixes
* final fixes
* fix a few small things
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-21 18:08:21 +00:00
ferrell-code
71a825b3dc
Substrate Companion for #9566 ( #3704 )
...
* runtime migrations
* clean up
* cargo fmt
* companion
* add _ to satisfy trait
* fix try-runtime
* update substrate
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-09-21 13:52:46 +00:00
Zeke Mostov
80edb1b3d7
weights: pallet-staking & pallet-bags-list ( #3872 )
...
* Get ready to weight staking & bags-list
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_bags_list --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* fmt
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-20 23:46:37 +00:00
Georges
d13d0d4f07
Companion for Generate storage info for pallet im_online #9654 ( #3744 )
...
* Adding `MaxKeys` `MaxPeerInHeartbeats` and
`MaxPeerDataEncodingSize` to paller `im_online` after substrate changes
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-20 11:58:09 +00:00
Keith Yeung
706f142516
Add benchmarking for parachain runtime configuration pallet ( #3862 )
...
* Add benchmarking for parachain runtime configuration pallet
* cargo fmt
* Add WeightInfo trait
* Specify missing WeightInfo associated type in mocks
* Fix typo
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_configuration.rs
* Fix compilation errors
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_configuration.rs
* Condense the number of WeightInfo methods
* Fixes
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_configuration.rs
* Make use of weights generated from kusama benchmarking
* Use a better dispatch function for weighing set_config_with_block_number
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_configuration.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_configuration.rs
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-18 09:57:50 +00:00
Peter Goodspeed-Niklaus
9a6f43ab8f
Companion for Store voters in unsorted bags to get good stake iteration properties ( #3413 )
...
* add voter bags generation script and generated values for all runtimes
* VoterBagThresholds for test-runtime
* semicolon
* turns out the header is called file_header.txt
* perform benchmarks to get real numbers
* add note about when to re-run this script
* Suggestions for #3413 (Store voters in unsorted bags companion) (#3488 )
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: radupopa2010 <radupopa2010@yahoo.com >
Co-authored-by: CI system <>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Lldenaurois <ljdenaurois@gmail.com >
Co-authored-by: Qinxuan Chen <koushiro.cqx@gmail.com >
Co-authored-by: Seun Lanlege <seun@parity.io >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
Co-authored-by: Andreas Doerr <adoerr@users.noreply.github.com >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Denis Tsai <denistsai@aetheras.io >
Co-authored-by: Pierre Besson <pierre.besson@parity.io >
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: ferrell-code <automatedcharlesferrell@gmail.com >
Co-authored-by: Shaun W <spxwang@gmail.com >
* Try resolve Cargo.lock conflicts
* Add temp VoterSnapshotPerBlock value to compile
* Improve voter_bags test with nominator/validator breakdown
* Remove miner.log
* Update README
* Module doc comments
* Build working
* remote-ext-tests very WIP
* Remove system module query
* formatting and log target
* clean up
* Save
* Fix issues with polkadot runtime after mergin
* Save
* Some updates to runtimes to make sure things compile
* save
* udpate weights
* Use UseNominatorsAndUpdateBagsList
* make remote-ext tests a bin
* Adjust remote-ext test to use pub; update some comments
* Use list_bags_get
* Try fix cargo.lock
* Gate kusama feat code
* Carg.lock .. again
* point bags-list deps to master
* Update voter-bags CLI to take total issuance and min balance as args
* Switch polkadot runtime to UseNominatorMap
* Some tweaks to the remote-test
* Delete some stuff for polkadot; comments
* Various fixes
* Add comment for VoterSnapshotPerBlock
* Remove bags-list import from polakdot cargo
* use benchmarking feature for pallet-bags-list
* Add custom migration for westend and kusama for bags-list
* :facepalm
* Fix kusama runtime
* Small clean up
* Be more alphabetical ordered
* Use 22_500 for VoterSnapshotPerBlock
* point back to master
* remove unused type
* SortedListProvider for staking runtime
* Remove polkadot for remote-ext bags test
* Revert "Remove polkadot for remote-ext bags test"
This reverts commit 3608c466002063761cd669880a00b2e05c1ff7d1.
* Remove polkadot for remote-ext bags test
* update Substrate
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: radupopa2010 <radupopa2010@yahoo.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Lldenaurois <ljdenaurois@gmail.com >
Co-authored-by: Qinxuan Chen <koushiro.cqx@gmail.com >
Co-authored-by: Seun Lanlege <seun@parity.io >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
Co-authored-by: Andreas Doerr <adoerr@users.noreply.github.com >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Denis Tsai <denistsai@aetheras.io >
Co-authored-by: Pierre Besson <pierre.besson@parity.io >
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: ferrell-code <automatedcharlesferrell@gmail.com >
Co-authored-by: Shaun W <spxwang@gmail.com >
Co-authored-by: parity-processbot <>
2021-09-17 03:24:59 +00:00
Robert Habermeier
3c0b7d95f5
update Rococo.json ( #3871 )
2021-09-16 15:26:48 -05:00
Shawn Tabrizi
f8e5d7dc0a
Companion for #9764 (Force Unreserve) ( #3840 )
...
* add force_unreserve weight
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-16 19:15:32 +00:00
Robert Klotzner
dde0918717
Raised nits on #3813 ( #3844 )
2021-09-16 16:05:41 +02:00
Andrew Jones
4c7539cab5
Companion for #8615 : enrich metadata with type information ( #3336 )
...
* Use beefy branch with scale-info
* Add patches
* Sprinkle some TypeInfo derives
* Add some TypeInfo deriv
* Cargo.lock
* Derive TypeInfo and skip type params for Xcm types
* Cargo.lock
* Fix up scale_info bounds attributes
* Fix up dependencies
* Use my own beefy-primitives branch
* Bump BEEFY
* Update patches
* Add some scale-info dependencies and TypeInfo derives
* More TypeInfo decoration
* Update scale-info
* Some TypeInfos and remove more Event pallet::metadata
* Moar TypeInfos
* TypeInfos galore, fix up metadata runtime API
* TypeInfo
* TypeInfos, update other runtime metadata APIs
* Fix up Kusama, comment out some `usize` QueueSize parameter types
* Remove local diener patches
* Cargo.lock
* Cargo.lock
* Update to scale-info crates.io release
* Update primitive-types branch
* Update pallet-beefy to use custom branch
* Update other parity-common deps
* Update parity-common patches
* bump a bunch of deps in parity-common
* Remove parity-common patches
* Bump finality-grandpa version
* Cargo.lock
* Update scale-info to 0.9.1
* Add recursion_limit for runtime-parachains
* Add some scale_info attributes
* Cargo.lock
* Revert finality-grandpa bump
* Cargo.lock, scale-info update
* cargo update
* Make sure using patched version of finality-grandpa
* Use patched scale-info
* Update to scale-info 0.10.0
* Update finality-grandpa
* Cargo.lock
* Update beefy deps
* Update beefy deps again
* Add scale-info dependency
* Remove deprecated pallet::metadata attributes.
* Add some missing scale-info deps and derives
* Use some variant struct call syntax
* Add missing TypeInfo impl
* Add some more TypeInfo impls
* Convert some call enum struct variant constructors
* More scale-info deps and derives
* Call enum struct variants
* TypeInfo derives
* Call enum variant structs
* scale-info deps and derives
* Call enum variant struct constructors
* Use beefy-primitives scale-info feature
* Use grandpa-bridge-gadget master branch
* Remove finality-grandpa patch
* Add missing scale_info dependency and derive
* Fix up some call variant constructors
* Add missing scale_info dependency
* Fix some test errors
* More TypeInfo derives
* More call variant structs
* Call variant structs in tests
* Cargo.lock
* Fmt
* Fix more call struct variants
* Another call struct variant
* add scale-info/std features explicitly
* More call struct variants
* Add missing scale-info dependency
* Fmt
* review: activate scale-info/std where missing
* Remove some duplicate std feature activation
* review: add scale_info bounds() attr
* More call variant structs
* Remove recursion limit
* Update beefy-primitives
* Update beefy-primitives
* Fix simnet call variant struct errors
* Fmt
* cargo update -p beefy-primitives
* Add some missing TypeInfo derives
* Fix some call variants
* Fix some call variant underscores
* Cargo.lock
* Cargo.lock
* Add missing TypeInfo derive
* Add some more missing TypeInfo derives
* Even more missing TypeInfo derives
* Add TypeInfo derives to new xcm types
* Fmt
* Cargo.lock
* Add missing TypeInfo impls
* Cargo.lock
* More missing TypeInfos
* Fixes
* Cargo.lock
* Cargo.lock
* Add TypeInfo impls to xcm v2
* Update to scale-info 1.0
* Update finality-grandpa 0.14.4, patch for now
* Update beefy
* Remove patched finality-grandpa
* Add TypeInfo impl to Outcome
* Fixes
* Call variant struct
* Call variant struct
* Fix test
* Add TypeInfo impl
* Cargo.lock
* Cargo.lock
* Cargo.lock
* git checkout master Cargo.lock
* update Substrate
* Add missing scale-info features for beefy-primitives
* Fmt
* Remove check for now
* Update beefy-primitives, removes scale-info feature
* Update beefy-primitives again
Co-authored-by: adoerr <0xad@gmx.net >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-09-15 15:38:45 -05:00
Sergei Shulepov
13906d62f0
UMP: Support Overweight messages ( #3575 )
...
* Introduce new config: ump_max_individual_weight
* Implement overweight msg stashing
* Test
* Add migration module.
Also introduces a test for migration
* Integrate ExecuteOverweightOrigin to runtimes
* Fix more stuff
* Add `yeet` into dictionary
* Use suggested `Error` variant names
* typo
* Use 20ms as the maximum individual message weight
* Update the test value
* rustfmt
* Clean up
* Remove deprecated field from host config
* Remove missed _hrmp_open_request_ttl
* Apply typo fix suggestion
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Rename `migration::migrate_to_latest`
* Restore `_hrmp_open_request_ttl` in `v0::HostConfiguration`
* Apply suggestion for a rustdoc
* Apply the suggestion
* Test v0 config with the raw production data fetched from Kusama
* Update runtime/parachains/src/ump.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Expose migration functions
* Fix spellcheck
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-09-15 11:13:44 +02:00
Qinxuan Chen
438a45799f
Companion for substrate#9115 ( #3265 )
...
* runtime(kusama/polkadot): migrations for collective storage prefix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix
* fix migration
* spelling
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
* fix unused
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2021-09-14 13:01:19 +00:00
Robert Klotzner
135d9ae931
Put all authorities of a session into SessionInfo. ( #3813 )
...
* Make SessionInfo include all authorities
of the current session.
* Add missing import.
* Only take subset for assignment keys.
* Fix typo.
* Make spellcheck happy.
* Really.
* Fix test.
* More clear documentation.
* Update comments in `SessionInfo`.
2021-09-14 13:58:37 +02:00
Qinxuan Chen
61ec3578f0
Companion for substrate#9711 ( #3801 )
...
* Companion for substrate#9711
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
* cargo +nightly fmt
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-14 08:17:30 +00:00
Shawn Tabrizi
09ecdf6f4a
fix complaints in CI ( #3838 )
2021-09-14 08:07:42 +00:00
Kian Paimani
3d2c4db477
Companion for #9648 ( #3757 )
...
* make the companion
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-12 15:23:07 +00:00
Ricardo Rius
6a383ff875
Add Canvas ( #3823 )
2021-09-10 12:26:51 +02:00
Zeke Mostov
b048be06fe
Allow staking miner to use different election algorithms ( #3752 )
...
* WIP
* Dry run cmd working
* Monitor cmd works
* Configure balance with parameter type
* Comments
* cleannnn
* Add balancing to PhragMMS
* Move OffchainRanomBalancing to common
* DRY mine_unchecked over config.solver
* FMT
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Improve docs for any_runtime_unit!
* Some cleanup
* fmt
* Correct capitilaztion
* Improve version mismatch log
* Revert "Improve version mismatch log"
This reverts commit 57570403f654f1efa4307956cda2de6f0c64f70a.
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Remove Balancing struct and use Balancing Parameter type instead
* update Substrate
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2021-09-09 20:21:54 +00:00
Sergei Shulepov
83a35874ee
Do not expire HRMP open channel requests ( #3543 )
...
* Do not expire HRMP open channel requests
* Fix the build and update the docs
* Implement canceling requests and do not remove them automatically
* Fix a borked merge
* Fix fmt
* Please spellchecker
* Apply suggestions from code review
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
* Use `mutate_exists` for maintaining request counts
* Apply `rustfmt`
* Move newly introduced entrypoint to end to preserve ordering
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
2021-09-09 14:06:13 +02:00
Gavin Wood
c5e25877f1
Don't drop UMP queue items if weight exhausted ( #3784 )
...
* Requeue UMP queue items if weight exhausted
* Reduce complexity and remove Deque
* Formatting
* Formatting
* Avoid needless storage writes
* Test
* Formatting
* Docs and cleanup
* fmt
* Remove now irrelevant comment.
* Simplify `take_processed` by using `mem::take`
* Clean up & fmt: use `upward_message` directly.
* Grumbles
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-09-08 19:57:26 +02:00
Shawn Tabrizi
2d07839259
Update Slot Range Expect Proof ( #3707 )
...
* update slot range expect proof
* update to same acronym
2021-09-08 00:21:22 +00:00
Qinxuan Chen
e31db19e13
Companion for substrate#9080 ( #3263 )
...
* runtime(kusama/polkadot): migrations for membership storage prefix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* make correct custom migration
* some fix
* Update
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* import traits
* update Substrate
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: parity-processbot <>
2021-09-07 13:17:53 +00:00
Bastian Köcher
c318bebb4a
Ensure that para_head hash matches the actual head ( #3808 )
...
* Ensure that `para_head` hash matches the actual head
This ensures that the `para_head` hash in the `CandidateDescriptor`
matches the actual `head` in the candidate commitments.
* Enable the code for `no_std`
* Formatting
2021-09-07 15:07:37 +02:00
Guillaume Thiolliere
a59fd304eb
Remove migration done by runtime version 9090 ( #3731 )
...
* remove 9090 migrations
* remove unused
* fmt
* revert removal of polkadot migration
* remove migration for polkadot
2021-09-07 12:19:42 +02:00
Xiliang Chen
4d2e94f7ce
allow config NextFreeParaId in genesis ( #3781 )
...
* allow config NextFreeParaId in genesis
* update westend chain spec
2021-09-06 14:42:34 -05:00
Robert Habermeier
7815e7001b
set DisputesHandler in initializer ( #3788 )
2021-09-05 16:58:14 +00:00