Commit Graph

4187 Commits

Author SHA1 Message Date
Dmitry Markin 4def0da0dc Change request-response protocol names to include genesis hash & fork id (#5870) 2022-08-12 15:07:13 +03:00
Alexander Samusev 596b5df747 [ci] Run check-runtime only for PRs (#5858)
* [ci] Run check-runtime only for PRs

* fix refs

* remove pr ref from check-runtime

* adjust dependent jobs

* fix dependency
2022-08-11 15:23:43 +02:00
dependabot[bot] 6aef4711dc Bump tokio from 1.18.2 to 1.19.2 (#5678)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.18.2 to 1.19.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.18.2...tokio-1.19.2)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-11 13:12:03 +02:00
Andrei Sandu 4db5bbc49a Zombienet: test disputes with malus garbage candidates (#5857)
* 1/3 validators suggest garbage candidates,
but paras should make progress

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* scale down test a bit

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Use docker paths and more paras

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* dispute finality lag < 2

* scale down

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* scale down more

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* attempt fix

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* one malus node

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Update zombienet_tests/functional/0003-parachains-garbage-candidate.toml

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

* Update zombienet_tests/functional/0003-parachains-garbage-candidate.toml

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

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Andronik <write@reusable.software>
2022-08-11 10:31:01 +00:00
Kian Paimani 1ad7de583f add unit tests to run runtime migrations (#5865)
* add unit tests to run runtime migrations

* Update runtime/westend/src/lib.rs

Co-authored-by: Mara Robin B. <mara@broda.me>

* fix

* fmt

* Update runtime/westend/src/lib.rs

Co-authored-by: Mara Robin B. <mara@broda.me>
2022-08-11 06:24:11 +00:00
Nazar Mokrynskyi f1dce2f548 Trivial networking changes for Substrate PR #11940 (#5841)
* Trivial networking changes for Substrate PR https://github.com/paritytech/substrate/pull/11940

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-08-09 19:37:31 +00:00
Nikos Kontakis 8a947d4c5d Renaming CLI prunning and keep-blocks flags (#5863)
* Renaming CLI prunning and keep-blocks flags

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-08-08 10:15:08 +00:00
Bastian Köcher a196b1618b Update yamux to fix a potential crash (#5861) 2022-08-05 20:05:40 +02:00
Dmitry Markin 43107b5391 Update RequestResponseConfig interface to match substrate (#5849)
* Update RequestResponseConfig interface

* minor: Bump CI

* update lockfile for {"substrate"}

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-08-05 10:37:19 +00:00
Javier Viola 023c70badd [Zombienet] update the image to the version 1.2.51 globally (#5856)
* rollback global version and use new version for beefy test

* move zombienet to v1.2.51

* use global version in all tests

* add image value to tests
2022-08-04 12:42:04 +00:00
ZhiYong 27747b4d1a Companion for substrate#11962 (#5852)
* Companion for substrate#11962

* update lockfile

Co-authored-by: acatangiu <adrian@parity.io>
2022-08-04 13:24:34 +03:00
Adrian Catangiu 8d1bba18af zombienet: BEEFY and MMR test (#5840)
Signed-off-by: acatangiu <adrian@parity.io>
2022-08-04 10:27:17 +03:00
Oliver Tale-Yazdi b065b4364c Run benchmarks with --steps=2 (#5853)
The benchmarks have been run internally with at least two values
even when called with --steps=1. substrate/#11890 changed this
to explicitly require at least --steps=2.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-08-03 21:00:35 +00:00
Alexandru Vasile d84433bd7f Companion for #11939 (#5846)
* Bump jsonrpsee to v0.15.1

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Update cargo.lock

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Minimal update to Cargo.lock

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* update substrate

* update lockfile for {"substrate"}

* update substrate master

* Allow benchmark checks to fail

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-08-03 12:23:16 +02:00
dependabot[bot] fcb938873f Bump tracing from 0.1.34 to 0.1.35 (#5737)
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.34 to 0.1.35.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.34...tracing-0.1.35)

---
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-08-01 22:19:33 +00:00
Oliver Tale-Yazdi 5c89040f67 Co #11952: Remove remove_member_wrong_refund from phragmen weights (#5848)
* Remove 'remove_member_wrong_refund' from phragmen weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-08-01 19:52:59 +00:00
Alexander Samusev c65c0d64fc Add release-v* rule to common-refs (#5847) 2022-08-01 15:26:50 +02:00
Mara Robin B cb82d21708 update weights (#5844)
* westend: update weights

* kusama: update weights

* polkadot: update weights

* rococo: update weights

* update BlockExecutionWeight

* kusama: readd phragmen remove_member_wrong_refund weight

* polkadot: readd phragmen remove_member_wrong_refund weight
2022-08-01 13:13:21 +00:00
Shawn Tabrizi 8dbbf5dd5a Use Saturating Math in XCM (#5845)
* saturating xcm

* Even more saturating

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-08-01 10:55:51 +00:00
Mara Robin B 95b2976df1 Remove already executed calls to nompools MigrateToV2 migration (#5836) 2022-08-01 11:45:51 +02:00
Adrian Catangiu 302c337861 companion for #11821: node/service: add BEEFY to block import (#5796)
* node/service: add BEEFY to block import

BEEFY block import implementation is basically noop for runtimes
with dummy `BeefyApi`, therefore we can safely add it to all chains.

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-07-29 16:38:08 +00:00
Xavier Lau 4687a419eb Remove Unused Trait Bound (#5838) 2022-07-29 12:34:12 +00:00
Koute faeb3d944d Companion for substrate#11523 (#5702)
* Bump `parity-scale-codec` to 3.1.5

* Align tests to changes in substrate

* Apply rustfmt

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-07-29 09:07:11 +00:00
Xavier Lau 88cee48d1e Remove Useless Inherent Data Provider (#5750)
* Remove Useless Inherent Data Provider

* Remove Unused Deps
2022-07-29 00:27:26 +02:00
Mara Robin B 1a8b087129 update weights (#5767)
* polkadot: update weights

* kusama: update weights

* westend: update weights

* rococo: update weights

* Reduce testing constants (#5787)

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-07-28 19:35:39 +00:00
Chevdor bfc9efc944 bump transcation_version for rococo (#5760) (#5830)
* bump transcation_version

* revert back transaction version for kusama and plokadot as they were bumped in the previous release

Co-authored-by: Egor_P <egor@parity.io>
2022-07-28 11:57:41 +00:00
Chevdor 85dabbd850 Backport crate version bumps to 0.9.27 (#5826)
* Bump crate versions

* Update cargo.lock
2022-07-28 10:03:27 +00:00
Chevdor f14cda36cc Fix GHA (#5825) 2022-07-28 11:04:20 +02:00
Alexander Samusev 2c5c37e8b2 [ci] Add timeout to benchmark jobs (#5822) 2022-07-27 15:31:25 +02:00
Andrei Sandu 5221fd667e Parachains db column "migration" (#5797)
* Column migration for parityDB

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* fmt

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* fix

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Remove columns

* warn

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* bump paritydb

* use clear_column

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* fix

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* logs

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* paritydb 0.3.16

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Update node/service/Cargo.toml

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

* ParityDB versioning

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* cargo lock

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* review + proper version constants

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Add test

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

Co-authored-by: Andronik <write@reusable.software>
2022-07-27 09:34:27 +00:00
Sergej Sakac c2df8308d7 Companion for #11831 (#5784)
* Companion for #11831

* commti

* fix

* fix

* commit

* fix?

* added rpc extension

* fmt

* add dependency

* added NominationPools to runtimes

* implement np

* implement for kusama & westend

* remove np-rpc from rococco

* fmt

* add np-rpc to the client

* fix wrong dependency in client

* remove from client

* remove from rpc

* fix?

* switch back

* fix?

* .

* add rpc extension

* fmt

* fix dependency

* commit

* only implement the api in the runtimes

* update

* update runtimes

* update sp-io

* update

* Update Cargo.toml

* Update Cargo.toml

* Update Cargo.toml

* commit

* Revert "Merge branch 'rpc-pending-rewards' of github.com:Szegoo/polkadot into rpc-pending-rewards"

This reverts commit dd260820641060b6106b238081d674e902267f24, reversing
changes made to 8f3b58dbe28132a95c4d595700214f886da22e5e.

Co-authored-by: kianenigma <kian@parity.io>
2022-07-27 09:32:31 +00:00
Alexander Samusev a9e41ed5b5 [ci] Return production image (#5818) 2022-07-27 10:13:36 +02:00
Kian Paimani 85b909a0b2 add migration for staking v10 (#5817) 2022-07-27 08:02:09 +00:00
Sebastian Kunert 88d9aca202 Prepare for rust 1.62.1 (#5811)
* Update update-rust-stable script

* Update UI tests for rust-1.62.1

* Use staging CI image

* pin ci image

Co-authored-by: alvicsam <alvicsam@gmail.com>
2022-07-26 14:37:02 +02:00
Sebastian Kunert 9afc93cbd1 Bump strum to 0.24.1 (#5816) 2022-07-26 14:02:43 +02:00
Alexander Theißen cf18868afd Bump substrate (#5814)
* Bump substrate

* Bump spec version
2022-07-25 16:59:37 +00:00
Chevdor 7b02a55a11 Add missing trigger wildcards for some CI workflows (#5812) 2022-07-25 16:42:47 +02:00
Andronik b1f8445d62 malus: add finality_delay cli flag (#5770)
* add malus_finality_delay flag

* cargo update -p sp-io

* no warnings when malus is disabled

* subpar workaround for feature unification problem

* remove malus_finality_delay from regular cli

* document finality_delay param, rename cli arg
2022-07-22 23:24:33 +00:00
Alexander Samusev d6334447ae [ci] publish parachain-implementers-guide (#5806)
* [Do not merge] [ci] publish parachain-implementers-guide

* fix .cancel-pipeline

* rename build-implementers-guide

* fix

* debig docs

* fix needs

* debug publish

* change image for impl guide job

* fix mdbook

* add folder

* remove mdbook-graphviz

* fix publish

* fix publish

* debug publish

* remove debug

* fix script order

* return pipeline

* remove test ref from publish
2022-07-22 15:22:15 +02:00
Muharem Ismailov 7ad9cb90aa westend xcm: collectives parachain is trusted teleporter (#5798) 2022-07-21 11:50:00 +00:00
Dmitry Markin b30b7c6022 Cleanup light client leftovers (#5794)
* Cleanup light client leftovers

* Remove light clent leftovers in test-parachains

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-07-21 12:31:12 +03:00
Oliver Tale-Yazdi 54cbfa0afd Fix benchmarking tests (#5791)
* Re-add tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Test with release profile

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Re-add tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Test with diener

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert "Test with release profile"

This reverts commit d5384c5b603e1f8b7d14871ee57d2661e61bdb75.

* Revert "Test with diener"

This reverts commit 9e035759c780c2dfaf431456c8d0ff1a78e68d64.

* cargo update -p sp-io

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update tests/benchmark_block.rs

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2022-07-20 18:32:02 +02:00
Bernhard Schuster 26fa161ece allow re-use and avoid compiling kusama parachain code (#5792)
* allow re-use and avoid compiling kusama parachain code

* fixup removed trailing ;

* make it compat with rustfmt +nightly
2022-07-20 13:53:11 +02:00
Sebastian Kunert 72bde2889f Introduce async runtime calling trait for runtime-api subsystem (#5782)
* Implement OverseerRuntimeClient

* blockchainevents

* Update patches

* Finish merging rntime-api subsystem

* First version that is able to produce blocks

* Make OverseerRuntimeClient async

* Move overseer notification stream forwarding to cumulus

* Remove unused imports

* Add more logging to collator-protocol

* Lockfile

* Use hashes in OverseerRuntimeClient

* Move OverseerRuntimeClient into extra module

* Fix old session info call and make HeadSupportsParachain async

* Improve naming of trait

* Cleanup

* Remove unused From trait implementation

* Remove unwanted debug print

* Move trait to polkadot-node-subsystem-types

* Add sections to runtime client

Co-authored-by: Davide Galassi <davxy@datawok.net>

* Reorder methods

* Fix spelling

* Fix spacing in Cargo.toml

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

* Remove unused babe methods

Co-authored-by: Davide Galassi <davxy@datawok.net>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-07-20 10:23:25 +00:00
Mara Robin B 2e795bc55a add Extrinsic Ordering check that runs against a local reference node (#5790)
* add `Extrinsic Ordering` check that runs against a local reference node

* cleanup

* use different polkadot base path

* check all chains & other review nits

* fixup

* review nits

* do not fail-fast
2022-07-19 17:12:55 +02:00
Oliver Tale-Yazdi 340e7be60d Co #11456: Expose benchmark extrinsic command (#5620)
* Expose 'benchmark extrinsic' command

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Split benchmarking into own mod

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Simplify code

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Fixup

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Cleanup

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Spell

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert Cargo.lock updates

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* update lockfile for {"substrate"}

* Fix brittle test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Bump spec version to 9270

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Sleep in test to make it work in CI...

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Disable failing test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert "Bump spec version to 9270"

This reverts commit c1c385d7a4dc849e7f4d4723740aec66c2b7be09.

* Delete brittle test, see #5788

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Disable failing test

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Delete more failing tests...

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Co-authored-by: parity-processbot <>
2022-07-19 14:11:38 +02:00
Chevdor 9b086257e2 staking-miner: Add handling of SIGTERM, SIGKILL, SIGQUIT and SIGINT (#5780)
* Add handling of SIGTERM, SIGINT and SIGQUIT

Fix #5649

* Fix signals and log levels

* Add missing imports

* Add sig count to the logs
2022-07-19 09:32:56 +02:00
Andrei Sandu d54e20708d Zombienet: paritydb test (#5310)
* Add test

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* gitlab integration

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* tune test

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Try waiting for nodes to be up before checks

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Use js check for paritydb folder

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* artifacts true

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* change error message

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* debug

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* try again

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* use log line contains for test

* bump zombienet verision for test

* Is approval checking lag 0 on rocksdb ?

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* Is approval checking lag 1 with paritydb ?

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>

* update zombienet test for parityDb

* Update zombienet_tests/misc/0001-check_paritydb.sh

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

Co-authored-by: Javier Viola <javier@parity.io>
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2022-07-18 10:55:38 +00:00
Xavier Lau 9e218944c4 Fix Typo (#5766) 2022-07-17 21:22:43 +02:00
Chevdor 4cc925d297 Fix Core Version display in the release notes (#5781) 2022-07-14 16:16:07 +02:00