Keith Yeung
5f3497830a
Add missing XCM benchmarks for ReserveAssetDeposited ( #4923 )
...
* Add missing XCM benchmarks for ReserveAssetDeposited
* Check whether checking account is zero before minting
* Try and prevent overflow
* Remove minting currencies into the checking account
* cargo run --quiet --profile=production --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
* Use a smaller divisor
* Mint a smaller amount still
* cargo run --quiet --profile=production --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
* Remove logic for minting assets to the checking account
* Configure a smaller amount of reserve asset used for testing
* Try unwrapping the result of an execution
* Set the origin properly
* Revert "Set the origin properly"
This reverts commit c748a05733173fb7072878c19b10a583675a5f54.
* Update license year
* cargo run --quiet --profile=production --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
* Update license year
Co-authored-by: Parity Bot <admin@parity.io >
2022-03-08 05:09:44 +00:00
Andronik
dc25b326ba
runtime/westend: add disputes ( #5046 )
...
* runtime/westend: add disputes
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::disputes --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_disputes.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::disputes --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_disputes.rs
Co-authored-by: Parity Bot <admin@parity.io >
2022-03-07 19:50:58 +00:00
Alexander Samusev
53f5919cb7
[ci] fix test-node-metrics dependency ( #5041 )
2022-03-07 10:50:18 +01:00
Liu-Cheng Xu
496c1f953b
Companion for Substrate#10915 ( #5033 )
...
* Companion for Substrate#10915
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-05 13:47:20 +00:00
Arkadiy Paronyan
1bdcf537f0
Companion PR for storage changes ( #4837 )
...
* Update for latests substrate
* update substrate
2022-03-04 13:27:10 +01:00
Niklas Adolfsson
4649e767d8
staking miner: Check the queue one last time before submission ( #4819 )
...
* staking miner: use config for emergency solution
Fixes #4678
* bump jsonrpsee
* run `monitor_cmd_for` until the connection is closed
* new tokio task for submit_and_watch xt
* re-use header subscription
* update jsonrpsee + simplify code
* revert polkadot runtime changes
* feat: add `ensure_no_better_solution` function
* storage access for submissions and indices
* check ensure_no_previous_solution before remote ext
* fix todos
* grumbles: Perbill::from_percent
* hacky fix
* use modified EPM pallet and various fixes
* diener update --substrate --branch na-epm-pub
* Revert "diener update --substrate --branch na-epm-pub"
This reverts commit b3b9a58c9313372c8f21cf247ba0c8528d9953c0.
* update substrate
* tokio spawn on concurrent stuff
* cleanup
* Update utils/staking-miner/src/monitor.rs
* Update utils/staking-miner/src/monitor.rs
* more cleanup
* fix nits
* address grumbles
* only run batch reqs when signed phase
* better help menu for submission strategy CLI
* add tests for submission strategy
2022-03-04 09:34:02 +00:00
dependabot[bot]
cba48b2f79
Bump clap from 3.1.3 to 3.1.5 ( #5023 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.3 to 3.1.5.
- [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/compare/v3.1.3...v3.1.5 )
---
updated-dependencies:
- dependency-name: clap
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-04 03:32:40 +00:00
Niklas Adolfsson
8ea9b676a9
companion for #10945 ( #5012 )
...
* companion for #10945
* fix build
* fix bad merge
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-03 23:26:05 +00:00
Niklas Adolfsson
3d5e9b3c9c
[staking miner]: add CLI tests + fix --version ( #5024 )
...
* staking miner: add CLI tests
* cargo fmt
* fix bad merge
* Update utils/staking-miner/Cargo.toml
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* grumbles: derive PartialEq only for tests
* make test `--version` a integration tests
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-03-03 22:43:38 +00:00
Alexander Samusev
9eebcb8870
[ci] Create synth-wave docker image on tag ( #4990 )
...
* [ci] Create synth-wave docker image on tag
* fix zombienet dependency
* fix image naming
* CI: fix merge
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
Co-authored-by: TriplEight <denis@parity.io >
2022-03-03 17:36:41 +01:00
Alexander Samusev
13fb87c8f3
[ci] Optimizing pipeline ( #5001 )
...
* [DO NOT MERGE] Optimizing pipeline
* add stages
* remove lock for tests
* return locked
* empty commit for pipeline rerun
* add comment about DAG
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
2022-03-03 16:26:54 +01:00
zjb0807
5d31bc3541
Fix fast-runtime ( #5025 )
...
* fix rococo EpochDuration
* revert
* revert
2022-03-03 13:35:08 +00:00
cheme
d5ddb1a809
paritydb support for parachains db. ( #4838 )
...
* parity db subsystem without cache and no splitted column
* fmt
* fix path (auto from parity-db fail)
* lru cache for db column with cache
* Revert "lru cache for db column with cache"
This reverts commit ae177bc5e107a075eff6a21f651218ada6599b74.
* Write_lock mutex
* theoric code for bridges
* revert changes
* Revert bridge changes
* fix spec_version
* update parity db
* test purge-db
* Use specific ordered collection with paritydb.
* Revert "Use specific ordered collection with paritydb."
This reverts commit 8b66d0a4ae914cba1af0f44050d45dd6d9327c6b.
* fix chain selection tests.
* remove patch
* fix auto.
* Remove useless exists directory method
* purge chain without parity-db removal
* spellcheck
* renamings and filtering.
* fix assertion
* format
* update parity-db and fmt
* Auto keep using rocksdb when it exists.
* Revert "Auto keep using rocksdb when it exists."
This reverts commit cea49b32ae590bdce31fed5c45f3c028ae0c7564.
* Update kvdb version.
2022-03-03 11:49:38 +00:00
Falco Hirschenberger
eaa96a27a3
Revise how staking configurations are set ( #5018 )
...
* Revise how staking configurations are set
companion PR to https://github.com/paritytech/substrate/pull/10955
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-03 11:39:56 +01:00
Kian Paimani
511344e86c
Remove balancing iterations from OCW miners ( #4995 )
...
* remove random balancing from unsigned solution
* tweak miner a bit
* add comments
* lower kusama staking limits
* Revert "lower kusama staking limits"
This reverts commit 8ccccbb65a97b78505ef71a796698bb067cc6ba0.
* Update utils/staking-miner/src/dry_run.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* last review
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2022-03-02 21:52:42 +00:00
Andronik
55e2ddd91c
CI: add rococo to the runtime check ( #5013 )
...
* ci: add rococo for runtime changes check
* rococo: bump spec_version to 9180
* Update Rococo to 1-day lease (#4761 )
* changed lease period to 1 day
* bumped version
* bumped version again
* changed 356 to 365 days to mimic one year
Co-authored-by: Santi Balaguer <santibalaguer@Santis-MacBook-Pro.local >
* rococo: bump spec_version to 9170 for consistency
Co-authored-by: Santi Balaguer <santiago.balaguer@gmail.com >
Co-authored-by: Santi Balaguer <santibalaguer@Santis-MacBook-Pro.local >
2022-03-02 09:14:38 +00:00
Mara Robin B
e69d4255f8
ci: Add rococo to release pipeline ( #5015 )
...
* include rococo in wording of release checklist
* ci: add rococo to release drafts & changelog
2022-03-02 09:12:13 +00:00
dependabot[bot]
44ceb6ddd3
Bump lru from 0.7.2 to 0.7.3 ( #5008 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.2...0.7.3 )
---
updated-dependencies:
- dependency-name: lru
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-02 01:16:13 +00:00
Zeke Mostov
c73d76b50d
Add MaxUnlockingChunks to staking configs; Companion to #10670 ( #4823 )
...
* Add MaxUnlockingChunks to staking configs; Companion #10670
* Try fix tracing dep
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-02 00:26:55 +00:00
Tsvetomir Dimitrov
12ed68270e
Update dispute-coordinator documentation ( #4975 )
...
Include changes made in #4134 and #4854
Fixes #4397
2022-03-01 14:24:19 +01:00
dependabot[bot]
40dca1a460
Bump expander from 0.0.4 to 0.0.5 ( #4985 )
...
* Bump expander from 0.0.4 to 0.0.5
Bumps [expander](https://github.com/drahnr/expander ) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/drahnr/expander/releases )
- [Commits](https://github.com/drahnr/expander/compare/v0.0.4...v0.0.5 )
---
updated-dependencies:
- dependency-name: expander
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* no default features unless we use them
* fixup cargo lock
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-03-01 13:21:39 +00:00
Andronik
91ea5bbf57
dispute-distribution: downgrade a warn ( #5003 )
...
* dispute-distribution: downgrade a warn
* change at the logging side instead
2022-03-01 11:01:15 +00:00
dependabot[bot]
a951972f0d
Bump clap from 3.1.2 to 3.1.3 ( #5009 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.2 to 3.1.3.
- [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/compare/v3.1.2...v3.1.3 )
---
updated-dependencies:
- dependency-name: clap
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-01 09:55:00 +00:00
Robert Habermeier
1db0b6d3e6
add disputes pallet to Polkadot ( #4993 )
...
* add disputes pallet to Polkadot
* fix & add bench
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::disputes --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_disputes.rs
Co-authored-by: Parity Bot <admin@parity.io >
2022-02-28 21:35:53 -06:00
Bastian Köcher
32687126c6
Fix master build ( #5005 )
2022-02-28 18:52:45 +00:00
Andrei Sandu
0fa91e7043
Zombienet: add new test collator and integration test ( #4797 )
...
* WIP: Wasm compilation perf
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Undying collator WIP
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix build
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* more fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update test with undying
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Correctly compute post hash
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update helper
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* squash bugs
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add --pov-size cli parameter
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* refactor
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix strings
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add pov-size param to export genesis state
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix graveyard size
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* docs + fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix PVF bug and switch to u8 graves
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Build/publish undying collator as colander img
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add undying-collator to colander image
* Fix transaction overflow
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* warn fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add parachain id for export genesis cli
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix the build
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* scale test up
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* default parachain id
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add PVF complexity param
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Hash on each iteration
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update pvf metric histogram buckets
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Ladi attempt to fix tests
* Fix test
* Fix typos
* Fix pvf typo
* CI integration
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo lock missing
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix clap merge damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add zombienet image back
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Use collator image from env
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump zombienet version
* update test to check pvf prep/exec
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* delete file
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* use default bootnode in upgrade test
* FIx tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* add some stress - pvf exec times up to 2s
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix name
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Dial down pvf execution time < 2s
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* 1100
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* try again
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Add connectivity check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fixes and refactor folder struct
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* change toml name to match
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump zombienet
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* impl Feedback for Review 😎
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spell check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Zombienet: add disputes test (#4859 )
* Zombienet disputes test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* CI: add zombienet-parachain-disputes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Bump zombienet
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* reduce duration
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update zombienet_tests/functional/0002-parachains-disputes.feature
fix test
* Update zombienet_tests/functional/0002-parachains-disputes.feature
fix fix
* more logs and set collator image
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix cargo lock damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* merge fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* bump zombienet image
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo lock
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* debugging CI run - scale down test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix cargo merge damage
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* default command fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Revert "debugging CI run - scale down test"
This reverts commit eec2ba7e65ede3f929e2f0a8fe44930df2119450.
* more review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Co-authored-by: Javier Viola <javier@parity.io >
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2022-02-28 10:27:01 +00:00
Davide Galassi
00ce69aae8
[WIP] Companion PR for sr25519 fallible constructor ( #4861 )
...
* Manage new `sr25519::Signature::from_slice` fallible constructor
Constructor now returns an `Option`
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-26 21:51:44 +00:00
Falco Hirschenberger
fc919376ba
Add benchmarking for parachain runtime ump pallet ( #3889 )
...
* Claim grounds, not working yet.
* still wip, nothing to see
* Module visibility problem
* Add benchmarks for all parachain-enabled chains
* Add missing mock weights
* Fix mock weight info
* Add max-weight to extrinsic weight
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* sorting declarations
* Use a maximum size message to benchmark worst-case
* remove warning
* Fix msg size overflow in tests
* Use benchmarked weight in PostInfo
* Update runtime/parachains/src/ump.rs
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* Delete obsolete file
* Compile fix
* Fix spelling
* Add benchmark for `UmpSink::process_upward_message`
It benchmarks the time to process a message, mainly the size-dependent
decoding time. This is used interally for refunding weight from
`service_overweight`
* Fix warning
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Give mock weights for tests a name instead of ()
* Add benchmark for `initializer_on_new_session` aka.
`perform_outgoing_para_cleanup`
* Remove unnescessary pub specifier and change folding to a for loop
suggestions by @pepyakin
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add comment on weight calculation and expected slight overestimation
* Introduce a size bound constant for upward messages
* Use KiB not kB for message size bound
* Enforce max-message size bound
* Use a const for upward message size bound.
* Decrease max_upward_message_sizes to 50KiB as suggested by @pepyakin
* Fix creating overweight messages
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* Remove unused variable
* Rename benchmark function to the function actually benchmarked and some
code cleanup
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* Better variable naming
* Fix build
* Fix build
* Fix some remarks from @pepyakin
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: emostov <32168567+emostov@users.noreply.github.com >
2022-02-26 08:52:55 +00:00
dependabot[bot]
2771f18391
Bump color-eyre from 0.6.0 to 0.6.1 ( #4984 )
...
Bumps [color-eyre](https://github.com/yaahc/color-eyre ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/yaahc/color-eyre/releases )
- [Changelog](https://github.com/yaahc/color-eyre/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yaahc/color-eyre/compare/v0.6.0...v0.6.1 )
---
updated-dependencies:
- dependency-name: color-eyre
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-02-25 22:35:06 +00:00
Vsevolod Stakhov
44f66825c7
Add metrics for out of view statement distribution errors ( #4972 )
...
* Add a simple metric for statements out-of-view
* Avoid repeated out-of-view peer reputation change messages
* Log reporting status
* Address review comments
* Use counter to store a number of unexpected messages from a peer
* Distinguish different unexpected statements in the metrics
* Fix labels cardinality
* Rename metric name to `statements_unexpected`
* Move metrics to a separate unit, avoid unnecessary enum
* Prefer specific methods in lieu of public constants
2022-02-25 20:29:51 +00:00
Oliver Tale-Yazdi
86f2d65a72
Co #10897 : Storage benchmarking ( #4982 )
...
* Add storage benchmarking
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-25 20:24:29 +00:00
Bernhard Schuster
d946582707
fatality based errors ( #4448 )
...
* seed commit for fatality based errors
* fatality
* first draft of fatality
* cleanup
* differnt approach
* simplify
* first working version for enums, with documentation
* add split
* fix simple split test case
* extend README.md
* update fatality impl
* make tests passed
* apply fatality to first subsystem
* fatality fixes
* use fatality in a subsystem
* fix subsystemg
* fixup proc macro
* fix/test: log::*! do not execute when log handler is missing
* fix spelling
* rename Runtime2 to something sane
* allow nested split with `forward` annotations
* add free license
* enable and fixup all tests
* use external fatality
Makes this more reviewable.
* bump fatality dep
Avoid duplicate expander compilations.
* migrate availability distribution
* more fatality usage
* chore: bump fatality to 0.0.6
* fixup remaining subsystems
* chore: fmt
* make cargo spellcheck happy
* remove single instance of `#[fatal(false)]`
* last quality sweep
* fixup
2022-02-25 17:25:26 +00:00
Bernhard Schuster
85fa087405
do not allow zombienet tests to fail ( #4989 )
2022-02-25 16:04:13 +00:00
Bastian Köcher
4028ca105b
Try to fix disputes test ( #4988 )
...
* Try to fix disputes test
* Enable all native runtimes
2022-02-25 16:01:23 +01:00
wigy
e8cb6cdaac
Companion to "Updating scale to v3" ( #4958 )
...
* Updating dependencies
* Adapting code to scale v3
* Upgrade bitvec to 1.0.0
* Fix bitvec arithmetics
* Update Cargo.lock
* Update sp-io
* Fixing the build
* Yanked scale-info 2.0.0
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-25 13:07:06 +01:00
Mara Robin B
d0c9f75a0b
Add manual dispatch trigger for docker builds ( #4981 )
...
* ci: add manual dispatch docker publish workflow
* ci: fix date in dispatch trigger
* ci: avoid specifying gpg keyserver in multiple places
2022-02-24 16:59:30 +01:00
Mara Robin B
38fb3206db
Fix docker release workflow ( #4980 )
...
* scripts: fix polkadot_injected_release gpg errors
* ci: publish-docker-release: remove keyserver arg
* scripts: join RUNs in polkadot_injected_release
2022-02-24 16:56:51 +01:00
Bastian Köcher
d9d53c17a1
Switch to edition 2021 ( #4976 )
...
* Switch to edition 2021
* Reset bridges
* Fix compilation
* Fix test-runtime
* Fix malus
2022-02-24 10:20:58 +00:00
dependabot[bot]
1ea0f60a72
Bump proc-macro-crate from 1.1.2 to 1.1.3 ( #4977 )
...
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.1.2 to 1.1.3.
- [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-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-24 10:20:27 +00:00
dependabot[bot]
5962c57727
Bump clap from 3.1.1 to 3.1.2 ( #4978 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.1 to 3.1.2.
- [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/compare/v3.1.1...v3.1.2 )
---
updated-dependencies:
- dependency-name: clap
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-02-24 10:20:05 +00:00
Bernhard Schuster
d4176874a1
introduce expander ( #4974 )
...
* introduce expander
* unify towards expand
* bubble up expand
* spelling
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* add newlines
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2022-02-23 14:24:26 +00:00
dependabot[bot]
8aff3cb81b
Bump clap from 3.0.14 to 3.1.1 ( #4968 )
...
* Bump clap from 3.0.14 to 3.1.1
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.14 to 3.1.1.
- [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/compare/v3.0.14...v3.1.1 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* avoid deprecated AppSettings::Hidden
* avoid another deprecated instance
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-02-23 08:31:42 +00:00
André Silva
4ff40eb562
Companion for substrate#10878 ( #4940 )
...
* Companion for substrate#10878
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-22 21:52:31 +00:00
Tsvetomir Dimitrov
fc2ddae965
Use only fresh DisputeStatement-s for dispute spam detection ( #4921 ) ( #4957 )
...
handle_import_statements() from Dispute-Coordinator does spam detection
by counting unconfirmed dispute statements from each validator.
This patch adjusts the logic so that only fresh dispute statements are
counted.
Fresh dispute statement in this case means a statement which was not
loaded from overlay db.
2022-02-22 10:45:45 -06:00
Andronik
9d9f82256e
approval-distribution: a fix for out-of-view messages ( #4908 )
...
* approval-distribution: a fix for out-of-view messages
* approval-distribution: trace logs
* adjust the guide slightly
* comments and nits
2022-02-22 15:02:03 +00:00
radupopa2010
bf1a805c9e
feat: decrese the validity for biggest artifacts ( #4970 )
2022-02-22 15:25:08 +01:00
dependabot[bot]
3f3dc6e07d
Bump strum from 0.23.0 to 0.24.0 ( #4967 )
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
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-02-22 14:57:22 +01:00
dependabot[bot]
bf4865b831
Bump tokio-tungstenite from 0.16.1 to 0.17.1 ( #4969 )
...
Bumps [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite ) from 0.16.1 to 0.17.1.
- [Release notes](https://github.com/snapview/tokio-tungstenite/releases )
- [Changelog](https://github.com/snapview/tokio-tungstenite/blob/master/CHANGELOG.md )
- [Commits](https://github.com/snapview/tokio-tungstenite/compare/v0.16.1...v0.17.1 )
---
updated-dependencies:
- dependency-name: tokio-tungstenite
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-02-22 14:56:58 +01:00
Sergei Shulepov
95a78e877f
paras: initialize_para_now and ParachainsCache ( #4934 )
...
This commit adds a new primitive called `ParachainsCache` to manipulate
the `Parachains` storage entry in a more convenient way.
Then, on top of that, this commit changes the logic of
`initialize_para_now` so that it is identical to what is used for
initialization of onboarding.
2022-02-22 14:52:27 +01:00
Bernhard Schuster
1ba4af9f15
add pyroscope ( #4871 )
...
* pyroscope
* fixup
* add pyroscope target
* fixins
* spellcheck
* rename 'pyroscoped' feature to 'pyroscope'
* build testnet binary with pyroscope feature
* Update Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* make args a string, resolve using std::net
* fixup
* remove --features pyroscope for testnet builds
Until the panics are fixed in upstream, this is sane.
* chore: bump pyroscope to 0.3.1
Fixes an underflow panic.
* Revert "remove --features pyroscope for testnet builds
"
This reverts commit 57dbdc7aa5f6427aeb1e3dfdfc97071c3a74851e.
* fix: Make sample rate a prime
Co-authored-by: Pierre Besson <pierre.besson@parity.io >
Co-authored-by: Andronik <write@reusable.software >
2022-02-22 13:16:49 +00:00