Keith Yeung
647a9e6df9
Upgrade pallets to FRAMEv2 ( #404 )
...
* Upgrade parachain info pallet to FRAMEv2
* Upgrade parachain system pallet to FRAMEv2
* Use Pallet<T> instead of Module<T>
* Upgrade XCMP queue pallet to FRAMEv2
* Correctly specify the metadata for events in xcmp-queue pallet
* Apply suggestions from code review
* Update pallets/parachain-system/src/tests.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-08 22:18:01 +02:00
Joshy Orndorff
2641c5b830
Make --collator reusable and imply --validator ( #380 )
...
* Reusable RunCmd struct
* wire new run command through service
* Fill in the rest of the methods
* attempt normalization
* Settle on the borrowing approach
* add the normalize call
* bump substrate
* Update client/cli/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update docs
* Update client/cli/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-05-06 14:38:25 +00:00
Bastian Köcher
5847e78fd9
Update Substrate & Polkadot ( #428 )
2021-05-04 22:32:06 +02:00
Bastian Köcher
530c95d2df
Update Substrate & Polkadot ( #427 )
...
* Update Substrate & Polkadot
* Fixes
2021-05-04 09:48:41 +02:00
Gavin Wood
dd5ad841a0
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
67102885dd
Chain ID and ParaID don't collide ( #425 )
2021-04-30 17:52:42 +02:00
Gavin Wood
cdf8fd94d3
Fix condition ( #424 )
...
Closes #419
2021-04-30 15:17:21 +02:00
Gavin Wood
8fda50ee6f
Strip down Shell to bare minimum ( #421 )
...
* Strip down shell
* Fixes
* Fixes
* Fixes
* Fixes
2021-04-29 18:21:48 +02:00
Gavin Wood
94f27a28e5
Companion for #2953 ( #418 )
...
* Companion for #2953
* Fixes
* Fixes
2021-04-29 00:24:03 +02:00
Sergei Shulepov
85160c4fb3
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
9e8f16b970
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
fc82a611ce
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
b03d11b8e0
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
53faf368c6
Bump polkadot and substrate deps ( #408 )
2021-04-25 22:11:33 +02:00
Gavin Wood
00dbc79ebf
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
0831f74fe3
Runtime upgrade test ( #364 )
2021-04-16 09:48:13 +02:00
Bastian Köcher
8142eba508
Update Substrate & Polkadot ( #405 )
2021-04-14 22:13:37 +02:00
Gavin Wood
09cd8a8976
Docs ( #401 )
2021-04-14 10:54:35 +02:00
Gavin Wood
86f9a99184
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
2516e06927
Make set_validation_data public ( #399 )
2021-04-13 21:20:10 +02:00
Bastian Köcher
aeb275d3a7
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
b35deaed95
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
dfdee4cb52
Fix export genesis command ( #395 )
2021-04-11 10:34:31 +02:00
Bastian Köcher
50037a82e8
Do not accept --parachain-id and --chain together ( #393 )
2021-04-07 23:41:40 +02:00
Keith Yeung
db7fdce9b1
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
c995f6c76e
Update Substrate & Polkadot ( #387 )
...
* Update Substrate & Polkadot
* Enforce `ParachainSetCode`
2021-04-02 16:17:04 +02:00
Shawn Tabrizi
ad5ece357e
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
042a9c969b
Hook up XcmHandler to the system module ( #381 )
2021-03-30 10:26:10 +02:00
Bastian Köcher
4d680a5107
Update Substrate & Polkadot ( #375 )
...
* Update Substrate & Polkadot
* Remove `can_set_code` for now
2021-03-23 15:54:40 +01:00
Sebastian Thiel
4ad027079f
Change spelling of 'PoVBlocks' to be consistent with other polkadot docs ( #373 )
2021-03-19 13:14:22 +01:00
Cecile Tonglet
9df91c783c
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
2731bd5858
Use correct HRMP path for parachain sibling ( #366 )
2021-03-16 13:23:22 -04:00
Bastian Köcher
8211ce13df
Update to latest Substrate & Polkadot and also move cli crate ( #365 )
2021-03-12 14:39:58 +01:00
Bastian Köcher
64061a4117
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
321b4434ac
Adapt code to new sc-telemetry ( #362 )
2021-03-11 13:45:02 +01:00
Shaun Wang
2b73fcf45d
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
20e5dfd37a
Update Substrate & Polkadot ( #359 )
...
* Update Substrate & Polkadot
* Remove unused code
2021-03-09 15:11:43 +01:00
Shaun Wang
1eecfe1acb
Update XcmError on sending failure. ( #358 )
2021-03-08 20:30:51 +01:00
Bastian Köcher
5fd6e1b4fd
Remove frame-executive that isn't required anymore ( #355 )
2021-03-04 16:33:26 +01:00
Bastian Köcher
77344a96b1
Update Polkadot & Substrate ( #354 )
2021-03-04 14:20:28 +01:00
Cecile Tonglet
e53a932fe4
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
fb649f19c2
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
d6bc185ed3
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
8ba3e66fd1
XCM handler: make send origin configurable. ( #346 )
2021-02-26 20:12:57 +01:00
Bastian Köcher
2c904359ca
Same procedure as every day ( #345 )
2021-02-25 17:14:32 +01:00
Bastian Köcher
a4b4264a5a
Update to latest Substrate & Polkadot ( #341 )
2021-02-24 20:15:52 +01:00
Shaun Wang
f82489dbee
Deposit XCM execution success and fail events. ( #338 )
2021-02-23 09:27:47 +01:00
Joshy Orndorff
2c771e2cae
Minor fixes and clarifications ( #333 )
2021-02-18 18:55:43 +01:00
Bastian Köcher
7fe3b32aa9
Update Substrate & Polkadot again ( #332 )
2021-02-18 15:40:53 +01:00
Bastian Köcher
8dac4f75ad
Update Substrate & Polkadot ( #330 )
2021-02-16 17:42:08 +01:00