Commit Graph

3219 Commits

Author SHA1 Message Date
dependabot[bot] b7a5044e82 Bump serde from 1.0.136 to 1.0.137 (#5429)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.136 to 1.0.137.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.136...v1.0.137)

---
updated-dependencies:
- dependency-name: serde
  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-05-03 10:27:13 +00:00
Sergejs Kostjucenko d54e3f7cb7 remove vault from ci (#5420) 2022-05-03 00:11:15 +03:00
Robert Klotzner 2bbae6e6ef Increase timeout, as it seems to be hit on CI (#5427)
occasionally.

If this keeps being a problem, we might also increase the channel size:

https://github.com/paritytech/polkadot/blob/49f7e5cce45c44b6fcbad3c612b92657eb7a52df/node/subsystem-test-helpers/src/lib.rs#L239
2022-05-02 12:50:35 +02:00
Andronik 6bfa097142 make spellcheck green again (#5428) 2022-05-02 10:20:45 +02:00
asynchronous rob a641ba1e7a have av-store bail when recv() fails (#5418) 2022-05-01 15:22:23 +00:00
dependabot[bot] e4199f900f Bump syn from 1.0.91 to 1.0.92
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.91...1.0.92)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-30 00:09:01 +02:00
asynchronous rob 5142bb98bc break provisioner/candidate-backing cycle (#5419) 2022-04-29 14:00:42 +00:00
Roman 44f3e6f6ab Companion for substrate#11009 (#5414)
* Downgrade zeroize to v1.4.3

* Update Substrate

Co-authored-by: Bastian Köcher <info@kchr.de>
2022-04-29 12:07:57 +00:00
dependabot[bot] 47eaca3eee Bump clap from 3.1.10 to 3.1.12 (#5381)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.10 to 3.1.12.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.10...v3.1.12)

---
updated-dependencies:
- dependency-name: clap
  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-04-29 04:18:06 +00:00
Kian Paimani dfaec1505d add nomination pools to westend runtime (#5405)
* add nomination pools to westend rutnime

* Fix buikd

* fit some shit

* add real weights from substrate weights computed on the same bench machine
2022-04-28 18:16:24 +00:00
Davide Galassi bbdfc3d9c6 Chain-selection subsystem data revert (#5350)
* Chain-selection subsystem data revert

* Cargo fmt

* Better code comments

* Remove unwraps

* Document public method

* Remove duplicated 'ChainSelectionSubsystem' impl block

* Fix typos

* Nitpicks

* Revert returns a service Error

* Removed superflous error handling

* Apply suggestions from code review

* Rename tree 'revert' to 'revert_to'

Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
2022-04-28 17:44:14 +02:00
Robert Klotzner ac23b3f96c Quick'n dirty Versi chainspec config. (#5412)
* Quick'n dirty Versi chainspec config.

* Right order

* Fix wrong variable usage

* Fix weird typo.

* Update node/service/src/chain_spec.rs

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

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-04-28 17:10:14 +02:00
Pierre Besson 6a0c11d03c update Rococo chainspec JSON to v2_2 (#5407) 2022-04-28 14:54:56 +02:00
asynchronous rob 9c1a3bd18b backing: refactor off of jobs system (#5377)
* backing: refactor off of jobs system

* rename FailedToSpawnBg

* refactor: backing uses fatality

* fix service compilation
2022-04-27 22:19:45 +00:00
Doordashcon f23496d350 update (#5402) 2022-04-27 17:41:30 +02:00
Vsevolod Stakhov f84cb5f0f3 Reduce log severity (#5404) 2022-04-27 16:10:42 +01:00
Chigozie Joshua ee3b164f65 Companion for Remove Approval feature in Treasury Pallet (#11243) (#5352)
* added weight for remove_approval call in treasury pallet

* added weight for remove_approval call in kusama runtime

* Update Cargo.lock

* update lockfile for {"substrate"}

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
2022-04-27 12:37:17 +02:00
Oliver Tale-Yazdi 9621dbebc9 Co #11270: Update benchmark machine command (#5386)
* Update benchmark machine command

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

* Add import

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

* Rename POLKADOT_REFERENCE_HARDWARE -> SUBSTRATE_REFERENCE_HARDWARE

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

* update lockfile for {"substrate"}

* Bump spec_version to 9200

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

Co-authored-by: parity-processbot <>
2022-04-26 18:26:11 +02:00
João Paulo Silva de Souza 4a311f1da4 use options for check_dependent_project (#5392)
Co-authored-by: TriplEight <denis.pisarev@parity.io>
2022-04-26 16:58:57 +02:00
Adrian Catangiu 8e7663ba3d service: use deny-list instead of allow-list for BEEFY (#5331)
* use deny-list instead of allow-list for BEEFY

Instead of allowing BEEFY to run on specific test nets,
inverse the condition to explicitly disallow BEEFY on
production chains that we don't want it to run on yet.

This allows other test chains (other than Rococo/Wococo)
that use the polkadot service file to enable and test BEEFY.

Signed-off-by: Adrian Catangiu <adrian@parity.io>

* address review comments

* throw error if BEEFY enabled on production networks

Signed-off-by: acatangiu <adrian@parity.io>
2022-04-26 13:24:09 +00:00
Ayevbeosa Iyamu 7d0252784d Companion for Recovery Pallet benchmarking #11176 (#5366)
* benchmarking for `pallet_recovery`

* Added WeightInfo implementation for pallet_recovery

* Update Cargo.lock

* Update Cargo.toml

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2022-04-26 13:09:03 +00:00
João Paulo Silva de Souza 39579ea87f Skip pr-custom-review if pull request is in Draft (#5356)
* skip pr-custom-review if pull request is in Draft

* fix
2022-04-26 14:17:14 +02:00
Koute b049d4f1c9 Add hardware benchmark telemetry (Companion for Substrate#11062) (#5206)
* Align to changes in Substrate

* Align to the newest changes in substrate

* Rename `--disable-hardware-benchmarks` to `--no-hardware-benchmarks`

* Fix `polkadot-test-service` compilation

* Fix compilation of test parachains
2022-04-26 09:16:31 +00:00
Koute 7a92f1678d Update tracing-log to 0.1.3 (Companion for Substrate#11264) (#5393)
* Update `tracing-log` to 0.1.3

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-04-26 09:05:46 +00:00
Sergejs Kostjucenko 631a5db536 Move scripts used in CI to the new location (#5198)
* Move CI scripts and update references

* Update paths in .gitlab-ci.yml

* Removed outdated entries from CODEOWNERS
2022-04-26 08:39:31 +03:00
tgmichel 9a840bb12a Companion to chain-info Subcommand: #11250 (#5370)
* Companion to `blockchain-info` Subcommand: #11250

* Rename to `chain-info`

* Remove `ensure_dev`

* Update cli/src/command.rs

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

* Pin substrate `59a2150`

* `service::Block`

* Unused `chain_spec`

* fmt

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-04-25 23:09:42 +02:00
Bernhard Schuster 033950ca36 metrics separation (#5391)
* split metrics from collation generation

* move metrics to separate file out of backing

* split bitfield signing metrics

* split candidate validation metrics

* split chain api metrics

* split metrics from runtime API

* util is not used in backed metrics mod

* fmt

* missing types

* sure
2022-04-25 17:17:29 +00:00
Squirrel c01a9ea524 polkadot-like testnets should be 10 decimal places (#5369)
* polkadot is 10 decimal places

* cargo fmt

* Update node/service/src/chain_spec.rs

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

* name change

* update test also

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-04-25 17:17:11 +00:00
Mara Robin B 9f79fcaef0 Remove SlotsCrowdloanIndexMigration & InjectValidatorsIntoVoterList (#5374) (#5379)
* Remove SlotsCrowdloanIndexMigration

* Remove slots index migration code

* Remove crowdloan index migration code

* remove reference to migration

* rustfmt

* westend: remove unused import OnRuntimeUpgrade

* kusama: remove unused import OnRuntimeUpgrade

* polkadot: remove unused import OnRuntimeUpgrade

* Revert "Remove crowdloan index migration code"

This reverts commit fe84b59e3133e950740d911fb019e6002f60d5a3.

* Revert "Remove slots index migration code"

This reverts commit 62c5a28e21d2949189bdb52835cc3a44f6e9c561.

* Revert "remove reference to migration"

This reverts commit 1f8806c010210b638cc59979ab873619910596c0.

* Remove InjectValidatorsIntoVoterList migration
2022-04-25 18:44:47 +02:00
Squirrel 35f6712c5e fast-runtime tweak (#5201)
* These should be included in fast-runtime
2022-04-25 17:23:47 +01:00
Bastian Köcher 5ebcf3643c Update Substrate master (#5380) 2022-04-25 10:22:54 +00:00
dependabot[bot] 08f5cc9ca6 Bump bounded-vec from 0.5.0 to 0.6.0 (#5372)
Bumps [bounded-vec](https://github.com/ergoplatform/bounded-vec) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/ergoplatform/bounded-vec/releases)
- [Changelog](https://github.com/ergoplatform/bounded-vec/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/ergoplatform/bounded-vec/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: bounded-vec
  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>
2022-04-22 16:56:55 +02:00
Chevdor 85bf52342f Fix priority thresholds (#5375)
Fix for the priorities shown in the release notes
2022-04-22 15:25:49 +02:00
Vsevolod Stakhov a5742b9ec1 Extract peers grid topology related code to a separate unit (#5365)
* Initial attempt to extract grid topology related code

* Use shared code in the approval distribution subsystem

* Fix spellcheck issues

* Moe Aggression stuff back to the approval-distribution subsystem

* Cargo fmt
2022-04-22 11:19:36 +01:00
Mara Robin B bb3cc7b041 update weights (#5361)
* polkadot: update weights

* kusama: update weights

* rococo: update weights

* westend: update weights
2022-04-22 09:26:19 +00:00
Zeke Mostov 42cbfba5d3 Companion to Proportional Slashing: Substrate #10982 (#5306)
* Companion to Proportional Slashing

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-04-22 00:14:28 +00:00
Vsevolod Stakhov 3f0e73d320 Add some additional logging to availability recovery subsystem (#5345) 2022-04-21 18:15:02 +01:00
asynchronous rob fc4b04db20 Prepare for network protocol version upgrades (#5084)
* explicitly tag network requests with version

* fmt

* make PeerSet more aware of versioning

* some generalization of the network bridge to support upgrades

* walk back some renaming

* walk back some version stuff

* extract version from fallback

* remove V1 from NetworkBridgeUpdate

* add accidentally-removed timer

* implement focusing for versioned messages

* fmt

* fix up network bridge & tests

* remove inaccurate version check in bridge

* remove some TODO [now]s

* fix fallout in statement distribution

* fmt

* fallout in gossip-support

* fix fallout in collator-protocol

* fix fallout in bitfield-distribution

* fix fallout in approval-distribution

* fmt

* use never!

* fmt
2022-04-21 16:34:59 +00:00
João Paulo Silva de Souza 203441981f Use EXTRA_DEPENDENCIES for pipeline-scripts (#5328)
* temporary: check if it works

* EXTRA_DEPENDENCIES for pipeline-scripts

* revert pipeline scripts source
2022-04-21 17:46:14 +02:00
dependabot[bot] ba052ca6a7 Bump clap from 3.1.9 to 3.1.10 (#5355)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: clap
  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-04-21 10:11:22 +02:00
Zeke Mostov efe74e4336 Companion to Substrate #11002 (#5309)
* Add SignedMaxRefunds

* Update Cargo.lock

* update lockfile for {"substrate"}

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: parity-processbot <>
2022-04-21 00:01:17 +02:00
Georges e460465515 Companion to Split SolutionImprovementThresholds into two types (#5324)
* Splitting `SolutionImprovementThreshold` in 2.
One for Signed phase, and one for Unsgined.

* Adding missing imports

* Removing `GetDefault`, renaming trait

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
2022-04-20 15:54:25 -04:00
Mara Robin B 2284a85aa3 remove FixCouncilDeposit migration (#5341)
* remove FixCouncilDeposit migration

* fixup
2022-04-20 09:29:22 +02:00
Mara Robin B bcebd39e47 [ci] benchmarks: suppress wrong exit code (#5344)
* [ci] benchmarks: suppress wrong exit code

The script uses '!' to prevent set -e failures,
however a $? of `0` becomes exit code 1 if it is the last command ran.

This `true` makes sure that $? is 0 when we reach the end,
instead of carrying over a failure which would otherwise cause
the whole CI job to abort.

* add explanation comment
2022-04-20 09:04:46 +02:00
dependabot[bot] 07d2985f82 Bump trybuild from 1.0.53 to 1.0.60 (#5343)
Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.53 to 1.0.60.
- [Release notes](https://github.com/dtolnay/trybuild/releases)
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.53...1.0.60)

---
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>
2022-04-19 21:11:39 +02:00
asynchronous rob 79ecc53801 Reduce network bandwidth, improve parablock times: optimize approval-distribution (#5164)
* gossip-support: be explicit about dimensions

* some guide updates

* update network-bridge to distinguish x and y dimensions

* get everything to compile

* beginnings

* some TODOs

* polkadot runtime: use relevant_authorities

* make gossip topologies per-session

* better formatting

* gossip support: use current session validators

* expand in comment

* adjust tests and fix index bug

* add past/present/future connection test and clean up code

* fmt

* network bridge: updated types

* update protocols to new gossip topology message

* guide updates

* add session to BlockApprovalMeta

* add session to block info

* refactor knowledge and remove most unify logic

* start replacing gossip_peers with new SessionTopologies

* add routing information to message state

* add some utilities to SessionTopology

* implement new gossip topology logic

* re-implement unify_with_peer

* distribute assignments according to topology

* finish grid topology implementation

* refactor network bridge slightly

* issue connection requests on all past/present/future

* fmt

* address grumbles

* tighten invariants in unify_with_peer

* implement random propagation

* refactor: extract required routing adjustment logic

* some block-age logic

* aggressively propagate messages when finality is slow

* overhaul aggression system to have 3 levels

* add aggression metrics

* remove aggression L3

* reduce random circulation

* remove PeerData

* get approval tests compiling

* use btree_map in known_by to make deterministic

* Revert "use btree_map in known_by to make deterministic"

This reverts commit 330d65343a7bb6fe4dd0f24bd8dbc15c0cbdbd9d.

* test XY grid propagation

* remove stray println

* test unshared dimension propagation

* add random gossip check

* test unify_with_peer better

* test sending after getting gossip topology

* test L1 aggression on originator

* test L1 aggression for non-originators

* test non-originator aggression L2

* fnt

* ~spellcheck

* fix statement-distribution tests

* fix flaky test

* fix metrics typo

* re-send periodically

* test resending

* typo

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>

* add more metrics about apd messages

* add back unify_with_peer logs

* make Resend an enum

* be more explicit when resending

* fmt

* fix error

* add a TODO for refactoring

* remove debug metrics

* add some guide stuff

* fmt

* update runtime API in test-runtim

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
2022-04-19 20:26:55 +02:00
asynchronous rob edfa24bbc5 flatten dispute-coordinator 'real' module. (#5254)
* flatton dispute-coordinator 'real' module,

* Drop obsolete modules.

Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at>
2022-04-19 18:14:50 +00:00
Robert Klotzner f820db494f dispute-coordinator: Cleanup + Bug fixes (#5323)
* Make import confirmation oneshot optional.

* Cleanup for further improvements.

* Queue adoptions.

* Fix fieldname

* Use correct relay parent

* Fix scraper tests.

* Small optimization.

* Fix all tests.

* Fix other tests.

* fmt

* spelling

* Fix warning.
2022-04-19 14:51:02 +02:00
dependabot[bot] b3540e76e3 Bump clap from 3.1.8 to 3.1.9 (#5335)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.8 to 3.1.9.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.8...v3.1.9)

---
updated-dependencies:
- dependency-name: clap
  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-04-18 23:01:47 +02:00
dependabot[bot] 6b9bdbe1c2 Bump parity-db from 0.3.9 to 0.3.11 (#5261)
Bumps [parity-db](https://github.com/paritytech/parity-db) from 0.3.9 to 0.3.11.
- [Release notes](https://github.com/paritytech/parity-db/releases)
- [Commits](https://github.com/paritytech/parity-db/commits/v0.3.11)

---
updated-dependencies:
- dependency-name: parity-db
  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-04-18 22:55:18 +02:00