Bastian Köcher
6364eeeef1
Update Substrate & Polkadot ( #427 )
...
* Update Substrate & Polkadot
* Fixes
2021-05-04 09:48:41 +02:00
Gavin Wood
3f687171c2
DMP Queue pallet ( #416 )
...
* Introduce the converter into the hub
* Parachain recognises Rococo governance body as admin
* Whitespace
* Use UsingComponents for fee payment in XCM
* Fixes
* Fixes for XCM permissions
* Remove encode_call test
* Fixes
* Rococo Collator supports Shell runtime
* Fixes
* Fixes
* Initial draft of DMP Queue pallet
* DMP Queue builds.
* Companion for Polkadot gav-allow-xcm-exec
* Bump
* Fix std
* Fixes
* fix and improve docs
* fix compile errors in tests
* add test for try_service_message
* update cargo.lock
* Fixes
* Make test name read well
* Fixes
* Add a couple of simple tests
* Tests
* Tests
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Chain ID and ParaID don't collide
* Fixes
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fixes
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-02 16:11:58 +02:00
Gavin Wood
315c5d1c15
Chain ID and ParaID don't collide ( #425 )
2021-04-30 17:52:42 +02:00
Gavin Wood
42c18b8cb5
Fix condition ( #424 )
...
Closes #419
2021-04-30 15:17:21 +02:00
Gavin Wood
7d315cf9ab
Strip down Shell to bare minimum ( #421 )
...
* Strip down shell
* Fixes
* Fixes
* Fixes
* Fixes
2021-04-29 18:21:48 +02:00
Gavin Wood
5edcffbcc8
Companion for #2953 ( #418 )
...
* Companion for #2953
* Fixes
* Fixes
2021-04-29 00:24:03 +02:00
Sergei Shulepov
3fa1ccc5ef
Panic instead of ensure ( #413 )
...
Instead of `ensure` with dedicated errors use `panic` or `assert`. See
for details #410
Closes #410
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-04-28 22:22:09 +02:00
Gavin Wood
4f56cc7fb5
Integrate Shell runtime into collator ( #414 )
...
* Introduce the converter into the hub
* Parachain recognises Rococo governance body as admin
* Whitespace
* Use UsingComponents for fee payment in XCM
* Fixes
* Fixes for XCM permissions
* Remove encode_call test
* Fixes
* Rococo Collator supports Shell runtime
* Fixes
* Fixes
2021-04-28 18:35:55 +02:00
Gavin Wood
0ab15b2e05
Integrate a governance XCM origin ( #407 )
...
* Introduce the converter into the hub
* Parachain recognises Rococo governance body as admin
* Whitespace
* Use UsingComponents for fee payment in XCM
* Fixes
* Fixes for XCM permissions
* Remove encode_call test
* Fixes
* Fixes
* Fixes
2021-04-28 14:41:18 +02:00
Guillaume Thiolliere
859524f2f1
Bump polkadot + fix parachain unnamed field ( #412 )
...
* parachain unnamed field
* bump polkadot: cargo udpate -p xcm
* Update lock
* Fixes
* Fixes
Co-authored-by: Gav Wood <gavin@parity.io >
2021-04-27 18:56:08 +02:00
Shawn Tabrizi
2180cf4820
Bump polkadot and substrate deps ( #408 )
2021-04-25 22:11:33 +02:00
Gavin Wood
689cb16660
Two-stage upgrade for parachains ( #392 )
...
* Authorised upgrade doesn't pay fee
* Origin not needed
* Fixes
2021-04-16 12:45:55 +02:00
Cecile Tonglet
8c37b0d450
Runtime upgrade test ( #364 )
2021-04-16 09:48:13 +02:00
Bastian Köcher
51577808eb
Update Substrate & Polkadot ( #405 )
2021-04-14 22:13:37 +02:00
Gavin Wood
18c9e4e13a
Docs ( #401 )
2021-04-14 10:54:35 +02:00
Gavin Wood
5fe32eb0d4
XCM revamp & Ping pallet ( #391 )
...
* Add spambot
* Fixes
* Add some extra functions to spambot, bump version
* Lock..
* Aggregate HRMP (XCMP/HMP) messages. Payloads for spambot.
* Fix tests, bump Polkadot.
* Fix HMP tests
* Rename Hrmp -> Xcmp for handler/sender
* Use master branch
* Test Xcm message passing & rename away from HMP
* Docs
* Introduce fee payment mechanics into XCM.
* Rename spambot -> ping
* Lock
* 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
* Should process any remaining XCM messages when we're not doing anything else.
* Update API usage and preparation for the big build.
* Some build fixes
* Build fixes
* xcm-handler builds
* Fix warnings
* Docs
* Parachains system builds
* Parachain runtime building
* Fix build
* Introduce transfer_asset specialisation.
* Fixes
* Two-stage upgrade for parachains.
* Fixes
* Fixes
* Updates for message sending.
* Repotting/renaming. Add primitives/utility.
* Remove real-overseer and bump refs
* Configure & document Rococo XCM runtime.
* Add shell runtime, some companion changes for #8589
* Bumps & fixes
* Fix test
* Build fix
* Update pallets/xcmp-queue/src/lib.rs
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
* Make tests compile
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove unused
* remove unused event stuff
* Adds proper validation-worker to make integration tests work
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* import saturating
* remove panic test
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-04-14 09:36:59 +02:00
Joshy Orndorff
a70ab40cdc
Make set_validation_data public ( #399 )
2021-04-13 21:20:10 +02:00
Bastian Köcher
498595a5b7
Remove pov hash comparison when waiting on a block to announce ( #396 )
...
* Remove pov hash comparison when waiting on a block to announce
Internally we get notified on the channel for our candidate anyway.
Besides that polkadot will compress the pov which leads to a different
pov hash and thus, would lead to a failing check on the `pov_hash`.
* Fix
* Fix tests
2021-04-12 19:26:55 +02:00
Bastian Köcher
959f5852ed
Approve block announcements of backed blocks ( #394 )
...
* Approve block announcements of backed blocks
If we receive a block announcement without a statement attached that
matches the latest backed block, it is valid and we need to approve the
block announcement to download the block.
* Fix tests
* Approve block announcement if it comes from the best known block
* Fetch backed block only when required
2021-04-12 13:54:07 +02:00
Bastian Köcher
605ab2b957
Fix export genesis command ( #395 )
2021-04-11 10:34:31 +02:00
Bastian Köcher
3b4ca53f6c
Do not accept --parachain-id and --chain together ( #393 )
2021-04-07 23:41:40 +02:00
Keith Yeung
cbd72e7ab8
Declare Error type in decl_module! ( #390 )
...
* Declare Error type in decl_module! for parachain-systems
* Declare Error type in decl_module! for xcm-handler
2021-04-07 11:38:41 +02:00
Bastian Köcher
1d4c02cc4e
Update Substrate & Polkadot ( #387 )
...
* Update Substrate & Polkadot
* Enforce `ParachainSetCode`
2021-04-02 16:17:04 +02:00
Shawn Tabrizi
dc666c7e82
Improve Storage and Add set_upgrade_block to Validation Function Upgrade ( #383 )
...
* set_upgrade_block
* Update lib.rs
* Use Two Storage Items for Validation Function Upgrade
* note issue #374
* fix docs nits
* Apply suggestions from code review
* Update pallets/parachain-system/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-31 11:42:48 +02:00
Sergei Shulepov
88075102d3
Hook up XcmHandler to the system module ( #381 )
2021-03-30 10:26:10 +02:00
Bastian Köcher
a8bf0e1a7f
Update Substrate & Polkadot ( #375 )
...
* Update Substrate & Polkadot
* Remove `can_set_code` for now
2021-03-23 15:54:40 +01:00
Sebastian Thiel
662e9dcbdb
Change spelling of 'PoVBlocks' to be consistent with other polkadot docs ( #373 )
2021-03-19 13:14:22 +01:00
Cecile Tonglet
a90308b7ce
Fix incorrect prefix for "Prepared block for proposing at" ( #305 )
...
* Fix incorrect prefix for "Prepared block for proposing at"
* Update Substrate & Polkadot
* Fix quotes & codec
* WIP
* Fix logger rename
* Revert "WIP"
This reverts commit af2fe967bb5841a55024783dbccf6c75cba6ab1a.
* WIP
* CLEANUP
* Working state
* WIP
* WIP
2021-03-17 10:46:55 +01:00
Vincent Geddes
8f1ef9d6e1
Use correct HRMP path for parachain sibling ( #366 )
2021-03-16 13:23:22 -04:00
Bastian Köcher
00bc5cd2da
Update to latest Substrate & Polkadot and also move cli crate ( #365 )
2021-03-12 14:39:58 +01:00
Bastian Köcher
cb9d1019c4
Fix block propagation between non-collator nodes ( #363 )
...
* Create builder for test nodes
* Fix syncing issue
* Adds missing file
2021-03-11 22:29:19 +01:00
Cecile Tonglet
a3d50f2dd7
Adapt code to new sc-telemetry ( #362 )
2021-03-11 13:45:02 +01:00
Shaun Wang
cb5a244f3d
Support xcm local execution in xcm-handler. ( #357 )
...
* Support xcm local execution in xcm handler.
* Add docs.
2021-03-09 22:57:44 +01:00
Bastian Köcher
c7d2446ba5
Update Substrate & Polkadot ( #359 )
...
* Update Substrate & Polkadot
* Remove unused code
2021-03-09 15:11:43 +01:00
Shaun Wang
56f60a122e
Update XcmError on sending failure. ( #358 )
2021-03-08 20:30:51 +01:00
Bastian Köcher
b50848ea53
Remove frame-executive that isn't required anymore ( #355 )
2021-03-04 16:33:26 +01:00
Bastian Köcher
937cd767ae
Update Polkadot & Substrate ( #354 )
2021-03-04 14:20:28 +01:00
Cecile Tonglet
5cdbd7c42d
Add a command to purge the relay chain only ( #306 )
...
* Add a command to purge the relay chain only
* WIP
* Update rococo-parachains/src/cli.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Move cli stuff to its own crate
* Copyright dates
* Test not working for some reason...
* WIP
* Revert "WIP"
This reverts commit f97cd63742c7df822e4a6e52a29db5e0f56b7bfa.
* Fix test to use provided relay chain
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Add hint about which database could not be purged
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-03 13:40:22 +01:00
Andrew Jones
16bc09f710
Update to latest Substrate and Polkadot ( #348 )
...
* Update to latest Substrate and Polkadot
* log::debug!
* Add log dependecies to runtime
* Comma
* Fix tests
2021-03-03 13:20:17 +01:00
Bastian Köcher
f511757069
Change the way we store, handle and validate the validation data ( #342 )
...
Currently validation data is shared by using a well known key between
the parachain system pallet and the validate block implementation. This
pr changes this by passing the parachain system directly to the validate
block implementation to make use of it. Besides that, we also store the
validation params in some thread local variable to make it inspectable
by parachain system. This moves the validation of validation data and
validation params to the parachain system pallet directly, instead of
having this hidden inside the validate block implementation.
Fixes: https://github.com/paritytech/cumulus/issues/217
2021-02-27 18:46:25 +01:00
Shaun Wang
9535ee26ab
XCM handler: make send origin configurable. ( #346 )
2021-02-26 20:12:57 +01:00
Bastian Köcher
6b38755ec4
Same procedure as every day ( #345 )
2021-02-25 17:14:32 +01:00
Bastian Köcher
fc8c690cf8
Update to latest Substrate & Polkadot ( #341 )
2021-02-24 20:15:52 +01:00
Shaun Wang
d8126cdc13
Deposit XCM execution success and fail events. ( #338 )
2021-02-23 09:27:47 +01:00
Joshy Orndorff
da79d42b6d
Minor fixes and clarifications ( #333 )
2021-02-18 18:55:43 +01:00
Bastian Köcher
28d1d00747
Update Substrate & Polkadot again ( #332 )
2021-02-18 15:40:53 +01:00
Bastian Köcher
f04ce0655b
Update Substrate & Polkadot ( #330 )
2021-02-16 17:42:08 +01:00
Bastian Köcher
4820fa16b1
Parachain Consensus abstractions ( #329 )
...
* Move consensus to consensus-common crate
* Move the parachain consensus out of the collator
* Add first relay chain consensus stuff
* Remove some warnings
* Fix more stuff
* Fix collator test
* Change `ParachainConsensus` to take a mutable self
* Make everything compile
* Feedback
2021-02-16 12:45:30 +01:00
Bastian Köcher
ec08d11d39
New genesis ( #327 )
...
* Update Substrate & Polkadot
* Update chainspecs
* Update again to fix test
2021-02-15 11:20:36 +01:00
Bastian Köcher
886a1e1c76
Move parachain inherent data into its own crate ( #326 )
...
This renames and moves the `SystemInherentData` into its own crate.
The struct is now called `ParachainInherentData`. Besides moving the
struct, this also moves the code for creating this struct into this crate.
2021-02-11 13:05:17 +01:00