Sergei Shulepov
83a35874ee
Do not expire HRMP open channel requests ( #3543 )
...
* Do not expire HRMP open channel requests
* Fix the build and update the docs
* Implement canceling requests and do not remove them automatically
* Fix a borked merge
* Fix fmt
* Please spellchecker
* Apply suggestions from code review
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
* Use `mutate_exists` for maintaining request counts
* Apply `rustfmt`
* Move newly introduced entrypoint to end to preserve ordering
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
2021-09-09 14:06:13 +02:00
dependabot[bot]
d1c281461d
Bump zeroize from 1.2.0 to 1.4.1 ( #9591 )
...
Bumps [zeroize](https://github.com/iqlusioninc/crates ) from 1.2.0 to 1.4.1.
- [Release notes](https://github.com/iqlusioninc/crates/releases )
- [Commits](https://github.com/iqlusioninc/crates/compare/zeroize/v1.2.0...zeroize/v1.4.1 )
---
updated-dependencies:
- dependency-name: zeroize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 11:31:31 +00:00
dependabot[bot]
d32340b913
Bump lru from 0.6.5 to 0.6.6 ( #9635 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.6.5 to 0.6.6.
- [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.6.5...0.6.6 )
---
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>
2021-09-09 13:26:25 +02:00
girazoki
b9e968fb3f
Add setter configurable only for benchmarking or tests ( #9668 )
...
* Add setter configurable only fior benchmarking or tests
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-09 12:45:16 +02:00
dependabot[bot]
f66b6cccda
Bump tokio from 1.10.1 to 1.11.0 ( #3821 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.10.1...tokio-1.11.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 09:56:00 +00:00
Bastian Köcher
129c9ed09e
Remove the last bits of unknown_os in the code base ( #9718 )
...
* Remove the last bits of unknown_os in the code base
* Fmt
2021-09-09 11:17:16 +02:00
Alexander Theißen
a443944167
Improve instruction benchmarks ( #9712 )
...
* seal_input can be called multiple times
* Increase size of instruction benchmarks
* Remove randomness from instr_br* benchmarks
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-09 09:12:08 +00:00
Chevdor
dc2c953ef2
Add words to the dictionnary ( #3819 )
...
fix #3814
2021-09-09 10:08:51 +02:00
Sergejs Kostjucenko
c918d57fd4
Add vault secrets to puplish-rustdoc job ( #3816 )
2021-09-09 10:48:20 +03:00
Pierre Krieger
5666d9de94
Fix flaky test ( #9729 )
...
* Fix flaky test
* Restore cargo fmt
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com >
2021-09-08 20:45:24 +02:00
Sergejs Kostjucenko
0ff3015a8a
Change pipeline to use Vault ( #3722 )
...
* Change pipeline to use Vault
2021-09-08 21:39:09 +03:00
Gavin Wood
c5e25877f1
Don't drop UMP queue items if weight exhausted ( #3784 )
...
* Requeue UMP queue items if weight exhausted
* Reduce complexity and remove Deque
* Formatting
* Formatting
* Avoid needless storage writes
* Test
* Formatting
* Docs and cleanup
* fmt
* Remove now irrelevant comment.
* Simplify `take_processed` by using `mem::take`
* Clean up & fmt: use `upward_message` directly.
* Grumbles
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-09-08 19:57:26 +02:00
tgmichel
f7a421f488
graph::ChainApi and graph::Pool reexport (#9726 )
...
* `graph::ChainApi` and `graph::Pool` reexport
* Redundant import cleanup
2021-09-08 15:57:34 +02:00
Robert Klotzner
a14b667723
Fix flaky availability-recovery test ( #3812 )
...
* Increase timeout in tests.
Fixes #3798
* Fix timeout.
2021-09-08 12:56:45 +00:00
Robert Habermeier
647b204b5d
participate in disputes only if haven't voted already ( #3796 )
...
* participate in disputes only if haven't voted already
* Add tests for dispute participation on local import.
* Fixes.
* cargo fmt
* Get rid of redundant dependency.
Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at >
2021-09-08 13:59:44 +02:00
Bastian Köcher
b382cc8f9d
Improve sandbox internal api ( #9709 )
...
* Improve sandbox internal api
This improves the internal sandbox api for the executor implementations.
The main point is to hide the tls in the internal api and not having it
exposed to the outside.
This is especially needed for wasmtime 0.29.0
* Fmt
* Make it nicer
2021-09-08 12:28:23 +02:00
Alexander Popiak
8cf6474388
add query types to generate_storage_alias ( #9659 )
...
* add query types to generate_storage_alias
* adjust comment
* use ValueQuery explicitly for generate_storage_alias with generic value type
* bump impl_version
* adjust line width and add import
* more compilation and formatting fixes
* formatting
2021-09-08 08:48:49 +00:00
Shawn Tabrizi
2d07839259
Update Slot Range Expect Proof ( #3707 )
...
* update slot range expect proof
* update to same acronym
2021-09-08 00:21:22 +00:00
Shawn Tabrizi
3d18ad34a9
Introduce XCM Weight Traits ( #3802 )
...
* introduce xcm weight traits
* patch some low hanging fruit
* add weightinfobound
* use checked math rather than saturating
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Revert "Update xcm/xcm-builder/src/weight.rs"
This reverts commit 6331b874f3dccf7f01a051ca6d4ee4d14a23a82d.
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-09-07 23:42:05 +00:00
João Paulo Silva de Souza
bd2aa79112
disable unleash-check ( #9705 )
...
the last successful run of this check was on b14d4f07aa and it had been failing even before that
should be re-enabled lated
2021-09-07 20:57:58 +00:00
cheme
0a8b3ddedc
Fix compact proof decoding unaccessed last child trie. ( #9715 )
...
* fix no child proof attached but root included.
* small stress test for proof of child tries.
* rust fmt
2021-09-07 16:21:42 +00:00
dependabot[bot]
268055eb3e
Bump slotmap from 1.0.5 to 1.0.6 ( #3809 )
...
Bumps [slotmap](https://github.com/orlp/slotmap ) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/orlp/slotmap/releases )
- [Changelog](https://github.com/orlp/slotmap/blob/master/RELEASES.md )
- [Commits](https://github.com/orlp/slotmap/compare/v1.0.5...v1.0.6 )
---
updated-dependencies:
- dependency-name: slotmap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-07 16:17:22 +02:00
Falco Hirschenberger
24b7ec9108
Store the database in a role specific subdirectory ( #2923 )
...
* Store the database in a role specific subdirectory
companion PR for https://github.com/paritytech/substrate/issues/6880
* fix test
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-07 14:14:10 +00:00
Falco Hirschenberger
16144e7404
Store the database in a role specific subdirectory ( #9645 )
...
* Store the database in a role specific subdirectory
This is a cleaned up version of #8658 fixing #6880
polkadot companion: paritytech/polkadot#2923
* Disable prometheus in tests
* Also change p2p port
* Fix migration logic
* Use different identification file for rocks and parity db
Add tests for paritydb migration
2021-09-07 13:31:25 +00:00
Qinxuan Chen
e31db19e13
Companion for substrate#9080 ( #3263 )
...
* runtime(kusama/polkadot): migrations for membership storage prefix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* make correct custom migration
* some fix
* Update
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* import traits
* update Substrate
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: parity-processbot <>
2021-09-07 13:17:53 +00:00
Bastian Köcher
c318bebb4a
Ensure that para_head hash matches the actual head ( #3808 )
...
* Ensure that `para_head` hash matches the actual head
This ensures that the `para_head` hash in the `CandidateDescriptor`
matches the actual `head` in the candidate commitments.
* Enable the code for `no_std`
* Formatting
2021-09-07 15:07:37 +02:00
Sergejs Kostjucenko
4849e34270
Fix buildah issue 3500 ( #9716 )
2021-09-07 15:38:41 +03:00
Qinxuan Chen
03b294641e
Migrate pallet-membership to the new pallet attribute macro ( #9080 )
...
* Migrate pallet-membership to new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add migrations
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* more general
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix event metadata
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* apply suggestion
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove useless
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
now we need to store the new version manually.
* Fix migration and Add migration test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Use new_test_ext
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-09-07 12:17:26 +00:00
Sergejs Kostjucenko
d918d64c48
Fix buildah issue 3500 ( #3805 )
2021-09-07 14:33:51 +03:00
dependabot[bot]
a752ec1d24
Bump syn from 1.0.75 to 1.0.76 ( #3790 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.75 to 1.0.76.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.75...1.0.76 )
---
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>
2021-09-07 13:33:27 +02:00
Bastian Köcher
224c7f10b9
SimpleSlotWorker make claim_slot async ( #9713 )
...
* SimpleSlotWorker make `claim_slot` async
* FMT
2021-09-07 11:15:44 +00:00
Guillaume Thiolliere
a59fd304eb
Remove migration done by runtime version 9090 ( #3731 )
...
* remove 9090 migrations
* remove unused
* fmt
* revert removal of polkadot migration
* remove migration for polkadot
2021-09-07 12:19:42 +02:00
Chevdor
bb6a3fb0a2
staking-miner: docker images ( #3682 )
...
* staking-miner: docker image
* renaming
* add doc
* fix readme
* remove the creation of home for the polkadot user
* new builder image for the staking-miner
* remove mentions of the polkadot binary and add env
* foc: fix doc
* fix typos and dictionnary
* doc + sync up the 2 images
* doc: fine tuning the doc
* doc: security warning
2021-09-07 08:53:30 +00:00
Shawn Tabrizi
5d78dbf27f
Allow Skipping Benchmark Errors ( #9699 )
...
* introduce benchmark skip
* fmt
* Update lib.rs
* fix up
2021-09-06 23:25:20 +00:00
Xiliang Chen
4d2e94f7ce
allow config NextFreeParaId in genesis ( #3781 )
...
* allow config NextFreeParaId in genesis
* update westend chain spec
2021-09-06 14:42:34 -05:00
Shawn Tabrizi
4b928b0f22
make parts of the xcm-executor public ( #3795 )
2021-09-06 17:52:33 +00:00
Alexander Theißen
522e77e243
contracts: Remove state rent ( #9669 )
...
* Remove storage rent
* Add storage migration
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Add migration for deletetion queue
* Fix compilation
* Increase gas supplied to out_of_gas to be sure that it won't deplete too early
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-06 16:40:58 +00:00
Alexander Theißen
13f3e25ebb
Add initial contract macro benchmarks ( #9600 )
...
* Add erc20 benchmarks
* Fix typos
Co-authored-by: Michael Müller <michi@parity.io >
* Fix compilation issue on case sensitive fs
Co-authored-by: Michael Müller <michi@parity.io >
2021-09-06 11:30:28 +00:00
Lldenaurois
2bd84151ed
Add tests and modify as_vec implementation ( #3715 )
...
* Add tests and modify as_vec implementation
* Address feedback
* fix typo in test
2021-09-06 13:24:04 +02:00
cheme
61941f2806
reset cache when storage possibly change (fix init of tests). ( #9665 )
...
* reset cache when storage possibly change (fix init of tests).
* remove backend_storage_mut
* fix warn
* remove remaining backend_storage_mut
2021-09-06 10:42:02 +00:00
Alexander Theißen
d99c0cead7
Don't allow failure for cargo fmt ( #9702 )
...
* Don't allow failure for cargo fmt
* cargo fmt
2021-09-06 10:09:34 +00:00
Arkadiy Paronyan
cd19c7b79e
Fixed block response limit check ( #9692 )
...
* Fixed block response limit check
* Fixed start block detection and added a test
* Missing test
2021-09-06 07:25:30 +00:00
dependabot[bot]
bbf09c96aa
Bump structopt from 0.3.22 to 0.3.23 ( #3770 )
...
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.22 to 0.3.23.
- [Release notes](https://github.com/TeXitoi/structopt/releases )
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.22...v0.3.23 )
---
updated-dependencies:
- dependency-name: structopt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-05 20:59:27 +00:00
Andronik Ordian
f3c3a5722d
bump substrate and beefy ( #3789 )
2021-09-05 22:20:36 +02:00
Robert Habermeier
7815e7001b
set DisputesHandler in initializer ( #3788 )
2021-09-05 16:58:14 +00:00
Robert Habermeier
cdbd4c12af
bump deps, fix aura-ext pallet, and fill in stubs for XCM ( #600 )
...
* bump deps, fix aura-ext pallet, and fill in stubs for XCM
* response handler, asset trap, asset claims
* subscription_service
* update xcmp-queue mock
* fix tests
* Update polkadot deps
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-09-04 14:57:48 -05:00
Squirrel
ffced22fb7
sp-utils => sc-utils ( #9677 )
...
* sp-utils => sc-utils
* cargo fmt
* These files are now in the client so should be licensed as GPL3
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-04 19:20:48 +00:00
dependabot[bot]
c71a221097
Bump futures from 0.3.16 to 0.3.17 ( #3742 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.16...0.3.17 )
---
updated-dependencies:
- dependency-name: futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-04 21:16:23 +02:00
Bastian Köcher
30f3e11877
Convert rococo chainspec to raw chainspec ( #3785 )
2021-09-04 21:07:27 +02:00
Bernhard Schuster
3cc5a1eee9
feat/overseer: introduce closure init ( #3775 )
...
* feat/overseer: introduce closure init
Enables removal of the connected/disconnected overseer state.
* feat/overseer: allow replacement logic to access the original
Allows to re-use init-once types, which would otherwise error.
* feat/overseer: introduce external connector
Preparation for removal of `AllSubsystems`
which is another prerequisite for removing
the connect/disconnect state.
* fix/test: replace needs closure
* fixup
* simplify
* mea culpa
* all-subsystems-gen test
2021-09-04 08:07:07 +00:00