Bastian Köcher
24f8cd72cf
Remove a where bound that isn't required anymore ( #633 )
2021-09-30 14:36:25 +02:00
Keith Yeung
eeca16388c
Use DecodeLimit for decoding XCM messages ( #605 )
...
* Use DecodeLimit for decoding XCM messages
* Use decode_all_with_depth_limit in appropriate places
* Use decode_all while decoding byte vector
* cargo fmt
2021-09-19 15:29:34 +03:00
Chevdor
6b20f7a2c5
ci: add quick-check with rustfmt ( #615 )
...
* ci: add quick-check with clippy and rustfmt
* chore: rustfmt round
* chore: set the same rustfmt config than substrate
* chore: fix formatting
* cI: remove clippy
* ci: switch to nightly for the checks
* ci: fix toolchains and naming
* ci: Limit the check to formatting
* chore: fix formatting
* Update .rustfmt.toml
* Update .rustfmt.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 16:57:52 +02:00
Bastian Köcher
7364a773ef
Upgrade Substrate & Polkadot ( #612 )
2021-09-16 06:57:29 +02:00
Squirrel
127b2608ec
less deps ( #606 )
2021-09-12 23:22:14 +02:00
Gavin Wood
e3e6855490
Bump Tokio to 1.10 ( #592 )
...
* Bump Tokio to 1.10
* Missed one
2021-08-28 14:33:56 +00:00
Bastian Köcher
1866657e2c
Disable integration tests outside of CI ( #565 )
2021-08-07 23:03:12 +02:00
Bastian Köcher
9a0cfd9117
Update Substrate & Polkadot ( #563 )
2021-08-05 20:53:32 +02:00
Sergei Shulepov
1f3458a0e3
WIP: Update Substrate & Polkadot ( #496 )
...
* WIP: Update Substrate
* Update Substrate & Polkadot
* fixes
* more fixes
* few missing origins
* use spawn_essential_handle
* bump polkadot dep
* remove newlines
* fix test
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-17 09:37:03 +02:00
Bastian Köcher
c5819c9e78
Use polkadot-client instead of polkadot service where possible ( #489 )
2021-06-11 12:56:14 +02:00
Bastian Köcher
5847e78fd9
Update Substrate & Polkadot ( #428 )
2021-05-04 22:32:06 +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
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
c995f6c76e
Update Substrate & Polkadot ( #387 )
...
* Update Substrate & Polkadot
* Enforce `ParachainSetCode`
2021-04-02 16:17:04 +02: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
Bastian Köcher
20e5dfd37a
Update Substrate & Polkadot ( #359 )
...
* Update Substrate & Polkadot
* Remove unused code
2021-03-09 15:11:43 +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
a4b4264a5a
Update to latest Substrate & Polkadot ( #341 )
2021-02-24 20:15:52 +01:00
Bastian Köcher
8dac4f75ad
Update Substrate & Polkadot ( #330 )
2021-02-16 17:42:08 +01:00
Bastian Köcher
5f5df0485a
New genesis ( #327 )
...
* Update Substrate & Polkadot
* Update chainspecs
* Update again to fix test
2021-02-15 11:20:36 +01:00
Bastian Köcher
119e0859b9
The great refactor ( #325 )
...
* Move pallets to pallets folder and rename them
* Move genesis file to service
* Rename primitives to primitives-core
* Delete cumulus-runtime
* Move stuff to client folder and rename
2021-02-10 13:07:21 +01:00