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
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
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
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
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
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
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
André Silva
e3edb71ed7
grandpa: enable observer for light client ( #3019 )
...
* grandpa: enable observer for light client
* update Substrate
* service: fix missing import
* runtime: bump spec versions
Co-authored-by: parity-processbot <>
2021-05-26 17:22:15 +00:00
Bastian Köcher
7f34d76fd4
Add UsageProvider trait to AbstractClient ( #3106 )
...
* Add `UsageProvider` trait to `AbstractClient`
* Fix
2021-05-26 13:15:45 +02:00
Andronik Ordian
701be9aa03
validator_discovery: small tweak in retrying logic ( #3102 )
...
* validator_discovery: small tweak in retrying logic
* validator_discovery: use timeouts instead
2021-05-25 20:59:14 +02:00
Bastian Köcher
332cfad83a
Introduce polkadot code substitute ( #3093 )
...
* Introduce polkadot code substitute
This introduces a code substitute for the on-chain wasm of Polkadot from
block
`0x86aa36a140dfc449c30dbce16ce0fea33d5c3786766baa764e33f336841b9e29`
on wards. The underlying problem was that there exists some
miscompilation by the rust compiler in the wasm runtime that results in
state mismatches between the native/wasm runtime of the
the 0.8.30 release. This resulted in blocks being authored by the native
runtime not being importable by nodes using the wasm runtime. The
on-chain wasm is replaced by a wasm build from the 0.8.30 using the
rustc nightly from 1.03.2021.
* update the wasm substitute blob
* update Substrate
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: parity-processbot <>
2021-05-25 14:39:57 +00:00
Martin Pugh
2174d9475e
bump version & substrate ( #3085 )
2021-05-24 12:36:30 +02:00
Robert Habermeier
92fa699f87
clear PVF cache artifacts on startup ( #3084 )
2021-05-24 08:59:47 +01:00
Robert Habermeier
02faeede88
Some more debug logging ( #3073 )
...
* log validator index when importing statement
* log validation failures in debug
2021-05-22 09:25:41 +02:00
Andronik Ordian
44d02faa62
network-bridge: downgrade log level of benefit rep change ( #3068 )
...
* network-bridge: downgrade log level of benefit rep change
* remove it as we log it at higher level
2021-05-21 19:16:20 -05:00
Bernhard Schuster
e8652e73db
cargo spellcheck ( #3067 )
2021-05-22 00:15:47 +00:00
Robert Klotzner
9b06a38bb6
State can be finished due to Share message. ( #3070 )
...
* State can be finished due to `Share` message.
Therefoe a task can still be running in that state. Removed panic and
changed state name to reflect possibility of `Share` message.
* bump spec versions in kusama, polkadot and westend again III
* properly bump for the upcoming release
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-05-21 20:04:43 +02:00
Pierre Krieger
17907c7e6c
Add parachain_desired_peer_count metric ( #3035 )
2021-05-21 16:47:04 +02:00
Sergei Shulepov
20ab68270f
Put WIP artifacts next to ready ones ( #3057 )
...
* Put WIP artifacts next to ready ones
Fixes #3044
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-21 09:53:03 +02:00
Bastian Köcher
6a0b7b4164
Add AuxStore as super trait of AbstractClient ( #3066 )
2021-05-20 15:28:41 +02:00
Bastian Köcher
14f5d314f4
New Rococo genesis ( #3065 )
2021-05-20 11:44:13 +00:00
Andronik Ordian
2e70f4ea08
validator-discovery: basic retrying logic ( #3059 )
...
* validator_discovery: less flexible, but simpler design
* fix test
* remove unused struct
* smol optimization
* validator_discovery: basic retrying logic
* add a test
* add more tests
* update the guide
* more test logic
* Require at least 2/3 connectivity.
* Fix test.
* Update node/network/gossip-support/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update node/network/gossip-support/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at >
Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-05-20 10:05:44 +00:00
Andronik Ordian
98c06f5b57
validator_discovery: less flexible, but simpler design ( #3052 )
...
* validator_discovery: less flexible, but simpler design
* fix test
* remove unused struct
* smol optimization
2021-05-19 18:54:13 +02:00
Robert Klotzner
44c03a3633
Actually connect to new validators at session boundary. ( #3055 )
...
* Actually connect to new validators at session boundary.
* Add tracing.
2021-05-19 11:29:55 +00:00
Sergei Shulepov
46e5316a77
Register ReadRuntimeVersionExt ( #3045 )
...
* Register ReadRuntimeVersionExt
* Update Substrate
This includes the fix of compilation for macOS platforms.
2021-05-19 12:33:33 +02:00
Martin Pugh
fe97c3a3a2
Bump version & spec version in prep for v0.9.2 ( #3046 )
...
* bump version & spec version
* update Cargo.lock
* bump substrate
2021-05-18 23:03:45 +02:00
Bernhard Schuster
2a6f460e4c
reword error: channel is _terminated and_ empty ( #3041 )
2021-05-18 07:51:46 +02:00
Xiliang Chen
d4072c652f
Fix ArtifactId::path ( #3027 )
...
* issue with ArtifactId::path
* fix artifacts path
* Wrap an overly long line
Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com >
2021-05-15 14:04:09 +02:00
Pierre Krieger
78b87c47a8
Grab stream of networking events earlier ( #3025 )
2021-05-14 17:51:44 +02:00
Hernando Castano
9507266960
Add Bridge Header Sync to Rococo Runtime ( #2983 )
...
* Add bridges code to workspace
* Add Rococo and Wococo bridge instances to Rococo runtime
* Add Rococo and Wococo runtime APIs
* Add GenesisConfig parameters for bridge pallet
* Update Rococo spec_version used by bridge relayer
* Add scripts for running Rococo and Wococo dev nodes
* Add scripts for running Rococo<>Wococo header sync
* Apply patch for build artifact location
* Remove bridges crates from workspace
* Downgrade async related dependencies
* Change bridge pallet owner to be `root_key`
* Bump number of `MaxRequests` allowed
* Revert changes in `bridges` subtree folder
* Use correct account for Sudo
* Add comment explaining duplicate bridge pallets
* Remove WeightInfo comment.
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2021-05-13 15:09:17 +00:00
Sergei Shulepov
d326c3431e
Narrow the set of available host functions for PVF ( #3005 )
2021-05-13 12:15:46 +02:00
Andronik Ordian
60fbca3c2a
validator_discovery: simplification ( #3009 )
...
* validator_discovery: simplification
* compilation fixes
* compilation fixes II
* compilation fixes III
* compilation fixes IV
2021-05-13 11:31:15 +02:00
Sergei Shulepov
0e6c96a8b6
Support opening HRMP channels in genesis ( #3003 )
2021-05-13 10:54:30 +02:00
Andreas Doerr
ea42f734dc
Use BeefyParams ( #3013 )
2021-05-12 14:03:48 +00:00
Gavin Wood
bc6efb0480
Initial integration of Gilts pallet (Kusama) ( #2587 )
...
* Initial integration of Gilts pallet (Kusama)
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_gilt --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* Use real weights
* Update lock
* Merge
* Fixes
* Add working.
* Add proper curve arithmetic
* Fixes
* Fixes
* Make build
* Fixes
* Fixes
* Fix build
* remove dep.
* undo dep.
* upadte substrate
* Fix
* Bump Substrate
* Fixes
* Fixes
* Fix test
* Remove cap and some tests
* Fixes
* Fixes
* Update runtime/kusama/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* bump the lock file
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
Co-authored-by: Parity Benchmarking Bot <admin@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-05-11 15:40:24 +02:00
Martin Pugh
25cd67436c
Bump version to v0.9.1 and spec_version to v9010 ( #3001 )
...
* bump version and spec_version
* fix generate_release_text.rb
* Revert "fix generate_release_text.rb"
This reverts commit 9e01e0ae4f6db2155d123f69063db7d7564588e0.
* fix publish_draft_release
* fix publish_draft_release
* update target cache
2021-05-11 15:27:52 +02:00
Andreas Doerr
aa51cddf47
Add --no-beefy CLI flag ( #2981 )
...
* Add --disable-beefy CLI flag
* Update cli/src/command.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/test/service/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update parachain/test-parachains/adder/collator/src/main.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update cli/src/command.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update cli/src/cli.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update cli/src/cli.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update cli/src/cli.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-05-10 17:13:21 +00:00
Robert Klotzner
1e5f193765
Fix flaky test ( #3002 )
...
* Reporting peer might come first
before trying to request data, depending on scheduler.
* Better test.
2021-05-10 15:16:08 +00:00
Robert Klotzner
c0df140ec6
Flood protection for large statements. ( #2984 )
...
* Flood protection for large statements.
* Add test for flood protection.
* Doc improvements.
2021-05-06 20:41:05 +02:00
Pierre Krieger
64c8b913c3
Companion PR for #8682 ( #2958 )
...
* Companion PR for #8682
* Compilation fix
* Update beefy
* update Substrate
Co-authored-by: parity-processbot <>
2021-05-06 16:41:28 +02:00
Robert Klotzner
1508024a47
Some overdue cleanup ( #2989 )
...
* Cleanup obsolete code.
* Move session cache to requester.
2021-05-06 16:15:23 +02:00
Robert Klotzner
601a3781c1
Always connect in collator protocol. ( #2980 )
...
* Always connect in collator protocol.
* Fix unused import.
* We always issue connection requests now.
* Fix stupid boolean logic with one variable.
* Fix CI.
2021-05-06 12:54:54 +02:00
André Silva
bbf0812994
runtime: remove beefy and mmr from westend (again) ( #2972 )
...
* runtime: remove beefy and mmr from westend (again)
* node: add borked westend runtime upgrade as bad block
2021-05-04 10:16:20 +00:00
Robert Klotzner
795a526e6d
Do peer connect later (as it happens in reality). ( #2971 )
...
Otherwise peer connect events occassionally happen before
`StatementFetchingReceiver` message.
2021-05-03 21:50:32 +02:00
Robert Klotzner
0dbdfef95e
More secure Signed implementation ( #2963 )
...
* Remove signature verification in backing.
`SignedFullStatement` now signals that the signature has already been
checked.
* Remove unused check_payload function.
* Introduced unchecked signed variants.
* Fix inclusion to use unchecked variant.
* More unchecked variants.
* Use unchecked variants in protocols.
* Start fixing statement-distribution.
* Fixup statement distribution.
* Fix inclusion.
* Fix warning.
* Fix backing properly.
* Fix bitfield distribution.
* Make crypto store optional for `RuntimeInfo`.
* Factor out utility functions.
* get_group_rotation_info
* WIP: Collator cleanup + check signatures.
* Convenience signature checking functions.
* Check signature on collator-side.
* Fix warnings.
* Fix collator side tests.
* Get rid of warnings.
* Better Signed/UncheckedSigned implementation.
Also get rid of Encode/Decode for Signed! *party*
* Get rid of dead code.
* Move Signed in its own module.
* into_checked -> try_into_checked
* Fix merge.
2021-05-03 21:41:14 +02:00