dependabot[bot]
157b8ce899
Bump itertools from 0.10.1 to 0.10.3 ( #4476 )
...
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.1 to 0.10.3.
- [Release notes](https://github.com/rust-itertools/itertools/releases )
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.1...v0.10.3 )
---
updated-dependencies:
- dependency-name: itertools
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-12-07 12:18:32 +01:00
Ayevbeosa Iyamu
56fb1cfbb6
Used CountedStorageMap in pallet-staking ( #10233 )
...
* Removed counters and used CountedStorageMap instead.
* Little refactoring
* Update frame/staking/src/migrations.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Removed redundant code to update counter for validator & nominator.
* Removed redundant code to update counter for validator & nominator.
* Removed unreachable code to inject the hashed prefix for nominator & validator.
* Removed redundant check for nominator & validator count.
* Generated `fn prefix_hash` for `CountedStorageMap`.
* Applied changes from `cargo fmt`
* Possible correct implementation of migration code
* Implemented fn module_prefix, storage_prefix and prefix_hash.
* Removed counted_map.rs
* Renamed `fn storage_prefix` to `storage_counter_prefix`.
* Update frame/support/src/storage/types/counted_map.rs
* Update frame/bags-list/remote-tests/src/snapshot.rs
* Update frame/support/src/storage/types/counted_map.rs
* Fixed errors.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-12-07 09:21:27 +00:00
Svyatoslav Nikolsky
97203dfc6f
Restore Rococo <> Wococo bridges (headers + messages) ( #4452 )
...
* restore Rococo <> Wococo bridge
* accept messages from lane 00000000 only
* remove commented code
* fixed pallets order
2021-12-07 07:51:22 +00:00
Nazar Mokrynskyi
9e9e18b161
Minor documentation update for AuxStore and BlockImportParams.auxiliary ( #10428 )
2021-12-06 22:35:45 +00:00
Zeke Mostov
e65caa56d4
Add baseline benchmark for sr25519 verification ( #10414 )
...
* Add baseline benchmark for sr25519 verification
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Register keystore for correct test externalities
* Update frame/benchmarking/src/baseline.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fix build
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-12-06 22:31:16 +01:00
Keith Yeung
8e9cf43f5e
Disable asset transfers on Polkadot ( #4475 )
2021-12-06 22:30:29 +01:00
Zeke Mostov
39310088b0
Run paras inherent benchmarks ( #4454 )
...
* Some new lines
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras_inherent.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras_inherent.rs
Co-authored-by: Parity Bot <admin@parity.io >
2021-12-06 20:12:12 +00:00
Pierre Besson
5601fd6b84
update rococo chainspec to v1_14 ( #4474 )
2021-12-06 20:55:11 +01:00
Chevdor
782e40b177
Add check_labels script and workflow ( #782 )
2021-12-06 15:30:42 +01:00
Bernhard Schuster
4adb8466a3
dev-comment spelling mistakes ( #4434 )
2021-12-06 15:20:29 +01:00
Xiliang Chen
b5b3e827ab
allow tip value of 1 ( #10425 )
...
* allow tip value of 1
* update comment
* fmt
* update test
* fmt
2021-12-06 12:31:13 +01:00
wigy
5fd7fdcfcd
Authentication of PeerIds in authority discovery records ( #10317 )
...
* Consolidating test and production code
* Signing/verifying authority discovery records with PeerId
Unsigned records cannot be rejected yet, they just produce
a warning in the log.
* Upgrading to libp2p 0.40
* libp2p::identity and sp_core::crypto Ed25519 are compatible
* Rejecting authority records unsigned by peer id can be configured
* Fixes based on review comments
* No command-line argument needed
* info was still too much spam in the logs
* Added tests for both strict and loose validation
* Fixing based on review comments
* Pierre preferred a signing method
* Ooops, I need to slow down
* Update bin/node/cli/src/service.rs
* Reexport libp2p crypto used in sc-network
* Added proto3 compatibility tests. And import noise.
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-12-05 20:17:14 +01:00
Bernhard Schuster
854d92a4a4
Assure backed candidates are sorted after sanitization ( #4422 )
2021-12-05 10:43:56 +00:00
Kian Paimani
4775f11edc
allow try-runtime and TestExternalities to report PoV size ( #10372 )
...
* allow try-runtime and test-externalities to report proof size
* self review
* fix test
* Fix humanized dispaly of bytes
* Fix some test
* Fix some review grumbles
* last of the review comments
* fmt
* remove unused import
* move test
* fix import
* Update primitives/state-machine/src/testing.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* last touches
* fix
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-12-04 06:11:25 +00:00
Devdutt Shenoi
b2f1374487
Optimize encoded-size of SignedCommitment ( #10409 )
...
* Include code from paritytech/grandpa-bridge-gadget#186
* Cargo fmt commitment.rs
* Make changes suggested by @tomusdrw
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2021-12-03 21:48:11 +00:00
Pierre Krieger
2804b56d78
No longer include :code and :heappages in execution proofs ( #10419 )
...
* No longer include :code and :heap_pages in execution proofs
* Oops, forgot the line
* Rustfmt
2021-12-03 19:50:23 +01:00
Chevdor
7bf379ac4e
Fix path of the polkadot_injected docker image ( #4463 )
2021-12-03 18:13:45 +01:00
joe petrowski
0d69a6ba4c
update docs on validation_upgrade_frequency ( #4460 )
2021-12-03 17:05:35 +01:00
Chevdor
b081149939
Fix path of the polkadot sha256 ( #4458 )
2021-12-03 16:59:44 +01:00
Bastian Köcher
4e3f34822c
Fix cumulus companion checks ( #10412 )
...
* Fix cumulus companion checks
* Add missing tag
* Fix
* Update .gitlab-ci.yml
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Denis Pisarev <17856421+TriplEight@users.noreply.github.com >
2021-12-03 16:11:06 +01:00
Bastian Köcher
cb8cb7a12c
Fix cumulus companion CI job ( #4451 )
...
* Fix cumulus companion CI job
* Pass by env variable
* Switch to the latest release
* 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 >
2021-12-03 14:14:50 +01:00
Bastian Köcher
32a86d8ef4
Adds support for returning a custom header from validate_block ( #825 )
...
* Adds support for returning a custom header from `validate_block`
This adds support for returning a custom header from `validate_block`. Before this, we always
returned the header of the block that was validated (and still do it by default). However, after
this pr it is possible to set a custom header or better custom head data that will be returned
instead from `validate_block`. This can be for example when a chain wants to fork.
* FMT
2021-12-03 12:49:13 +01:00
Chevdor
20a8d42417
Add doc about runtime version bump ( #4418 )
2021-12-03 11:07:40 +00:00
dependabot[bot]
c8c88984ee
Bump trybuild from 1.0.52 to 1.0.53 ( #4455 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.52 to 1.0.53.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.52...1.0.53 )
---
updated-dependencies:
- dependency-name: trybuild
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-12-03 11:03:37 +00:00
Bastian Köcher
6a770dfda1
wasm-override: Support checking spec_name ( #10380 )
...
This adds support to the wasm-override feature to compare the spec_name. If the spec_name doesn't
match, a warning will be printed and the override will be ignored.
2021-12-03 11:29:51 +01:00
Guillaume Thiolliere
a3c60b245f
companion for #10231 ( #4306 )
...
* fix renames
* fix test
* cargo update -p sp-io
* bump implement version
* bumpd spec version, to be safe
* bump version correctly
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-03 07:00:49 +00:00
Guillaume Thiolliere
9756615d5b
Fix pallet bags list and doc ( #10231 )
...
* fix bags list
* improve doc
* doc
* inner doc
* fix test
* Update docs in frame/election-provider-support/src/lib.rs
* fix staking impl
* prepend unsafe to clear and regenerate
* fix test
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-03 05:58:12 +00:00
Nazar Mokrynskyi
798e01bf9b
Account for transaction priority when enforcing limits ( #10388 )
...
* Account for transaction priority when enforcing limits
* Improve `enforce_limits` comment
* Explanation comment on why comparison impl is not used for limit enforcement
2021-12-02 23:17:23 +00:00
Shawn Tabrizi
a425f3fa9a
trivial fix ( #4441 )
2021-12-03 00:00:22 +01:00
Steve Degosserie
b3d08c0a8e
Rococo: ability to programatically assign slots to teams ( #3943 )
...
* Permanent & Temp parachain slots on Rococo - WIP
* Revert test change
* Revert test change
* Fix formatting
* Extract logic to separate assigned_slots pallet
* Formatting
* Parachain downgrade logic
* Pallet doc comment
* Revert unnecessary changes
* Fix few issues, tweak temp slots allocation logic; add a bunch of tests
* Address review comments; track active temp slots
* Update runtime/common/src/assigned_slots.rs
* Update runtime/common/src/assigned_slots.rs
* Remove assigned_slots calls from paras_sudo_wrapper
* Unassign is a perfectly valid verb
* Remove unneeded collect
* Update code following #3980
* Cleanup
* Generate storage info for pallet
* Address review comments
* Add ForceOrigin to slots pallet
* Track permanent slot duration in storage
* Fix tests build
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-02 22:23:45 +01:00
Bernhard Schuster
89ccd18ccb
Add parent header hash to log ( #4421 )
...
* Add parent header hash to log
* add :
2021-12-02 13:31:57 +00:00
Kian Paimani
70ea98995a
Integrate try-runtime into cumulus ( #793 )
...
* almost integrate
* revert branch changes
* remove extra deps
* some review comments'
* Fix a bunch of stuff
* Update parachain-template/node/Cargo.toml
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fix
* Fix
* fix benchmark
* fmt
* Remove wrong bench test
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-02 14:00:54 +01:00
Martin Pugh
243014db2c
bump tx versions ( #4447 )
2021-12-02 13:18:44 +01:00
Kian Paimani
96820bef83
Companion for substrate/10347 ( #4413 )
...
* companion for substrate/10347
* Fix stuff
* udpate substrate (cargo update -p sp-io)
2021-12-02 11:22:19 +01:00
Tomasz Drwięga
033fff0a38
Merge pull request #4427 from paritytech/update-bridges-subtree-r/w
...
Update bridges subtree r/w
2021-12-02 11:20:45 +01:00
Kian Paimani
e9a7dc3ca6
Minimum commission for validators ( #10347 )
...
* Minimum commission for validators
* rename
* Fix benchmakrs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Update frame/staking/src/pallet/mod.rs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-02 08:11:10 +00:00
Zeke Mostov
df19d3faa8
Improve paras runtime BenchBuilder api ( #4318 )
...
* Improve paras runtime `BenchBuilder` api
* fix
* Improve doc comment
* Some doc improvemens'
* Use setters and no params for build
* +nightly-2021-10-29 fmt
* Clean up some comments
* Simplify set_code_upgrade
* Accept a slice for set_dispute_sessions
* Doc comments
* Spelling
* use impl AsRef
* Prepare for merge
* fmt
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2021-12-02 03:32:43 +00:00
Sergejs Kostjucenko
f6c8d0d023
Add CI team to CODEOWNERS file ( #4350 )
...
* Add CI stuff to CODEOWNERS file
* Add more CODEOWNERS
2021-12-02 03:15:19 +02:00
Keith Yeung
ad8fa5fc07
Refactor some types in XCMP queue ( #813 )
...
* Rename InboundXcmpStatus and its related types
* Rename OutboundXcmpStatus and its relevant types
* Add documentation to the newly created types
* Ensure storage prefixes are kept the same
* Add code comments
* Revert storage name changes
* typo fix
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-02 00:24:04 +00:00
Shawn Tabrizi
bf5808eb7f
XCM Benchmarks for Generic Instructions ( #3940 )
...
* initial stuff
* quick fixes
* move to individual tests
* dont need these
* Update benchmarking.rs
* add to westend
* make benchmarks execute
* fix compile
* add post_execute
* ClaimAsset benchmark working
* subscribe and unsubscribe benchmarks
* benchmark for initiate reserve withdraw
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* fix spell check
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* update worst case for query_holding
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* move verification logic below
* introduce worst case holding to initiate reserve withdraw
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* feedback
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* Revert "cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs"
This reverts commit 277903944be620dc57d83b9bcf3b462d2fb73ab5.
* fix benchmark template
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* use response::version
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* refactor worst case holding
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-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/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* fmt
* one more todo needs to be labeled
* change option to result with benchmark error
* fmt and fix import
Co-authored-by: Parity Bot <admin@parity.io >
2021-12-01 23:52:18 +00:00
Chevdor
55d07ee356
Announce only on releases ( #4417 )
...
* Announce only on releases
* Add filtering to send announces for pre-releases only where desired
2021-12-02 00:31:34 +01:00
Shawn Tabrizi
a3798775d8
Companion for #10379 (EnsureOneOf) ( #810 )
...
* new ensure one of
* Update Cargo.lock
* Update SUbstrate & Polkadot
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-12-01 23:06:50 +00:00
Shawn Tabrizi
3771b90ff1
Companion for 10379 (EnsureOneOf) ( #4405 )
...
* new ensure one of
* fmt
* Update lib.rs
* Update substrate
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-12-01 23:32:37 +01:00
Alex Pozhylenkov
1d19c7dc7f
Move EnsureOneOf into the dispatch.rs, make an interface more general ( #10379 )
...
* move EnsureOneOf into the dispatch.rs, make an interface more general
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-01 21:31:57 +00:00
Ignacio Palacios
6b3ac7e1a2
Increase statemine balance ( #808 )
...
* increase statemine balance
* Fix formatting
Co-authored-by: Wilfried Kopp <wilfried@parity.io >
2021-12-01 22:13:59 +01:00
zjb0807
7746039392
add pallet-babe/std ( #4438 )
2021-12-01 16:10:29 +00:00
antonio-dropulic
16b26cd002
update Cargo.lock
2021-12-01 16:53:25 +01:00
Chevdor
030ea4cc0c
Fix secret used to send announcements ( #821 )
...
* Fix secret used to send announcements
* Fix matrix secret
2021-12-01 16:35:50 +01:00
antonio-dropulic
4186bc4a6f
Merge commit '114f487fd9daef4b4cd791446372a9a690c137ac' into update-bridges-subtree-r/w
2021-12-01 16:34:30 +01:00
antonio-dropulic
114f487fd9
Squashed 'bridges/' changes from 407bf44a8a..1602249f0a
...
1602249f0a Enable Beefy debug logs in test deployment (#1237 )
c61d240b47 Fix storage parameter name computation (#1238 )
96d3808e88 Integrate BEEFY with Rialto & Millau runtimes (#1227 )
f75a1bdd9b update dependencies (#1229 )
957da03854 Add mut support (#1232 )
8062637289 fixed set_operational in GRANDPA pallet (#1226 )
14b36ca4ee Add CODEOWNERS file (#1219 )
3bec15766f Unify metric names (#1209 )
0e839d2423 remove abandoned exchange relay (#1217 )
2c91c6815c Remove unused `relays/headers` (#1216 )
80b1e65db8 Remove unused PoA<>Substrate bridge (#1210 )
f36f76fc2a Fix UI deployment. (#1211 )
fc0b65365b Add `AtLeast32BitUnsigned` for MessageLance::SourceChainBalance (#1207 )
git-subtree-dir: bridges
git-subtree-split: 1602249f0a258b8bc95d3ff5b8c8851fc97f42f4
2021-12-01 16:27:07 +01:00