Koute
8d81065a54
Support running the pallet benchmarks analysis without running the benchmarks ( #12361 )
...
* Support running the pallet benchmarks analysis without running the benchmarks
* Rename `override-results` to `json-input` and update the help comment
* ".git/.scripts/fmt.sh" 1
Co-authored-by: command-bot <>
2022-09-28 19:38:12 +00:00
Squirrel
c03fd43b11
[benchmarks] pr with weights ( #1664 ) ( #1694 )
...
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: Paritytech CI <52199148+paritytech-ci@users.noreply.github.com >
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
2022-09-28 16:39:06 +00:00
Squirrel
1b47dada7f
Bump crate versions ( #1690 )
...
Co-authored-by: EgorPopelyaev <egor@parity.io >
2022-09-28 16:38:36 +00:00
Squirrel
c0f5a094d5
backport: update integration tests ( #1695 )
...
* Update integration test v0.9.29 (#1681 )
* update it
* remove comment
* update it (#1689 )
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-09-28 16:37:57 +00:00
Oliver Tale-Yazdi
8227950ed5
Fix staking migration ( #12373 )
...
Causing issues on Kusama...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-09-28 12:43:04 +00:00
Bastian Köcher
70f372ae38
pallet-utility: Only disallow the None origin ( #12351 )
2022-09-28 14:37:03 +02:00
dependabot[bot]
693baf6f0b
Bump proc-macro2 from 1.0.43 to 1.0.44 ( #1697 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-28 13:31:35 +02:00
Keith Yeung
0327258566
Add storage size component to weights ( #12277 )
...
* Add storage size component to weights
* Rename storage_size to proof_size
* Update primitives/weights/src/weight_v2.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixes
* cargo fmt
* Implement custom Decode and CompactAs
* Add missing import
* Fixes
* Remove CompactAs implementation
* Properly migrate from 1D weight
* Remove #[pallet::compact] from Weight parameters
* More #[pallet::compact] removals
* Add unit tests
* Set appropriate default block proof size
* cargo fmt
* Remove nonsensical weight constant
* Test only for the reference time weight in frame_system::limits
* Only check for reference time weight on idle
* Use destructuring syntax
* Update test expectations
* Fixes
* Fixes
* Fixes
* Correctly migrate from 1D weights
* cargo fmt
* Migrate using extra extrinsics instead of custom Decode
* Fixes
* Silence dispatch call warnings that were previously allowed
* Fix gas_left test
* Use OldWeight instead of u64
* Fixes
* Only check for reference time weight in election provider
* Fix test expectations
* Fix test expectations
* Use only reference time weight in grandpa test
* Use only reference time weight in examples test
* Use only reference time weight in examples test
* Fix test expectations
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-28 10:21:53 +00:00
Kian Paimani
9196f32bc0
add fast-unstsake pallet to all runtimes ( #6050 )
...
* add fast-unstsake pallet to all runtimes
* ".git/.scripts/fmt.sh" 1
* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_fast_unstake
* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_fast_unstake
* fix up all the weight stuff
* update substrate
* update mistake in kusama
* add stub file
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Nitwit <47109040+BustaNit@users.noreply.github.com >
* Update runtime/westend/src/lib.rs
Co-authored-by: Nitwit <47109040+BustaNit@users.noreply.github.com >
* cargo update -p sp-io
* add signed extension as well
* Revert "add signed extension as well"
This reverts commit deb936fe5a9a13a62d02757045b1dfa40dccb190.
* cargo update -p sp-io
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_fast_unstake
* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_fast_unstake
* update sub
* integrate latest substrate changes
* ".git/.scripts/fmt.sh" 1
* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_fast_unstake
Co-authored-by: command-bot <>
Co-authored-by: Nitwit <47109040+BustaNit@users.noreply.github.com >
2022-09-28 09:39:38 +00:00
Squirrel
c1c695906c
set xcm weights template ( #1643 ) ( #1691 )
...
* xcm benchmarks use a custom template
2022-09-28 09:02:16 +00:00
Liu-Cheng Xu
9d41de645f
Add missing CountedStorageMap in pallet::storage error info ( #12356 )
2022-09-27 20:14:01 +00:00
Roman Useinov
1f687256fb
[Feature] Add deposit to fast-unstake ( #12366 )
...
* [Feature] Add deposit to fast-unstake
* disable on ErasToCheckPerBlock == 0
* removed signed ext
* remove obsolete import
* remove some obsolete stuff
* fix some comments
* fixed all the comments
* remove obsolete imports
* fix some tests
* CallNotAllowed tests
* Update frame/fast-unstake/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix tests
* fix deregister + tests
* more fixes
* make sure we go above existential deposit
* fixed the last test
* some nit fixes
* fix node
* fix bench
* last bench fix
* Update frame/fast-unstake/src/lib.rs
* ".git/.scripts/fmt.sh" 1
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
2022-09-27 17:31:12 +00:00
Squirrel
2f0760bf99
add current time in milis to the branch name ( #1658 ) ( #1693 )
...
Co-authored-by: Egor_P <egor@parity.io >
2022-09-27 15:53:17 +00:00
Ankan
e6b1aae97f
[fix] Bound staking ledger correctly with MaxUnlockingChunks from configuration ( #12343 )
...
* used maxunlockingchunks from config
* mhl MaxUnlockingChunks
* no migration needed
* changes as per requested
* fmt
* fix tests
* fix benchmark
* warning in the doc for abrupt changes in the config
* less unnecessary details in the test
* fix tests
Co-authored-by: mrisholukamba <abdulrazzaqlukamba@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-27 15:44:16 +00:00
dependabot[bot]
5f827884aa
Bump serde from 1.0.144 to 1.0.145 ( #1677 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-27 14:41:43 +00:00
Mara Robin B
efd2bfb085
Remove executed runtime migrations (nompools MigrateToV3, InitiateNominationPools) ( #6056 )
2022-09-27 11:50:40 +00:00
Sergej Sakac
249316d87f
Pallet staking events to named enum ( #12342 )
...
* Pallet staking events to named enum
* fmt
* update np staking tests
* update remaining events
* update benchmarks
* Update frame/nomination-pools/test-staking/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/staking/src/pallet/mod.rs
* Update frame/staking/src/pallet/mod.rs
* Update frame/staking/src/lib.rs
* Update frame/staking/src/pallet/impls.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
2022-09-27 11:44:20 +00:00
Davide Galassi
499ca74afe
Relax Slots-based engines from Epochs ( #12360 )
...
Remove Epochs reference from slots subsystem
2022-09-27 13:16:30 +02:00
Bastian Köcher
96c1f8bcf0
Fix compilation on 1.66 nightly ( #12363 )
2022-09-27 11:37:45 +02:00
dependabot[bot]
1f4ec021f0
Bump bytes from 1.1.0 to 1.2.1 ( #6017 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.1 )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-27 10:55:17 +02:00
Andronik
4df643271d
make spellcheck green again ( #6059 )
...
* make spellcheck green again
* remove the comment
* Fix a comment in `provisioner`
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
2022-09-27 08:48:49 +00:00
Kian Paimani
4dd6fc86e1
export more types from fast-untsake 🤦♂️ ( #12353 )
...
* export more types from fast-untsake 🤦♂️
* make non-test
* fmt
2022-09-27 07:08:14 +00:00
Niklas Adolfsson
d9ea02c09a
staking miner: CLI make request and connection timeout configurable ( #6004 )
...
* staking miner: CLI request and connection timeout
Make it possible to configure the `connection timeout` and `request timeout` via CLI flags.
* cargo fmt
2022-09-26 20:56:12 +00:00
Bernhard Schuster
c3e45a04fc
[orchestra] fix: require the initialization with F: FnOnce to be Send ( #6051 )
...
* add regression test for missing Send requirement
* fix: require the initialization with `F: FnOnce` to be `Send` as well
If creating intermediate variables of the builder type within
a future, rustc will complain about the future not being send,
while the thing itself isn't even using the closure based field
initialization. Adding an additional bound, resolves this and
pushes the error message "closer" to the user, and out of the
generated code.
* import fixins
2022-09-26 22:11:36 +02:00
Chris Sosnin
fd1856e1e9
paras: unblock offboarding when pvf-check concludes ( #6032 )
...
* Unblock offboarding for upgrading paras
* ".git/.scripts/fmt.sh" 1
Co-authored-by: command-bot <>
2022-09-26 19:02:05 +02:00
Aaro Altonen
0893bde675
Companion for paritytech/substrate#12264 ( #1661 )
...
* Companion for paritytech/substrate#12264
* Fix more tests
* disable sc-network-transactions to check companion
* Fix node config in tests
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-09-26 13:40:25 +00:00
Aaro Altonen
2a9800f20a
Companion for paritytech/substrate#12264 ( #5973 )
...
* Companion for paritytech/substrate#12198
* Use `ProtocolName` from sc-network-common
* Update node service
* Revert Cargo.lock changes
* Fix node service test
* cargo-fmt
* disable cancel-pipeline-test-linux-stable to check companion
* update lockfile for {"substrate"}
Co-authored-by: alvicsam <alvicsam@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-26 13:15:41 +00:00
Andronik
5dd7026383
orchestra: hide subsystem cycle warnings by default ( #6047 )
2022-09-26 12:39:56 +00:00
Aaro Altonen
4c19c13d05
Move transactions protocol to its own crate ( #12264 )
...
* Move transaction protocol to its own crate
* Update Cargo.lock
* Fix binaries
* Update client/network/transactions/src/lib.rs
Co-authored-by: Dmitry Markin <dmitry@markin.tech >
* Update client/service/src/builder.rs
Co-authored-by: Bastian Köcher <info@kchr.de >
* Apply review comments
* Revert one change and apply cargo-fmt
* Remove Transaction from Message
* Add array-bytes
* trigger CI
* Add comment about codec index
Co-authored-by: Dmitry Markin <dmitry@markin.tech >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-09-26 12:10:09 +00:00
ZhiYong
216f908a43
Companion for substrate#11983. ( #1613 )
...
* Companion for substrate#11983.
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p polkadot-runtime-common
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "cargo update -p polkadot-runtime-common"
This reverts commit bdadad94c54836980a8dbafe3e6ecb33a94f3e17.
* Revert "cargo update -p sp-io"
This reverts commit f6b4ecc53f54982c9c8ec0d9368baad19063bda4.
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-09-26 11:25:59 +00:00
Kian Paimani
ea377d0b17
re-export weight file for fast-unstsake pallet ( #12352 )
2022-09-26 12:08:34 +01:00
Alexander Samusev
fc8d1765ef
[ci] Split gitlab-ci config to separate files ( #6031 )
...
* [WIP][ci] Split gitlab-ci config to separate files
* add stage
* move short benches
* rename stage short_benchmark
* include short-benchmarks
* add check
* add test stage
* quickfix check-no-default-features
* add build stage
* add weights and publish
* rename stage
* rename stage
* fix publish miner image
* fix publish miner image
* add dag
* fix image
* start build-short-benchmark with the pipeline
* some more DAGs
* empty line to short-benchmarks
* add change from master
Co-authored-by: parity-processbot <>
2022-09-26 10:50:25 +02:00
ZhiYong
4262e80377
Companion for substrate#11983. ( #5992 )
...
* Companion for substrate#11983.
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-26 08:26:44 +00:00
ZhiYong
11fa9af104
Remove discarded blocks and states from database by default ( #11983 )
...
* 1.Add pruning param "canonical" in sc-cli.
2.Make PruningMode's default value to ArchiveCanonical.
* Update tests in sc-state-db.
* Update tests in sc-state-db.
* 1.Add a new value `AllWithNonFinalized` in `enum BlocksPruning` which Corresponds to `blocks_pruning 0` in CLI .
2.Change value `All` to `AllFinalized` in `enum BlocksPruning` and make it to keep full finalized block history.
* Make some corresponding adjustments based on the content in the conversation.
* Update client/db/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Apply suggestions from code review.
* 1.Change `blocks_pruning` to be like `state_pruning` .
* Fmt and add some doc.
* Update client/cli/src/params/pruning_params.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update client/cli/src/params/pruning_params.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update doc.
* Change `new_test_with_tx_storage` to take `BlocksPruning`.
* Fmt
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-09-26 07:46:59 +00:00
Roman Useinov
6fee4cb3f2
[Enhancement] Remove optional Pool subscription from fast-unstake ( #12344 )
...
* [Enhancement] Remove optional Pool subscription from fast-unstake
* remove nomination-pools pallet dependency
* fixes
* more fixes
* more fixes
* more fixes
2022-09-26 06:05:05 +00:00
Sergej Sakac
28637fcb8f
Removed OuterCall alias & doc fixes ( #12349 )
2022-09-25 23:22:54 +02:00
Michael Müller
4e7e23fa87
Allow specifying immediate finalize for manual-seal ( #12106 )
...
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-25 09:24:35 +00:00
Ankan
a4d0c99e6b
re add the migration checks for staking ( #12330 )
...
Co-authored-by: parity-processbot <>
2022-09-24 19:32:35 +00:00
Oliver Tale-Yazdi
26ea6e1e48
Add base-weight to System::Extrinsic* events ( #12329 )
...
* Add base-weight to events
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-09-24 15:17:44 +00:00
Frederik Gartenmeister
3317eb76d5
Const impls of base arithmetics for Weights with u64 ( #12322 )
...
* Const impls
* Adding explainatory comments
* Update primitives/weights/src/weight_v2.rs
Doc comment suggestions
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/weights/src/weight_v2.rs
Doc comment suggestions
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-09-24 08:59:44 +02:00
Davide Galassi
1dd0d072a3
Companion - Independence for Slot-based algorithms from timestamp ( #1617 )
...
* Companion for Substrate #12224
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-09-23 18:58:33 +00:00
Davide Galassi
fa2a7d1efa
Companion - Independence of Slot-based algorithms from Timestamp ( #5997 )
...
* Companion for substrate #12224
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-23 18:32:04 +00:00
Davide Galassi
bf97f2a702
Independence of Slot-based algorithms from system Timestamp ( #12224 )
...
* Remove timestamp from SlotInfo
* Expose as millis instead of secs
* Nits
* Fix test after field removal
* Yet another test fix
* On the fly timestamp computation
* Removed slot timestamp from logs
* Removed reference to timestamp from slots subsystem
* Slot based algorithm tests do not require timstamp inherent anymore
* Remove junk files
* Further tests cleanup
* Trigger pipeline
* Apply code suggestions
* Trigger pipeline
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2022-09-23 17:51:57 +00:00
Roman Useinov
71438160a1
[Fix] parameter_types! dead code errors ( #12340 )
...
* [Fix] parameter_types! dead code errors
* mark the whole impl allow(unused)
2022-09-23 16:42:24 +02:00
Roman Useinov
7f1ab06683
[Feature] Sequential migration execution for try-runtime ( #12319 )
...
* [Feature] Sequential migration execution for try-runtime
* remove unused
* guards
* reinstate encode/decode
* proper feature gate
* proper test feature gate
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix tests
* redo Tuple tests
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* use parameter_types for testing
* lint fix
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* eloquent feature gate
* redo tests
* more fixes
* properly handle pre/post errors
* remove some tests and fix the others
* add format import
* import fix
* more import fixes
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-09-23 14:30:55 +00:00
Branislav Kontur
86bdaec2ea
Small cosmetic nits ( #1679 )
2022-09-23 14:53:31 +02:00
dependabot[bot]
7f014c78d1
Bump syn from 1.0.99 to 1.0.100 ( #1652 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.99...1.0.100 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-23 14:41:37 +02:00
Robert Klotzner
5045aeb2f9
Some more information on disputes for the guide ( #6006 )
...
* Add some notes about treatment of already finalized blocks.
* More info in the guide as discussed with Jakob.
* Remove references to private repo.
2022-09-23 14:41:06 +02:00
Oliver Tale-Yazdi
4bab1c72d9
bench: Use _ instead of :: in auto-generated file names ( #12332 )
...
* Replace :: with _ in auto-generated file names
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-09-23 10:42:36 +00:00
Squirrel
563c97a548
Other PRs have wrong base and drag additional commits into the genegated PR. ( #1672 )
...
Not a good idea as it turns out.
2022-09-23 10:14:52 +00:00