dependabot[bot]
d34b325432
Bump sha2 from 0.10.1 to 0.10.2 ( #11161 )
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.1...sha2-v0.10.2 )
---
updated-dependencies:
- dependency-name: sha2
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-04-19 14:32:20 +00:00
Robert Klotzner
f820db494f
dispute-coordinator: Cleanup + Bug fixes ( #5323 )
...
* Make import confirmation oneshot optional.
* Cleanup for further improvements.
* Queue adoptions.
* Fix fieldname
* Use correct relay parent
* Fix scraper tests.
* Small optimization.
* Fix all tests.
* Fix other tests.
* fmt
* spelling
* Fix warning.
2022-04-19 14:51:02 +02:00
dependabot[bot]
b506c45d40
Bump async-std from 1.10.0 to 1.11.0 ( #11160 )
...
Bumps [async-std](https://github.com/async-rs/async-std ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/async-rs/async-std/releases )
- [Changelog](https://github.com/async-rs/async-std/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-rs/async-std/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: async-std
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-19 12:03:46 +00:00
dependabot[bot]
b3540e76e3
Bump clap from 3.1.8 to 3.1.9 ( #5335 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.8 to 3.1.9.
- [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.8...v3.1.9 )
---
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-04-18 23:01:47 +02:00
dependabot[bot]
6b9bdbe1c2
Bump parity-db from 0.3.9 to 0.3.11 ( #5261 )
...
Bumps [parity-db](https://github.com/paritytech/parity-db ) from 0.3.9 to 0.3.11.
- [Release notes](https://github.com/paritytech/parity-db/releases )
- [Commits](https://github.com/paritytech/parity-db/commits/v0.3.11 )
---
updated-dependencies:
- dependency-name: parity-db
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-04-18 22:55:18 +02:00
dependabot[bot]
42cc18a80c
Bump tracing from 0.1.33 to 0.1.34 ( #5329 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.33 to 0.1.34.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.33...tracing-0.1.34 )
---
updated-dependencies:
- dependency-name: tracing
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-04-18 22:54:17 +02:00
Arkadiy Paronyan and Bastian Köcher
781cd7aac5
Remark storage ( #10698 )
...
* Remark storage
* Fixed benches
* Update frame/remark/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fixed build
* Fixed build
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-04-18 10:39:32 +00:00
9676ce6f36
Add frame_support::crypto::ecdsa::Public.to_eth_address() (k256-based) and use it in pallets ( #11087 )
...
* `ecdsa::Public::to_eth_address` + test, beefy-mmr `convert()` to use it, contracts Ext interface
* `seal_ecdsa_to_eth_address` all but benchmark done
* `seal_ecdsa_to_eth_address` + wasm test
* `seal_ecdsa_to_eth_address` + benchmark
* fixed dependencies
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fixes from review #1
* ecdsa::Public(*pk).to_eth_address() moved to frame_support and contracts to use it
* beefy-mmr to use newly added frame_support function for convertion
* a doc fix
* import fix
* benchmark fix-1 (still fails)
* benchmark fixed
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fixes on Alex T feedback
* to_eth_address() put into extension trait for sp-core::ecdsa::Public
* Update frame/support/src/crypto/ecdsa.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/mod.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fixes on issues pointed out in review
* benchmark errors fixed
* fmt fix
* EcdsaRecoverFailed err docs updated
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* make applied suggestions compile
* get rid of unwrap() in runtime
* Remove expect
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-04-16 15:51:40 +03:00
Robert Klotzner
286fedf04a
Make debug builds more useful & testing faster. ( #4807 )
...
* Make debug builds more useful & testing likely faster.
Stolen from substrate.
* Add some more packages from
https://github.com/paritytech/polkadot/pull/3344/files
* Fix compilation.
2022-04-16 13:42:33 +02:00
Dan Shields
c6e452108b
Child bounties comments ( #11053 )
...
* * formatting
* use uniform notion of parent and child, no "master" or "general" entity
* README updated to match comments
* `parent_index` used over simply `index`
* rm `parent_*` change
* parent_bounty_id
* parent_index rm
* fmt
* Apply suggestions from code review
2022-04-16 09:55:37 +00:00
Oliver Tale-Yazdi and parity-processbot
8c3dbe0cfc
Co #11198 : Expose benchmark machine command ( #5326 )
...
* Expose benchmark machine command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* error.into
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
* Revert "update lockfile for {"substrate"}"
This reverts commit 41c2ddda511076567a98c85efa631374071c9e5a.
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-04-15 18:46:36 +02:00
a74c527d32
Companion for Adding benchmarking for new frame_election_provider_support #11149 ( #5241 )
...
* `GenesisElectionOf` after changes to substrate
* Benchmarking for `frame_election_provider_support`
* Introducing `OnChainSeqPhragmen` after changes
to substrate.
Pallet renaming in substrate
* Fixing `test-runtime`
* Use `UnboundedExecution` after change to substrate
* update lockfile for {"substrate"}
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_election_provider_support --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_election_provider_support --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark pallet --chain=westend-dev --steps=50 --repeat=20 --pallet=frame_election_provider_support --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
Co-authored-by: parity-processbot <>
Co-authored-by: Parity Bot <admin@parity.io >
2022-04-15 17:17:38 +02:00
Oliver Tale-Yazdi
362dc50940
Add benchmark machine placeholder ( #11198 )
...
* Move new_rng to shared code
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add bechmark machine command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use sc-sysinfo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add --no-hardware-benchmarks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Lockfile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Do not create components if not needed
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Add --no-hardware-benchmarks"
This reverts commit d4ee98222bf1a5ea62ac60dd7d5c62070e2d7f70.
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update Cargo deps
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move sr255119::verify bench to sc-sysinfo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move sr255119::verify bench to sc-sysinfo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Switch benchmarks to return f64
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Hide command until completed
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use concrete rand implementation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Put clobber into a function
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add comment
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update cargo to match polkadot
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove doc that does not format in the console
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Limit benchmark by time
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add ExecutionLimit and make function infallible
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-04-15 12:09:16 +00:00
Georges
ae75a371bf
Adding benchmarking for new frame_election_provider_support ( #11149 )
...
* First stab at adding benchmarking for
`election-provider-support` onchain
* Adding `BoundedPhragMMS` and fixing stuff
* Fixing node runtime
* Fixing tests
* Finalising all benchmarking stuff
* better comments
* Better benchmarking config
* Better `WeightInfo` and benchmarking
* Fixing tests
* Adding some documentation
* Fixing some typos
* Incorporating review feedback
* cleanup of rustdocs
* rustdoc changes
* changes after code review
* Fixing some errors.
* Fixing dependencies post merge
* Bringing back `UnboundedExecution`
* Better rustdoc and naming
* Cargo.toml formatting
2022-04-15 10:15:01 +00:00
dependabot[bot]
e3326d26b3
Bump scale-info from 2.0.1 to 2.1.1 ( #5325 )
...
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 2.0.1 to 2.1.1.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/commits/v2.1.1 )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-15 08:16:50 +02:00
stanly-johnson and Oliver Tale-Yazdi
7dca0e467c
pallet_assets : Remove event for no_op ( #11023 )
...
* remove no_op event
* ensure no transferred event emitted
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-04-14 19:41:42 +00:00
dependabot[bot]
b9e0e1493f
Bump quote from 1.0.17 to 1.0.18 ( #5301 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.17...1.0.18 )
---
updated-dependencies:
- dependency-name: quote
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-04-14 20:55:58 +02:00
Ross Bulat and joe petrowski
c56e8f684f
Rb staking pallet validator commission change event ( #10827 )
...
* commission-changed-event-and-deposit
* deposit_event fix
* commission_changed_event_works
* fmt
* CommissionChanged -> ValidatorPrefsUpdated
* event ValidatorPrefs
* updated commet
* fmt
* Update frame/staking/src/pallet/mod.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/staking/src/pallet/mod.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/staking/src/tests.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2022-04-14 16:25:54 +00:00
Nazar Mokrynskyi and Bastian Köcher
2f01960eb2
Update zstd dependency ( #5148 )
...
* Update zstd dependency
* Update Cargo.lock
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-04-14 15:54:27 +02:00
Nazar Mokrynskyi
e5c33d8aa4
Update wasmtime to 0.35.3 ( #11058 )
...
* Update wasmtime to 0.35.2 and default `zstd` features in all crates
* Update wasmtime to 0.35.3
2022-04-14 15:07:36 +02:00
Liu-Cheng Xu
001ade9c5d
Make the generic of CliConfiguration explicit ( #11223 )
...
Othewise the compiler will complain if someone passes something that
implements `CliConfiguration<DVC>` but `DVC` is not the default `()`.
2022-04-14 11:18:54 +02:00
3f56e1ff55
Add XCM Benchmarks to Kusama ( #4442 )
...
* add xcm benchmarks to kusama
* Create temp
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* add weights to kusama runtime
* Fixes
* Fixes
* Fixes
* Fixes
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* use new benchmark
* Fix license year
* update substrate deps
* Add Configuration::ActiveConfig storage key to the whitelist
* Update Cargo.lock
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-04-14 10:50:06 +02:00
Bastian Köcher
298fdf3012
authority-discovery: Fix flaky test ( #11219 )
...
It can happen that `+ 1` overflows `p.signature[1]` ;D (I have seen this in the CI).
2022-04-13 17:01:36 +02:00
c028d38645
Document the chain spec format ( #11208 )
...
* Document the chain spec format
* Update client/chain-spec/src/lib.rs
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* Update client/chain-spec/src/lib.rs
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* Apply suggestions from code review
Co-authored-by: Sacha Lansky <sacha@parity.io >
* Update client/chain-spec/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update client/chain-spec/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Mention extensions
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Sacha Lansky <sacha@parity.io >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2022-04-13 16:53:35 +02:00
cddd5749d3
Malus: improvements in dispute ancestor and suggest garbage candidate implementation ( #5011 )
...
* Implement fake validation results
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* refactor
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo lock
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spell check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* typos
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* move stuff around
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* chores
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Impl valid - still wip
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Pull Ladi's implementation:
https://github.com/paritytech/polkadot/pull/4711
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
Co-authored-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix build
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Logs and comments
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* WIP: suggest garbage candidate + implement validation result caching
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Do commitment hash checks in candidate validation
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Minor refactor in approval, backing, dispute-coord
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Working version of suggest garbage candidate
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Dedup
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cleanup #1
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* remove debug leftovers
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Accidentally commited some local test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* some more fixes
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Refactor and fix it
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* typo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* tests review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* refactor disputer
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix zombienet disputes test
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* spellcheck
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix ui tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix typo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2022-04-13 13:45:39 +00:00
Alexander Samusev
8a49af27ad
[ci] fix publish-docker-substrate job ( #11218 )
2022-04-13 14:22:25 +02:00
Oliver Tale-Yazdi
ca658002a8
Fix WASM block producer panic ( #11206 )
...
* Box events
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Box events"
This reverts commit 9fb1887cd23eb272844d63640b0b2d9ba3e549a1.
* Revert "Fix tests"
This reverts commit 981c50f23a7c514c9527299734bc6bc5b77a817f.
* Use simpler approach
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-04-13 11:55:14 +00:00
Adrian Catangiu and parity-processbot
a46237cebb
Add mmr_root() to pallet-mmr API to expose root from state (companion for substrate#11183) ( #5276 )
...
* Add mmr_root() to pallet-mmr API to expose root from state
* use the right MmrApi primitives
* bridges: use correct mmr primitives
* rococo: beefy-mmr deposit mmr root digest
* fix lockfile
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-04-13 10:55:18 +00:00
Adrian Catangiu
80ce5c5768
Expose MMR root through runtime API - use it in BEEFY client ( #11183 )
...
* beefy-gadget: allow custom runtime api provider
* beefy-gadget: use mock runtime api in tests
* pallet-mmr: expose mmr root from state through runtime API
* beefy-gadget: get mmr root from runtime state
* pallet-beefy-mmr: remove MmrRoot from header digests
* frame/mmr: move mmr primitives out of frame
* frame/mmr: completely move primitives out of frame
* address review comments
* beefy-mmr: bring back mmr root from header digest
* clippy fixes for rustc 1.60
* address review comments
2022-04-13 10:13:06 +00:00
Andronik
ff18cabbc5
remove old pallet migrations ( #5194 )
...
* remove old pallet migrations
* remove more stuff
2022-04-13 10:01:57 +00:00
dependabot[bot]
c8423f5175
Bump tracing from 0.1.32 to 0.1.33 ( #5299 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.32 to 0.1.33.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.32...tracing-0.1.33 )
---
updated-dependencies:
- dependency-name: tracing
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-04-12 22:45:21 +02:00
Qinxuan Chen
3fec108263
Bump soketto to v0.7.1 ( #11203 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2022-04-12 22:43:10 +02:00
Tsvetomir Dimitrov
fd020c07e5
Add staging runtime api ( #5048 )
...
* Move `trait ParachainHost` to a separate version independent module
`trait ParachainHost` is no longer part of a specific primitives
version. Instead there is a single trait for stable and staging api
versions. The trait contains stable AND staging methods. The latter are
explicitly marked as unstable.
* Fix `use` primitives
`polkadot_primitives::v2` becomes `polkadot_primitives::runtime_api`
* Staging API declaration and stubs
Introduces the concept for 'staging functions' in runtime API. These
functions are still in testing and they are meant to be used only
within test networks (Westend).
They coexist with the stable calls for technical reasons - maintaining
different runtime APIs for different networks is hard to implement.
Check the doc comments in source files for more details how the staging
API should be used.
* Add new staging method - get_session_disputes()
Add `staging_get_session_disputes` to `ParachainHost` as the first
method of the staging API.
* Hide vstaging runtime api implementations behind feature flag
* Fix test runtime
* fn staging_get_session_disputes() is renamed to fn staging_get_disputes()
2022-04-12 15:47:46 +00:00
Denis Pisarev
04f5a15be4
CI: rename ambiguous jobs ( #5313 )
2022-04-12 15:53:13 +02:00
Denis Pisarev
ba8beeed32
CI: rename ambiguous jobs ( #11207 )
2022-04-12 15:53:03 +02:00
Bastian Köcher and André Silva
cc4b5c4818
Finality notification: Optimize calculation of stale heads ( #11200 )
...
* Finality notification: Optimize calculation of stale heads
While looking into some problem on Versi where a collator seemed to be stuck. I found out that it
was not stuck but there was a huge gap between last finalized and best block. This lead to a lot
leaves and it was basically trapped inside some loop of reading block headers from the db to find
the stale heads. While looking into this I found out that `leaves` already supports the feature to
give us the stale heads relative easily. However, the semantics change a little bit. Instead of
returning all stale heads of blocks that are not reachable anymore after finalizing a block, we
currently only return heads with a number lower than the finalized block. This should be no problem,
because these other leaves that are stale will be returned later when a block gets finalized which
number is bigger than the block number of these leaves.
While doing that, I also changed `tree_route` of the `FinalityNotification` to include the
`old_finalized`. Based on the comment I assumed that this was already part of it. However, if
wanted, I can revert this change.
* FMT
* Update client/service/src/client/client.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Do not include the last finalized block
* Rename function
* FMT
* Fix tests
* Update figure
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2022-04-12 13:12:53 +02:00
Xiliang Chen and Bastian Köcher
f84fc59892
add has_identity ( #11197 )
...
* add has_identity
* Update frame/identity/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* update
* update
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-04-12 05:26:34 +00:00
Koute
8351ada6a3
Add new hardware and software metrics ( #11062 )
...
* Add new hardware and software metrics
* Move sysinfo tests into `mod tests`
* Correct a typo in a comment
* Remove unnecessary `nix` dependency
* Fix the version tests
* Add a `--disable-hardware-benchmarks` CLI argument
* Disable hardware benchmarks in the integration tests
* Remove unused import
* Fix benchmarks compilation
* Move code to a new `sc-sysinfo` crate
* Correct `impl_version` comment
* Move `--disable-hardware-benchmarks` to the chain-specific bin crate
* Move printing out of hardware bench results to `sc-sysinfo`
* Move hardware benchmarks to a separate messages; trigger them manually
* Rename some of the fields in the `HwBench` struct
* Revert changes to the telemetry crate; manually send hwbench messages
* Move sysinfo logs into the sysinfo crate
* Move the `TARGET_OS_*` constants into the sysinfo crate
* Minor cleanups
* Move the `HwBench` struct to the sysinfo crate
* Derive `Clone` for `HwBench`
* Fix broken telemetry connection notification stream
* Prevent the telemetry connection notifiers from leaking if they're disconnected
* Turn the telemetry notification failure log into a debug log
* Rename `--disable-hardware-benchmarks` to `--no-hardware-benchmarks`
2022-04-11 18:46:53 +09:00
905ec74f6a
Prepare for rust 1.60 ( #5282 )
...
* Prepare for rust 1.60
* change ci image to staging
* empty commit for pipeline rerun
* ci image production
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-04-11 11:31:39 +02:00
f517e57f67
Prepare for rust stable 1.60 ( #11138 )
...
* Prepare for rust stable 1.59
Besides preparing the UI tests this also adds a new script update-rust-stable.sh script for
simplifying the update of a rust stable version. This script will run all UI tests for the new
rust stable version and updating the expected output.
* Ensure we run the UI tests in CI
* use staging ci image
* More test updates
* Unignore test (#11097 )
* empty commit for pipeline rerun
* empty commit for pipeline rerun
* Try to make clippy happy
* More clippy fixes
* FMT
* ci image production
Co-authored-by: alvicsam <alvicsam@gmail.com >
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2022-04-11 11:21:54 +02:00
Dominique
d20a10dee3
Updated docs for method set_payee & set_controller ( #11192 )
...
* Updated docs for method 'set_payee'
* Updated docs for method 'set_controller'
2022-04-11 08:36:13 +00:00
Xiliang Chen
03ab76e9c7
add sort & try_append to bounded_vec ( #11196 )
2022-04-11 10:35:25 +02:00
Davide Galassi
641a43a05d
Normalization of CLI options format (CamelCase => kebab-case) ( #11194 )
...
* Convert cli options from 'CamelCase' to 'kebab-case'
* Remove not required 'as_str' for 'ExecutionStrategy' option
2022-04-11 09:45:45 +02:00
dependabot[bot]
3fef84a69a
Bump proc-macro2 from 1.0.36 to 1.0.37 ( #5265 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.36...1.0.37 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-04-09 23:44:41 +02:00
Davide Galassi
9090f0d2a2
Remove useless trait bound and move instructions ( #11193 )
...
* Remove useless trait bound and `move` instructions
* cargo fmt
2022-04-09 12:08:46 +00:00
Sergei Shulepov
b89dc00ec0
Fixes the dead lock when any of the channels get at capacity. ( #5297 )
...
The PVF host is designed to avoid spawning tasks to minimize knowledge
of outer code. Using `async_std::task::spawn` (or Tokio's counterpart)
deemed unacceptable, `SpawnNamed` undesirable. Instead there is only one
task returned that is spawned by the candidate-validation subsystem.
The tasks from the sub-components are polled by that root task.
However, the way the tasks are bundled was incorrect. There was a giant
select that was polling those tasks. Particularly, that implies that as soon as
one of the arms of that select goes into await those sub-tasks stop
getting polled. This is a recipe for a deadlock which indeed happened
here.
Specifically, the deadlock happened during sending messages to the
execute queue by calling
[`send_execute`](https://github.com/paritytech/polkadot/blob/a68d9be35656dcd96e378fd9dd3d613af754d48a/node/core/pvf/src/host.rs#L601 ).
When the channel to the queue reaches the capacity, the control flow is
suspended until the queue handles those messages. Since this code is
essentially reached from [one of the select
arms](https://github.com/paritytech/polkadot/blob/a68d9be35656dcd96e378fd9dd3d613af754d48a/node/core/pvf/src/host.rs#L371 ),
the queue won't be given the control and thus no further progress can be
made.
This problem is solved by bundling the tasks one level higher instead,
by `selecting` over those long-running tasks.
We also stop treating returning from those long-running tasks as error
conditions, since that can happen during legit shutdown.
2022-04-09 10:57:34 +00:00
dependabot[bot]
a68d9be356
Bump syn from 1.0.90 to 1.0.91 ( #5273 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.90...1.0.91 )
---
updated-dependencies:
- dependency-name: syn
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-04-08 19:56:15 +02:00
João Paulo Silva de Souza
c8eb992cfd
create .github/workflows/pr-custom-review.yml ( #5280 )
2022-04-08 17:39:29 +02:00
f4336fafb7
Add GHA for custom PR review ( #10951 )
...
* Add GHA for custom PR review
* Change FILES rule settings
* Update rules according to feedback
* Update .github/pr-custom-review.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
* CI: PRCR new 🔒 team is locks-review
* CI: rename a confusing step
* Update .github/workflows/pr-custom-review.yml
Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com >
* CI: use a proper new team for
as per discussion with @drahnr it was decided to create a dedicated team for reviewing runtime files
* Update pr-custom-review.yml
* Update .github/workflows/pr-custom-review.yml
Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com >
* Update .github/workflows/pr-custom-review.yml
Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com >
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
Co-authored-by: TriplEight <denis@parity.io >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com >
2022-04-08 17:39:10 +02:00
Mara Robin B
11fc94176d
[ci] fix pallet benchmark script ( #5247 ) ( #5292 )
2022-04-08 14:50:10 +02:00