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
Zeke Mostov
8c3ad4300a
Small syntax changes for staking and elections code ( #9688 )
...
* Simplify stake map creation in `OnChainSequentialPhragmen::elect`
* Use or_else
* More or_else
* trivial;
* revert
2021-09-04 06:56:34 +00:00
Robert Habermeier
5596170bfb
comment out bridges runtime modules (broken) and update Rococo chain-spec ( #3780 )
...
* comment out bridges runtime modules (broken)
* finish commenting out bridges stuff
* more tweaks
* update rococo.json
2021-09-03 16:46:18 -05:00
Chevdor
d260b0e14f
Add script and dockerfile to build an injected docker image for the polkadot-collator binary ( #591 )
...
* remove exec flag on json file
* fix dockerignore filter to allow building the injected docker image
* Update docker/injected.Dockerfile
* Update docker/scripts/build-injected-image.sh
Co-authored-by: Martin Pugh <pugh@s3kr.it >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-09-03 15:30:12 +02:00
Xiliang Chen
1bdede0da4
Add VoteLocking config ( #3734 )
...
* update
* Update runtime/kusama/src/lib.rs
* Update runtime/polkadot/src/lib.rs
* cargo update -p sp-io
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-03 11:06:37 +00:00
Michael Müller
69a453ebd5
Clean up node-template ( #9667 )
...
* Remove dead file
* Remove leftover license header
2021-09-03 01:32:30 +00:00
Lldenaurois
84d89475a5
Enable disputes on rococo ( #3764 )
2021-09-02 16:51:00 -05:00
Xiliang Chen
cd3e3043b0
Add VoteLocking config ( #9641 )
...
* Add VoteLocking config
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-09-02 19:53:57 +01:00
Andreas Doerr
cfe3490007
Use coherent prost crate versions ( #9676 )
2021-09-02 19:50:27 +01:00
Gavin Wood
82ffe7dd17
XCM: Automatic Version Negotiation ( #3736 )
...
* XCM: Automatic Version Negotiation
* Introduce the version instructions and subscription trait
* Notification and subscription data migration
* Version change subscriptions
* Fixes
* Formatting
* Spelling
* Fixes
* Fixes
* Automatic unsubscription
* Formatting
* Expose remote origin in VM and ensure it is unchanged from actual origin in subscription instructions.
* Barrier
* Unsubscription extrinsic
* Remove top_level param
* Formatting
* Fixes
* Automatic subscription
* Formatting
* Spelling
* Unit tests for XCM executor
* Formatting
* Spellin
* Unit test for XCM pallet subscriber side
* Formatting
* More tests
* Formatting
* Fixes
* Subscription-side tests
* Formatting
* Unit tests for XCM pallet
* Formatting
* Update roadmap/implementers-guide/src/types/overseer-protocol.md
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Remove commented code
* Grumbles
* Multi-stage XCM version migration
* Formatting
* v1 subscriptions backport
* Warning
* Spelling
* Fix grumbles
* Formatting
* Avoid running through old notifications
* Formatting
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-02 18:47:38 +02:00
Guillaume Thiolliere
1309adf247
remove unused origin ( #9679 )
2021-09-02 15:14:41 +00:00
Andronik Ordian
446aa6777e
dependabot: ignore yet another git dep ( #3759 )
2021-09-02 11:47:57 +02:00
dependabot[bot]
7721b2b373
Bump serde_json from 1.0.66 to 1.0.67 ( #3767 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.66...v1.0.67 )
---
updated-dependencies:
- dependency-name: serde_json
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-02 09:21:29 +00:00
dependabot[bot]
1274b3df4b
Bump syn from 1.0.74 to 1.0.75 ( #3710 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.74 to 1.0.75.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.74...1.0.75 )
---
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-02 09:18:54 +00:00
Keith Yeung
01c60ddeab
Companion for substrate #9371 ( #3487 )
...
* Add MaxAuthorities to aura pallet config
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-02 06:56:56 +00:00