Commit Graph

2574 Commits

Author SHA1 Message Date
Andronik Ordian f52bd38215 collator-protocol/validator_side: a couple of fixes (#4179)
* collator-protocol/validator: do not wait 1s to poll requested collations

* collator-protocol/validator: do not request collation for the next group

* put everything into select

* fmt

* more hacks yay

* a test

* review nits

* remove outdated comment
2021-10-30 14:20:48 -05:00
Alexander Popiak dd695f7ace remove duplicate Deposit from OnUnbalanced implementation (#4180)
closes https://github.com/paritytech/polkadot/issues/4133
2021-10-30 18:39:04 +02:00
Bernhard Schuster 0b5d1802a1 differentiate log messages (#4183) 2021-10-30 16:17:25 +00:00
Cheng JIANG 32c7ad8137 increase ump_service_total_weight's default value (#4127)
* increase ump_service_total_weight's default value to be the same with kusama

* remove comment
2021-10-30 17:42:37 +02:00
Squirrel 5a760f13e8 companion PR to removal of light client (#4105)
* not needed

* cargo fmt

* remove light-node

* make full-node feature mandatory?

* cargo fmt

* Revert "cargo fmt"

This reverts commit 5a2c7d850047466ed902faf673b779a2e02dfed2.

* Revert "make full-node feature mandatory?"

This reverts commit c35eb4fa399e43d29a10c83187cc39b9c74f1feb.

* bump versionn numbers

* Update bridges/primitives/chain-westend/src/lib.rs

* fix typo + expand dictionary

* update lockfile for substrate

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: parity-processbot <>
2021-10-30 13:18:14 +00:00
Bastian Köcher e0d6b95a90 Introduce OriginPrivilegeCmp (#4166)
* Introduce `OriginPrivilegeCmp`

Make use of the new `OriginPrivilegeCmp` feature of pallet scheduler.
The idea is to make sure that a council origin with more yes votes has
higher privileges than a council origin with less yes votes. This solves
a problem that happened recently on Kusama where the council tried to
cancel a scheduled task, but that required that the same council origin
was used while the cancel motion had more yes votes than the origin
motion that scheduled this task. With this origin privilege compare it
should now be solved by checking the yes votes directly.

* Feedback

* update lockfile for substrate

Co-authored-by: parity-processbot <>
2021-10-29 16:53:32 +00:00
Andronik Ordian 7b1ee41c95 bump finality safety net depth to 500 blocks (#4178) 2021-10-29 13:07:10 +00:00
dependabot[bot] 7444d93d20 Bump trybuild from 1.0.50 to 1.0.52 (#4156)
Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.50 to 1.0.52.
- [Release notes](https://github.com/dtolnay/trybuild/releases)
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.50...1.0.52)

---
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-10-29 12:19:47 +02:00
Qinxuan Chen 825dbdada3 Remove stale migrations (#4171)
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2021-10-28 14:34:28 +00:00
Andronik Ordian 9d4efa340e enable disputes feature in CI (#4168) 2021-10-28 08:40:13 -05:00
Bernhard Schuster 3c72f213ad fix: chain sel + av-store error handling (#4159)
* fix: error handling

* more error handling

* fixup

* fixup

* fixup name

* fixup

* simplify

* spelling, docs
2021-10-28 09:47:00 +00:00
zjb0807 c3d6ebe61a implement GenesisConfig for pallet-xcm (#4125)
* implement GenesisConfig for pallet-xcm

* Apply review suggestions
2021-10-28 09:16:45 +00:00
Robert Klotzner 5f5358279f Fix wrong warning. (#4163) 2021-10-27 21:36:41 +00:00
Robert Habermeier fc2320bb9b improved approval-voting logging (#4162)
* improved approval-voting logging

* fmt
2021-10-27 20:22:42 +00:00
Alexander Popiak d5430dd7ce adjust max downward message size to be the same as upward message size (#4129) 2021-10-27 15:14:06 -05:00
dependabot[bot] 6b00dd5892 Bump syn from 1.0.80 to 1.0.81 (#4155)
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.80...1.0.81)

---
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-10-27 17:27:35 +02:00
Shawn Tabrizi 1031a57d8b Fix XCM Teleport Benchmark (#4146)
* fix xcm benchmark

* fix overflow

* cargo run --quiet --release --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

* fix spelling

* fmt

* cargo run --quiet --release --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

Co-authored-by: Parity Bot <admin@parity.io>
2021-10-27 15:13:39 +02:00
Gavin Wood d7513f5313 Allow Queries and Subscriptions (#4150)
* Allow Queries and Subscriptions

* Formatting

* Formatting
2021-10-27 15:13:12 +02:00
Gavin Wood 4c042b1de3 Fix weights on hard-coded XCM fragments (#4144)
* Fix weights on hard-coded XCM fragments

* Formatting
2021-10-26 12:36:23 +02:00
Bastian Köcher af18e90d70 Bump spec versions (#4142) 2021-10-25 14:24:45 +02:00
dependabot[bot] a557eec0e9 Bump libc from 0.2.104 to 0.2.105 (#4141)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.104 to 0.2.105.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.104...0.2.105)

---
updated-dependencies:
- dependency-name: libc
  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-10-25 13:23:09 +02:00
Kian Paimani f9bd3c576f Enable bags-list pallet in polkadot (#4080)
* Enable bags-list pallet in polkadot

* add files

* Remove trailing semicolon

* more fixes

* Update runtime/polkadot/src/lib.rs

* add features

* remove par

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-10-25 10:18:17 +00:00
Chris Sosnin 182667830f Move artifacts states into memory in PVF validation host (#3907)
* pvf host: store only compiled artifacts on disk

* Correctly handle failed artifacts

* Serialize result of PVF preparation uniquely

* Set the artifact state depending on the result

* Return the result of PVF preparation directly

* Move PrepareError to the error module

* Update doc comments

* Update misleading comment

* Cleanup docs

* Conclude a test job with an error

Co-authored-by: Sergei Shulepov <sergei@parity.io>
2021-10-22 16:37:58 +00:00
Chris Sosnin ad33b8749b Introduce new Runtime API endpoint for fetching the validation data (#3728)
* Introduce new Runtime API endpoint

`persisted_validation_data_with_code_hash` that will be used
by the candidate validation subsystem in order to decrease amount
of runtime API requests.

* Node-side part of new runtime API request

* Define code hash getter via macro

* Rename new endpoint to `assumed_validation_data`

* Docs for runtime API impl of new endpoint

* AssumedValidationData specialized request function

* fmt
2021-10-22 12:49:26 +00:00
Cheng JIANG 228977fd52 export xcm_pallet config (#4116)
* export xcm_pallet config

Signed-off-by: Cheng JIANG <alex_cj96@foxmail.com>

* run format

Signed-off-by: Cheng JIANG <alex_cj96@foxmail.com>

* fix typo

Signed-off-by: Cheng JIANG <alex_cj96@foxmail.com>

* add generic parameter to support different runtimes

* Revert "add generic parameter to support different runtimes"

This reverts commit 4405ea9fab24307318ffc20a833010fe864b3be3.
2021-10-22 02:25:57 +00:00
Roman f71f18d0a9 Apply cargo fmt (#4122) 2021-10-21 16:48:50 +02:00
João Paulo Silva de Souza ce10434170 remove logging from the check-dependent-* job (#4120)
such command belongs to the script rather than the job
2021-10-21 16:03:54 +02:00
Martin Pugh cf09a894e6 Remove stale migrations (#4107)
* remove stale migrations

* fix warnings

* Update runtime/westend/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2021-10-20 05:50:20 +02:00
dependabot[bot] f5ff1594c3 Bump structopt from 0.3.23 to 0.3.25 (#4098)
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.23 to 0.3.25.
- [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.23...v0.3.25)

---
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-10-19 23:52:46 +02:00
João Paulo Silva de Souza f2afedb91b remove hardcoded pipeline scripts tag (#4109)
the tag will be moved to Gitlab CI/CD variables
2021-10-19 19:53:42 +02:00
dependabot[bot] 3b9cdd8f6f Bump libc from 0.2.103 to 0.2.104 (#4099)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.103 to 0.2.104.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.103...0.2.104)

---
updated-dependencies:
- dependency-name: libc
  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-10-19 16:22:01 +02:00
Andronik Ordian 8aba3ea8ca some spelling fixes (#4088)
* quotes around Job::ToJob
* add new words to dictionary
2021-10-18 11:59:46 +02:00
Robert Habermeier 4f12ec239d polkadot: remove call filters on registrar pallets (#4093) 2021-10-18 00:03:33 -05:00
Gavin Wood 9ca5f5e6fe Fix typos in docs (#4092)
* Fix typos

* Update ump.rs

* Update ump.rs

* Update ump.rs
2021-10-16 15:57:03 +02:00
Keith Yeung 04a5d8c8b2 Rename Statemint where appropriate (#4087)
* Rename Statemint where appropriate

* Rename to Rockmine

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2021-10-15 17:03:34 -05:00
Martin Pugh fb15289623 bump substrate (#4091) 2021-10-15 21:59:57 +02:00
Martin Pugh 5f00ecbff2 Bump version to v0.9.12 (#4089)
* bump version

* update Cargo.lock

Co-authored-by: Andronik Ordian <write@reusable.software>
2021-10-15 16:28:20 +02:00
Andronik Ordian d7faa5b875 enable ApprovalCheckingVotingRule on Polkadot (#4072)
* enable ApprovalCheckingVotingRule on Polkadot

* fmt
2021-10-15 08:11:45 -05:00
Fabio Lama 8dbde1f419 Implementers guide: update Collation types (#4084)
* Implementers guide: update Collation types

* Update roadmap/implementers-guide/src/node/collators/collation-generation.md

Co-authored-by: Andronik Ordian <write@reusable.software>

* Update roadmap/implementers-guide/src/node/collators/collation-generation.md

Co-authored-by: Andronik Ordian <write@reusable.software>

* Update roadmap/implementers-guide/src/node/collators/collation-generation.md

Co-authored-by: Andronik Ordian <write@reusable.software>

* Update roadmap/implementers-guide/src/node/collators/collation-generation.md

Co-authored-by: Andronik Ordian <write@reusable.software>

* Convert indents to 2 spaces

Co-authored-by: Andronik Ordian <write@reusable.software>
2021-10-15 12:28:42 +02:00
João Paulo Silva de Souza 8dbfea68c8 use pipeline-scripts for dependent projects script (#4017) 2021-10-14 14:25:26 +02:00
Kian Paimani 24823d93b6 companion for substrate/10013 (#4078)
* companion for substrate/10013

* remove in buffer

* update Substrate

Co-authored-by: parity-processbot <>
2021-10-14 12:20:00 +00:00
Kian Paimani 51b694e05c fix restart issue of staking miner (#4073)
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
2021-10-14 13:12:01 +01:00
Shawn Tabrizi 56e9f5fedc use WEIGHT_PER_SECOND (#4077) 2021-10-14 10:18:53 +02:00
Chevdor 109d10dd32 Switch to compressed runtimes (#4061)
* Remove the upload of the non compressed runtimes

* Fix template

* Add loggin for local testing

* Keep simple logger but remove the need for another dependency
2021-10-13 13:31:47 +00:00
Keith Yeung 769595eea5 Create a README for XCMv1 detailing notable changes (#4058)
* Create a README for XCMv1 detailing notable changes

* Update xcm/src/v1/README.md

Co-authored-by: Gavin Wood <gavin@parity.io>

* Update xcm/src/v1/README.md

Co-authored-by: David <dvdplm@gmail.com>

* Update xcm/src/v1/README.md

Co-authored-by: David <dvdplm@gmail.com>

* Update xcm/src/v1/README.md

Co-authored-by: David <dvdplm@gmail.com>

* Update xcm/src/v1/README.md

Co-authored-by: David <dvdplm@gmail.com>

* Link to relevant PR for a full list of changes

* Typo

* Add notable changes to top-level XCM rustdoc

* Appease spellchecker

Co-authored-by: Gavin Wood <gavin@parity.io>
Co-authored-by: David <dvdplm@gmail.com>
2021-10-13 11:17:30 +00:00
dependabot[bot] 7052ef05fe Bump proc-macro2 from 1.0.29 to 1.0.30 (#4071)
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2) from 1.0.29 to 1.0.30.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases)
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.29...1.0.30)

---
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>
2021-10-13 09:53:39 +00:00
Lldenaurois d59ef49195 Move runtime to with_transaction in order to Rollback state changes (#4067)
* Move runtime to with_transaction in order to Rollback state changes

* add assert_storage_noop to tests
2021-10-12 20:09:48 +00:00
Chris Sosnin 1af17eed39 Update wasmtime config to match new version in substrate (#4063)
* Update wasmtime config to match new version

* update Substrate

Co-authored-by: parity-processbot <>
2021-10-12 15:56:36 +00:00
Shawn Tabrizi 622ffbd808 Fix XCM Weights on Westend (#4066)
* found issue

* fix up

* remove printlns
2021-10-12 15:18:32 +00:00
Gavin Wood 533cdb6e7c Dispatchable XCMs should translate to v0 (#4062)
* Dispatchable XCMs should translate to v0

* Formatting

* Update Westend's XCM WrapVersion
2021-10-12 15:35:10 +02:00