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
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
André Silva
c0fcaa6bd9
runtime: remove BabePalletPrefix impls for old migration ( #2967 )
2021-05-03 17:27:32 +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
Peter Goodspeed-Niklaus
774d612eef
Companion for Multi-phase elections solution resubmission ( #2648 )
...
* Companion for Multi-phase elections solution resubmission
https://github.com/paritytech/substrate/pull/8290
* update Substrate
Co-authored-by: parity-processbot <>
2021-05-03 13:29:44 +02:00
Lohann Paterno Coutinho Ferreira
9bbc0b4460
Companion PR for #8414 - Remove OffencesWeightSoftLimit ( #2966 )
...
* Remove OffencesWeightSoftLimit
* update Substrate
Co-authored-by: parity-processbot <>
2021-05-03 09:12:39 +00:00
ferrell-code
002f49fb03
Companion for Substrate#8663 ( #2945 )
...
* add pallet_authorship to test
* update Substrate
Co-authored-by: parity-processbot <>
2021-05-03 04:13:23 +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
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
Gavin Wood
f36d8efb3d
Allow normal accounts to execute XCM for withdraw+teleport ( #2953 )
...
* Allow normal accounts to execute XCM for withdraw+teleport
* Bump Substrate
2021-04-28 23:13:19 +02:00
Gavin Wood
c0bf7e3d8c
Required weight is returned in case it exceeds limit. ( #2952 )
2021-04-28 18:24:39 +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
Guillaume Thiolliere
41e57c4509
change junction parachain id from named field to unnamed field ( #2940 )
...
* use unnamed field for parachain variant in junction
* remove outdated comment
2021-04-27 14:49:55 +02:00
Gavin Wood
9194219586
Add XCM Origin and converter ( #2896 )
...
* Add XCM Origin and converter
* IsMajority filter can be location-prefixed
* Update xcm/pallet-xcm/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/src/v0/multi_location.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Introduce UsingComponents to allow reuse of fee payment in XCM
* Use Drop rather than finalize
* Add errors for weight.
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fixes
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Various XCM fixes and improvements
* Fixes
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fixes
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-04-27 14:33:40 +02:00
Ricardo Rius
8e0963e533
Add Statemint teleport ( #2934 )
...
* Add Statemint teleport
* Fixes
2021-04-26 20:19:29 +02:00
Shawn Tabrizi
9c0bb140c8
Companion for substrate#8665 (Bounded Treasury) ( #2932 )
...
* Add MaxApprovals for Bounded Treasury
* update weight
* update Substrate
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_treasury --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=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
Co-authored-by: parity-processbot <>
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-26 16:09:42 +00:00
Kian Paimani
c7ee98ab5f
Update lib.rs ( #2926 )
2021-04-24 16:48:43 +02:00
Kian Paimani
0b35a067aa
companion for substrate/pull/8044 ( #2765 )
...
* Add migration to kusama
* Fix try-runtime stuff
* Add to polkadot
* add migeations to all runtiem
* update Substrate
Co-authored-by: parity-processbot <>
2021-04-23 07:54:44 +00:00
Shawn Tabrizi
4838603eb4
Companion for impl Zero and One for fixed point numbers ( #2924 )
...
* fix build
* Update Cargo.lock
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
2021-04-23 00:07:05 -04: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
André Silva
142a0aec2f
runtime: prepare Westend runtime for BEEFY ( #2914 )
...
* runtime: bump westend spec_version and add beefy keys migration
* bump beefy
* runtime: revert westend spec_version change
2021-04-21 12:00:14 +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
Kian Paimani
c384f70067
Companion for substrate/pull/8596 ( #2895 )
...
* Add weight types
* Add missing types
* update Substrate
* Fix build
* Fix bench build
* 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-processbot <>
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-18 09:39:34 +01:00
Shawn Tabrizi
23db3479a0
reduce min vested transfer by 100x ( #2891 )
2021-04-16 20:00:23 +02:00
Joshy Orndorff
196b9a94c6
Expose paras config in rococo runtime ( #2886 )
...
* Add it in rococo runtime
* Add to rococo chain spec
* bump spec version
* Update runtime/rococo/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-04-15 00:43:19 +02:00
Peter Goodspeed-Niklaus
f822381c4c
Companion for Trim compact solution for length during preparation ( #2649 )
...
* Companion for Trim compact solution for length during preparation
https://github.com/paritytech/substrate/pull/8317
* eliminate potential for overflow in OffchainSolutionLengthLimit
* Apply suggestions from code review
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* update substrate: cargo update -p sp-io
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-04-13 13:53:51 +00:00
Guillaume Thiolliere
f1f9192a38
Companion for inherent checks: #8173 ( #2560 )
...
* impl is_inherent for pallets
* fix
* fix master merge: inherent is
* update Substrate
Co-authored-by: parity-processbot <>
2021-04-13 09:53:29 +00:00
Guillaume Thiolliere
d0055b1af8
remove unused and sometime invalid type alias ( #2876 )
2021-04-12 20:33:46 +02:00
Joshy Orndorff
849b5117f9
rename EPOCH_DURATION_IN_BLOCKS -> EPOCH_DURATION_IN_SLOTS ( #2674 )
2021-04-12 14:40:44 +00:00
Ashley
195772c5d4
Remove already triggered migrations ( #2764 )
...
* Remove BabeEpochConfigMigrations
* Remove remaining migrations
* Remove unused migration definitions
2021-04-12 13:29:52 +02:00
Shawn Tabrizi
2d21599ec5
expose sample length in consts metadata ( #2848 )
2021-04-12 13:14:03 +02:00
Gavin Wood
359ade2b89
Dedupe some code and companion for #8589 ( #2873 )
...
* Dedupe some code and companion for #8589
* Bump Substrate
2021-04-11 12:22:45 +00:00
Gavin Wood
025200fb25
Rococo allows ROC to be teleported from Tick, Trick and Track ( #2872 )
...
Also allows unpaid messages from them.
2021-04-10 12:59:50 +02:00
Shawn Tabrizi
2c9a26e192
Change Auctions to Eight Lease Periods Per Slot ( #2862 )
...
* initial patch
* fix tests
* fix benchmarks
* expose `SlotRange` consts
* Update Cargo.lock
* fix tests
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-04-10 08:20:53 +00:00
Kian Paimani
6a15b6995f
Cost analysis of a council election full block ( #2782 )
2021-04-10 06:55:19 +02:00
Robert Habermeier
23cfd0edb9
update rococo and remove cursed BEEFY migration ( #2870 )
...
* update rococo and remove cursed BEEFY migration
* remove migration
* tweak VERSION
2021-04-10 00:10:14 +02:00
Robert Klotzner
305375e1e4
Req/res optimization for statement distribution ( #2803 )
...
* Wip
* Increase proposer timeout.
* WIP.
* Better timeout values now that we are going to be connected to all nodes. (#2778 )
* Better timeout values.
* Fix typo.
* Fix validator bandwidth.
* Fix compilation.
* Better and more consistent sizes.
Most importantly code size is now 5 Meg, which is the limit we currently
want to support in statement distribution.
* Introduce statement fetching request.
* WIP
* Statement cache retrieval logic.
* Review remarks by @rphmeier
* Fixes.
* Better requester logic.
* WIP: Handle requester messages.
* Missing dep.
* Fix request launching logic.
* Finish fetching logic.
* Sending logic.
* Redo code size calculations.
Now that max code size is compressed size.
* Update Cargo.lock (new dep)
* Get request receiver to statement distribution.
* Expose new functionality for responding to requests.
* Cleanup.
* Responder logic.
* Fixes + Cleanup.
* Cargo.lock
* Whitespace.
* Add lost copyright.
* Launch responder task.
* Typo.
* info -> warn
* Typo.
* Fix.
* Fix.
* Update comment.
* Doc fix.
* Better large statement heuristics.
* Fix tests.
* Fix network bridge tests.
* Add test for size estimate.
* Very simple tests that checks we get LargeStatement.
* Basic check, that fetching of large candidates is performed.
* More tests.
* Basic metrics for responder.
* More metrics.
* Use Encode::encoded_size().
* Some useful spans.
* Get rid of redundant metrics.
* Don't add peer on duplicate.
* Properly check hash
instead of relying on signatures alone.
* Preserve ordering + better flood protection.
* Get rid of redundant clone.
* Don't shutdown responder on failed query.
And add test for this.
* Smaller fixes.
* Quotes.
* Better queue size calculation.
* A bit saner response sizes.
* Fixes.
2021-04-09 21:30:12 +00:00
Gavin Wood
69bd6d8ef2
Introduce/integrate a collective into Rococo Relay ( #2869 )
...
* Introduce a collective into Rococo runtime
* Intregrate Rococo Collective into XCM
* Fixes
* Update runtime/rococo/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-04-09 22:16:32 +02:00
Shawn Tabrizi
9babb09900
Introduce System Parachains into Registrar ( #2858 )
...
* initial stuff
* adjust deposit
* remove unused
* weight stuff
* Update integration_tests.rs
* Update paras_registrar.rs
* Update paras_registrar.rs
* add test
* Update paras_registrar.rs
Co-authored-by: parity-processbot <>
2021-04-09 21:07:49 +02:00
Gavin Wood
c9102c11a4
XCM Revamp Continued ( #2865 )
...
* Introduce plurality XCM locations
* Add RelayedFrom
* DMP dispatch weight handling.
* Add pallet for XCM sending, add routing logic.
* Update error types & doc
* Fix warnings.
* Fixes
* Fixes
* Fixes
* Bump Substrate
* Fixes
* Docs
* Docs
* Docs
* Fixes
* Fixes
* Fixes
* Update xcm/pallet-xcm/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
* Fixes
* Update lib.rs
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-09 20:34:28 +02:00
Shawn Tabrizi
1111c490db
Reduce Kusama Fees / Deposits by 50x ( #2451 )
...
* Reduce the value of DOLLARS by 50x
* Update lib.rs
2021-04-09 13:02:11 +02:00
Shawn Tabrizi
322e1f3dff
ModuleId to PalletId ( #2864 )
...
* lock substrate version for testing
* `ModuleId` to `PalletId`
* release substrate version
* Update Cargo.lock
Co-authored-by: Xavier Lau <c.estlavie@icloud.com >
2021-04-09 12:33:21 +02:00
André Silva
68626198f8
runtime: fix the session keys migration that includes the beefy key type ( #2855 )
...
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-04-08 21:51:46 +02:00
Robert Habermeier
cfb8dfa4fe
bump spec versions across the board ( #2856 )
2021-04-08 19:14:19 +00:00
Gavin Wood
adc238ad86
XCM revamp ( #2836 )
...
* Remove unused relaying XCM
* Aggregate HRMP (XCMP/HMP) messages. Payloads for spambot.
* Revert lock
* Fix
* Broken example
* Introduce fee payment mechanics into XCM.
* Weight limitations on XCM execution
* Mock environment for tests and the first test
* Tests for XCM and a few refactors.
* Remove code that's not ready
* Fix for an XCM and an additional test
* Query response system
* XCMP message dispatch system reimagining
- Moved most of the logic into xcm-handler pallet
- Altered the outgoing XCMP API from push to pull
- Changed underlying outgoing queue data structures to avoid multi-page read/writes
- Introduced queuing for incoming messages
- Introduced signal messages as a flow-control sub-stream
- Introduced flow-control with basic threshold back-pressure
- Introduced overall weight limitation on messages executed
- Additonal alterations to XCM APIs for the new system
* Some build fixes
* Remove the Encode bounds sprayed around
* More faff
* Fix bounds amek use latest scale codec.
* remove println
* fixes
* Fix XcmExecutor Tests
* Fix XCM bounds using derivative crate
* Refactor names of XcmGeneric &c into Xcm
* Repot the xcm-executor into xcm-builder
* Docs
* Docs
* Fixes
* Update xcm/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fixes
* Docs
* Update runtime/parachains/src/ump.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
* Fixes
* Fixes
* Fixes
* Docs
* Fixes
* Fixes
* Introduce transfer_asset specialisation.
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-07 22:38:29 +02:00
Andronik Ordian
1e4517800b
fix failing test ( #2844 )
2021-04-07 16:22:04 +00:00
Shawn Tabrizi
b23c9039d8
Reduce Epoch Duration to 10 Min for Rococo ( #2839 )
2021-04-07 16:41:45 +02:00
Shawn Tabrizi
a4a4d20d4c
Add Root Functions to HRMP ( #2785 )
...
* Update hrmp.rs
* add root functions
2021-04-07 15:21:00 +02:00
Shawn Tabrizi
45be2ac97e
Relax Origin Checks in Registrar, Add Lock to Registration ( #2808 )
...
* Relax Origin Checks in Registrar
* fix tests
* Update runtime/common/src/paras_registrar.rs
* introduce para locks
* apply a lock after upgrade
* add test
* add lock when creating crowdloan
2021-04-07 15:16:35 +02:00
Robert Habermeier
251b6ca7bf
remove WASM_MAGIC ( #2832 )
...
* remove WASM_MAGIC
* fix test warnings
2021-04-07 12:00:22 +03:00