Commit Graph

2051 Commits

Author SHA1 Message Date
dependabot[bot] 4de30aa5d9 Bump futures from 0.3.14 to 0.3.15 (#3178)
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.14 to 0.3.15.
- [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.14...0.3.15)

---
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-06-09 16:37:25 +02:00
Xiliang Chen 8f4b5c3f18 update pvf heap page limit (#3198) 2021-06-09 16:35:23 +02:00
Andronik Ordian 29b531f4ec remove tracing::intrument annotations (#3197)
* remove tracing::intrument annotations

* remove unused param and leftover

* more leftovers
2021-06-09 10:35:18 +00:00
Keith Yeung 99d49ad7c9 Companion for #8990 (#3194)
* Use new naming scheme for all Event enums generated by construct_runtime

* Use new naming scheme for all GenesisConfig fields generated by construct_runtime

* Fix overlooked GenesisConfig field renaming

* update Substrate

Co-authored-by: parity-processbot <>
2021-06-09 10:07:04 +00:00
Bastian Köcher f6cbe8e8d8 polkadot-service: Make native runtime configurable (#3189)
* polkadot-service: Make native runtime configurable

This pull requests adds support for configuring the native runtimes used
by polkadot-service. While this whole pr doesn't change that much for
polkadot, besides not having the light-node enabled for the default
polkadot binary. However, downstream projects (parachains) will have a
much better compile time. In cumulus for example the `cargo test --all
--release` is about 4m faster to compile.

* Fixes

* Fix

* Enable rococo-native

* Fix light client

* 🤦

* Fixes
2021-06-08 22:05:20 +02:00
Lldenaurois 2abaca3a8c Remove candidate selection (#3148)
* Create validator_side module

* Subsume Candidate Selection

* Add test to ensure candidate backing logic is correct

* Ensure secondings are adequately cleaned up and address test flakyness

* Address Feedback
2021-06-08 14:07:19 -04:00
Niklas Adolfsson 6b1f457078 Companion for #9036 (#3191)
* deps: cargo update -p rustls

* fix build

* update Substrate

Co-authored-by: parity-processbot <>
2021-06-08 16:47:06 +00:00
Martin Pugh 6087e0e47f bump spec_version (#3195) 2021-06-08 12:20:08 +00:00
André Silva 6f29754cce node: fix grandpa voting rule (#3190)
* node: fix grandpa voting rule

* node: cleanup find_target
2021-06-07 14:45:27 -05:00
Robert Habermeier a87df9d854 Fix historical validation code runtime API (#3187)
* remove some 'allow(unused)'

* fix historical validation code runtime API
2021-06-05 11:47:37 -05:00
André Silva 9c014f7c8b node: fix babe worker params (#2956)
* node: fix babe worker params

* update Substrate

Co-authored-by: parity-processbot <>
2021-06-04 22:01:09 +00:00
Robert Habermeier 3bc3856544 impose minimum limitation on explicit votes too (#3181) 2021-06-04 18:05:23 +00:00
Andronik Ordian ab018944a9 approval-distribution: send all messages on unify (#3179)
* approval-distribution: send all messages on unify

* update the guide
2021-06-04 12:20:53 -05:00
Robert Habermeier 736d0a48fe better logging for approval voting failures (#3180) 2021-06-04 11:50:38 -05:00
Robert Habermeier b5e49c03ec put a cap on finality lag (#3175)
* put a cap on finality lag

* Update node/service/src/grandpa_support.rs

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

* apply lag to best, not to current vote

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
2021-06-04 15:49:27 +00:00
dependabot[bot] 15d6399a37 Bump wasm-bindgen-futures from 0.4.19 to 0.4.23 (#3177)
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.19 to 0.4.23.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-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-06-04 13:31:05 +02:00
Gavin Wood 3d6df31cbe Named reserve companion (#3176)
* fix build

* fix tests

* update

* fix

* update

* Bump

Co-authored-by: Bryan Chen <xlchen1291@gmail.com>
2021-06-04 11:17:59 +02:00
Arkadiy Paronyan 8223d3ae71 Update for the new substrate client API (#2890)
* Update for the new substrate client API

* update Substrate

Co-authored-by: parity-processbot <>
2021-06-04 07:21:46 +00:00
Zeke Mostov 127771ba38 Cleanup unused errors & events in lease coordination pallets (#3174)
* Cleanup unused errors & events in lease cordination modules

* Spelling
2021-06-04 00:01:30 -04:00
Martin Pugh 5fcf3e0cea bump spec version (#3171)
* bump spec version

* bump beefy
2021-06-03 18:30:49 +00:00
Martin Pugh b63184e4ec Bump version, substrate, beefy in prep for v0.9.4 (#3169)
* bump version, substrate, beefy

* bump substrate
2021-06-03 17:05:31 +02:00
Andronik Ordian bd66121324 validator-discovery: some extra logs (#3157)
* remove duplicate logging

* validator-discovery: add extra logging
2021-06-03 14:17:24 +00:00
Gavin Wood 53de6871e0 Fix teleport accounting and add some events (#3167)
* Stuff to help inspect the DMP activity

* Fix teleport accounting

* Fixes

* Fixes

* Fixes

* Fixes
2021-06-03 15:39:08 +02:00
Shaun Wang 88e25f1669 Companion PR for Substrate #8824 (Migrate pallet-democracy to pallet attribute macro) (#3030)
* Add type parameter for democracy genesis config.

* update Substrate

Co-authored-by: parity-processbot <>
2021-06-03 06:28:00 -04:00
Alexander Popiak a28d4a5c5d XCM docs and tests (#2948)
* WIP

* add tests and docs for DoubleEncoded

* reformat parent_count

* add test for match_and_split

* fix append_with docs and add tests

* move Parachain enum variant to tuple

* Fix stuff

* add to append test

* simplify match

* formatting

* format and extend doc comments (including examples)

* fix typo

* add some doc comments

* add test for location inverter

* Add more tests/docs

* Fix build

* matches fungibles

* currency adapter.

* add more tests for location inverter

* extract max length magic number into constant

* adapters.

* Apply suggestions from code review

* Final touches.

* Repot and fixes

* Remove last todo

* Apply suggestions from code review

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

* Update xcm/xcm-builder/src/barriers.rs

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

* Update xcm/xcm-builder/src/barriers.rs

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

* Update xcm/xcm-builder/src/currency_adapter.rs

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

* Update xcm/xcm-builder/src/filter_asset_location.rs

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

* Update xcm/xcm-builder/src/matches_fungible.rs

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

* Update xcm/xcm-executor/src/traits/conversion.rs

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

* Update xcm/xcm-executor/src/traits/conversion.rs

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

* Update xcm/xcm-executor/src/traits/transact_asset.rs

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

* Update xcm/xcm-executor/src/traits/should_execute.rs

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

Co-authored-by: kianenigma <kian@parity.io>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-06-03 02:01:25 +00:00
Shaun Wang 512b366280 Update purchase pallet to FRAME v2 (#3075)
* Migrate purchase wrapper pallet to pallet attribute macro.

* Apply review suggestions.

* Update runtime/common/src/purchase.rs

* Update runtime/common/src/purchase.rs

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-06-02 18:30:55 -04:00
Gavin Wood cac84659a2 Bump Substrate (#3153) 2021-06-02 00:17:47 +02:00
Shaun Wang 22f076c6d3 Update para sudo wrapper pallet to FRAME v2 (#3074)
* Migrate para sudo wrapper pallet to pallet attribute macro.

* Apply review suggestions.
2021-06-01 20:34:47 +00:00
Shaun Wang ca10e33788 Migrate registrar pallet to pallet attribute macro. (#3063) 2021-06-01 20:32:31 +00:00
Alexander Popiak 78d8482dac use the Barrier type in XcmConfig (#3154) 2021-06-01 20:29:35 +00:00
radupopa2010 e6881457b8 Make script usable from both pipeline and localhost (#3147)
* Make script usable from both pipeline and localhost

* use the new argument --simnet-version=

* dummy, to trigger pipeline one more time

* CI: optimize the script

* No arg for help flag

* CI: comment and unneded parameter

Co-authored-by: Denis P <denis.pisarev@parity.io>
2021-06-01 16:52:15 +02:00
Sergei Shulepov 2239b93d31 Companion for PR 8913 (#3114)
* Companion for PR 8913

polkadot companion: https://github.com/paritytech/substrate/pull/8913

* update Substrate

Co-authored-by: parity-processbot <>
2021-06-01 13:03:34 +02:00
Robert Klotzner 24d1eb40cc Increase PoV timeout slightly. (#3144) 2021-05-31 22:12:18 -05:00
Alexander Popiak fd14e6822f add westmint as a trusted teleport to westend (#3142) 2021-05-31 14:25:44 -05:00
Robert Habermeier 963993d288 Reversion Safety tools for overseer and subsystems (#3104)
* guide: reversion safety

* guide: manage reversion safety in subsystems

* add leaf status to ActivatedLeaf

* add an LRU-cache to overseer for staleness detection

* update ActivatedLeaf usages in tests to contain status field

* add variant where missed accidentally

* add some helpers to LeafStatus

* address grumbles
2021-05-31 20:54:05 +02:00
Robert Habermeier 6b166a7a1f fix approval-checking GRANDPA voting rule (#3133)
* fix approval-checking GRANDPA voting rule

a `None` return value implies to vote on the best, not to vote on the base.

this explicitly changes the logic to vote on the base

* refactor logic out and test
2021-05-31 10:45:16 -05:00
radupopa2010 a7a0270a9f Update simnet tests to v4 (#3136)
* Update simnet tests to v4

* CI: revert me

* Revert "CI: revert me"

This reverts commit 2693b0640a0410bdf608ccdbb0422b831c5283e8.

Co-authored-by: Denis P <denis.pisarev@parity.io>
2021-05-31 14:37:24 +02:00
Shaun Wang fe97d7eb16 XCM docstring typo fix (#3138)
* Typo fix in xcm crate.

* Update xcm/src/v0/junction.rs

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2021-05-31 07:49:43 +00:00
Bastian Köcher 6e403ec1a4 Be more smart when loading the chain spec (#3135)
Instead of relying on the name of the chain spec file, we now use the
`is_*` methods for this.
2021-05-29 20:53:24 +02:00
Robert Habermeier d4e8f2a3da set session-info availability cores based on scheduler (#3134)
this will account for 'dummy' cores due to maxValidatorsPerCore
2021-05-28 18:06:55 -05:00
Shawn Tabrizi b7c2cfc1e4 Companion for #8793 (Simple MaxEncodedLen) (#3118)
* ProxyType MaxEncodedLen

* import

* import

* fix dep and bump substrate

* Update Cargo.lock
2021-05-28 20:50:16 +00:00
Bastian Köcher cc0457423c Use proper host configuration everywhere (#3130)
* Use proper host configuration everywhere

* Fix dumb errors
2021-05-28 21:41:24 +02:00
Xiliang Chen cc0466c84c enable Config for Paras on Kusama & Westend (#3129)
* enable Config for Paras

* fix
2021-05-28 10:52:32 +02:00
Hernando Castano 8d36e7c6f3 Allow bridge relayers to be built from repo (#3069)
* Bump Rococo/Wococo `spec_version` used by the bridge relayer

* Prevent bridge relayer from being part of workspace

This allows us to build the relayer without pulling in all its
dependencies into the Polkadot repo by indicating its manifest path when
building.

* Revert "Bump Rococo/Wococo `spec_version` used by the bridge relayer"

This reverts commit 90fdeecbba2ed2a75fc220dbc14fb4fa792dfc6e.
2021-05-27 15:27:07 -04:00
Roman Proskuryakov 3d04a0cce0 Companion PR for #8748 (#2990)
* Replace NetworkStatusSinks with Arc<NetworkService>

* update Substrate

Co-authored-by: parity-processbot <>
2021-05-27 14:27:52 +00:00
Denis Pisarev 6e5d90a972 WIP: CI: simnet to run pinned versions (#3051)
* CI: simnet to run pinned versions

* CI: explanation and tag

* dummy commit to trigger pipeline

* try with a new tag

* update new simnet stable version

Co-authored-by: radupopa2010 <radupopa2010@yahoo.com>
2021-05-27 15:02:30 +02:00
André Silva 444aafdf83 primitives: export the current slot number storage key (#3022) 2021-05-27 12:41:49 +02:00
dependabot[bot] 5316cbbc66 Bump tracing from 0.1.25 to 0.1.26 (#3120)
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.25 to 0.1.26.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.25...tracing-0.1.26)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 09:51:35 +02:00
Bastian Köcher 418086bc42 Dependabot: Fix labels and ignore try-runtime-* (#3119) 2021-05-26 21:04:01 +00:00
Jon Häggblad 0a024e30b0 Companion for substrate#8724 (#2994)
* runtime: create migrations for grandpa storage prefix

* runtime: address review comments

* runtime: update spec_version

* westend: fix incorrect merge

* runtime: change to v3.1 from v4 for grandpa migrations

* cargo.lock: manually specify pallet-grandpa in lock file

* cargo.lock: fix typo

* update substrate

* update substrate

Co-authored-by: André Silva <andrerfosilva@gmail.com>
2021-05-26 19:12:46 +00:00