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
Bastian Köcher
7830bae524
Companion for Substrate#8526 ( #2845 )
...
* Update branch
* Make it compile
* Compile
* gate approval-checking logic (#2470 )
* Fix build
* Updates
* Fix merge
* Adds missing crate
* Companion for Substrate#8386
https://github.com/paritytech/substrate/pull/8386
* Fix fix fix
* Fix
* Fix compilation
* Rewrite to `ParachainsInherentDataProvider`
* Make it compile
* Renamings
* Revert stuff
* Remove stale file
* Guide updates
* Update node/core/parachains-inherent/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/core/parachains-inherent/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Apply suggestions from code review
* Reset accidental changes
* More
* Remove stale file
* update Substrate
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-05-03 15:21:13 +00:00
Robert Habermeier
2d18b26151
Add parachains modules to Westend and Kusama runtimes ( #2854 )
...
* add `force_set_active_config`
* add parachains modules to Westend
* add parachains modules to Kusama runtime
* use real runtime API impl
* add module indices and remove auctions, crowdloan
* add benchmarks
* remove previous migrations and add host configuration set migration
* make compile
* Add Call Filter for Registrar and Slots except Root
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* fix build
* update `add_benchmark`
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_paras_registrar.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_slots.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_paras_registrar.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_slots.rs
* fix weights
* tweak more constants
* Fix up the kusama runtime
* Westend runtime fixups
* Fix MMR & Beefy for westend
* Fixes
* fix tests
* Update runtime/polkadot/src/constants.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update runtime/westend/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Gav Wood <gavin@parity.io >
2021-05-01 17:36:11 +02:00
Andreas Doerr
99b10213a0
Make KeyStore optional ( #2964 )
2021-05-01 12:59:08 +02:00
Martin Pugh
7a99a18d1d
v0.9.0 prep ( #2959 )
...
* bump version and unify spec version
* bump substrate
* spec_version to 900
2021-04-29 18:21:58 +02:00
Bernhard Schuster
1ef8eac8ec
feat: add proc macro to reduce overseer mock boilerplate ( #2949 )
2021-04-29 12:07:28 +02:00
Martin Pugh
9c60982989
Bump version, bump substrate & update benchmarks in preparation for v0.8.31 ( #2938 )
...
* bump version
* bump cargo
* update benchmarks
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-28 13:23:54 +02:00
Robert Klotzner
c86a774b9d
Send statements to own backing group first ( #2927 )
...
* Factor out runtime module into utils.
* First fatal error design.
* Better error handling infra.
* Error handling cleanup.
* Send to peers of our group first.
* Finish backing group prioritization.
* Little cleanup.
* More cleanup.
* Forgot to checkin error.rs.
* Notes.
* Runtime -> RuntimeInfo
* qed in debug assert.
* PolkaErr -> Fault.
2021-04-27 21:47:32 +02:00
Hernando Castano
470383ce67
Add Dev Config for Rococo and Wococo ( #2928 )
...
* Add `rococo-dev` chain option
* Add `wococo-dev` CLI option
* Sort Chain ID match arms
2021-04-27 17:46:55 +02:00
François Garillot
d4ddf8d7e8
Simplify some Option / Result / ? operator patterns ( #2920 )
...
* Simplify some Option / Result / ? operator patterns
When they identically match a combinator on those types.
Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust ).
* adjust review comments
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-25 20:51:01 +00:00
André Silva
ae558997a8
Introduce Wococo testnet ( #2918 )
...
* runtime: remove mmr and beefy from westend runtime
* runtime: westend: remove pallet_beefy config
* node: only start beefy gadget on rococo
* node: remove beefy keys from westend chain spec
* node: add wococo testnet chain spec
* node: add comments about beefy gadget task
* runtime: update wococo chainspec
* Remove stale comment
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
Co-authored-by: adoerr <0xad@gmx.net >
2021-04-22 15:28:23 +00:00
André Silva
c25e79d8c4
runtime: remove mmr and beefy from westend runtime ( #2916 )
...
* runtime: remove mmr and beefy from westend runtime
* runtime: westend: remove pallet_beefy config
* node: only start beefy gadget on rococo
* node: remove beefy keys from westend chain spec
2021-04-21 20:31:06 +00:00
Kian Paimani
47889d845c
Fix bench bot ( #2900 )
...
* Fix bench bot
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Fix weights files
* Fix'
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-21 01:38:19 +00:00
André Silva
eca26ac5d0
Bump BEEFY ( #2906 )
...
* bump substrate
* bump beefy
* bump beefy again
* bump beefy
2021-04-20 16:54:16 +00:00