Commit Graph
76 Commits
Author SHA1 Message Date
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
Bastian Köcher d3f9c7db38 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 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 ba0bdc84a5 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
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
Bastian KöcherandSergei Shulepov 75c5c3d4ef Block announce validation should use the correct Validation result (#315)
* Block announce validation should use the correct `Validation` result

The error variant is just for internal errors and we need to return
`Failure` always when the other node send us an invalid statement.

* Update network/src/lib.rs

Co-authored-by: Sergei Shulepov <sergei@parity.io>

Co-authored-by: Sergei Shulepov <sergei@parity.io>
2021-01-30 00:49:14 +01:00
Bastian Köcher bf33585b01 Print an error when we can not find the genesis block (#313)
This changes the collator to print an error if the block that we can not
find is the genesis block, instead of only logging this as a `debug`
message. This should help people when they have registered the wrong
genesis state on the relay chain.
2021-01-29 13:09:06 +01:00
Bastian Köcher c6ba3b5654 Update the chainspecs (#311) 2021-01-26 23:51:36 +01:00
Bastian Köcher 2f40e59e22 Switch to custom BlockAnnounceData (#310)
* Switch to custom `BlockAnnounceData`

Instead of sending a `SignedFullStatement` this switches to a new struct
`BlockAnnounceData` that is being send alongside the block announcement.
The signed full statement contains the candidate commitments, meaning it
could be a full runtime upgrade that we send alongside a block
announcement... To prevent this, we now only send the candidate receipt
and the compact statement.

* Update to latest polkadot
2021-01-26 03:32:03 +01:00
Bastian Köcher e78aaec3ed Add trace logging for the POV size (#294)
* Add trace logging for the POV size

* :(
2021-01-18 13:48:36 +01:00
Bastian Köcher 2218df9b74 Update to latest (#289) 2021-01-14 17:50:56 +01:00
Bastian Köcher af07b819d1 Update (#284)
* Update yeah

* Update spec_version
2021-01-12 13:18:24 +01:00
Bastian Köcher fa7c33ea9d Update... (#282) 2021-01-08 13:16:21 +01:00
Bastian Köcher 9dc7cc5735 Wait for block import in parachain consensus (#271)
* Wait for block import in parachain consensus

There was a bug in the parachain consensus that when importing a relay
chain block that sets a new best parachain block, but the required
parachain block was not yet imported. This pr fixes this by waiting for
the block to be imported.

* Finish docs
2021-01-05 22:14:27 +00:00
Bastian Köcher d51f1d8563 Update to latest Substrate & Polkadot (#280)
* Update to latest Substrate & Polkadot

* Update the chain specs

* Update polkadot properly...

* Update chainspecs again...

* Again...
2021-01-05 22:33:31 +01:00
Bastian KöcherandErin Grasmick cd0e40a6eb Rococo V1 (#268)
* Update

* Update the chain specs

* Update to latest master & master

* add current tick bootnodes

* Update again

* Add track bootnodes

* add trick and track bootnodes

* Update the chain specs

* Update

Co-authored-by: Erin Grasmick <erin@parity.io>
2020-12-22 10:00:58 +01:00
Bastian Köcher 092f0e9149 Update to latest master & master (#260) 2020-12-04 23:49:12 +01:00
Bastian Köcher 5a97db73fb Update (#253) 2020-12-02 17:16:23 +01:00
Bastian Köcher c0d80a7c95 Fix syncing issues (#249) 2020-11-26 22:14:12 +01:00
Bastian Köcher e6f37cb7cf Update everything to latest master (#247) 2020-11-25 15:45:49 +01:00
Bastian Köcher 35c2609b8b Update to latest master (#246) 2020-11-23 19:09:25 +01:00
Bastian Köcher e5b4e8cae7 Wait for relay chain block import before validatiing a block announcement (#227)
* Start with something

* Whatever

* Update

* MOARE

* Make cumulus-network compile and tests work

* Update more and fixes

* More stuff

* More fixes

* Make collator build

* Make test almost work

* Remove contracts runtime

* More test work

* Make service compile

* Fix test-service

* Fix test client

* More fixes

* Fix collator test

* Fix network tests (again)

* Make everything compile, finally

* Fix tests

* Write test that should fail

* Add `WaitOnRelayChainBlock`

* Update git versions

* Make it all work

* Update logging

* Switch to provided method for pushing an extrinsic

* Try to debug CI

* Aaaa

* Only use Debug

* Updates

* Use native execution to hopefully make CI happy...
2020-11-23 00:21:02 +01:00
Bastian Köcher b11ec7ea9f Bring back log prefixing (#245) 2020-11-23 00:08:52 +01:00
Bastian Köcher 0a8e1fb9a1 Switch to polkadot master branch (#230)
* Switch to polkadot master branch

* Fix compilation
2020-11-09 13:05:00 +01:00
Bastian KöcherandRobert Habermeier 28338431fe Update Cumulus for Parachains V1 (#224)
* Start with something

* Whatever

* Update

* MOARE

* Make cumulus-network compile and tests work

* Update more and fixes

* More stuff

* More fixes

* Make collator build

* Make test almost work

* Remove contracts runtime

* More test work

* Make service compile

* Fix test-service

* Fix test client

* More fixes

* Fix collator test

* Fix network tests (again)

* Make everything compile, finally

* Fix tests

* Update to latest masters

* Remove ignore

* Switch to different branch in polkadot for now

* Update reference

* Make it compile with latest changes

* Update collator/src/lib.rs

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>

* Update to latest upstream

* Update to latest master

* Fix test

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
2020-11-08 22:18:09 +01:00
Bastian Köcher 1dfeca65e3 Update Polkadot reference and remove ValidationFunction to make usage (#202)
* Update Polkadot reference and remove `ValidationFunction` to make usage
with polkadot-js easier

* Update again
2020-08-14 19:30:10 +02:00
Bastian Köcher 3114ec5ece Fix export-genesis-state (#200)
Fix `--parachain-id` CLI argument for `export-genesis-state` and don't
print genesis state without newline.
2020-08-13 09:53:02 +02:00
Bastian Köcher 9446b3c7e7 Implement storage::next_key (#195) 2020-08-12 09:54:12 +02:00
Bastian Köcher 3b71c2a6e2 One node two runtimes (#191)
* One node two runtimes

This enables the rococo-collator to run the normal and the contracts runtime.

* Fix tests
2020-08-11 11:35:54 +02:00
Bastian Köcher 3ed6030110 Rework default values used by the RelayChainCli (#189)
This reworks the default values used by the RelayChainCli for stuff like
the listen port etc.

This also renames all the contracts related stuff to `cumulus-*` to
support `.cargo/config` overrides.
2020-08-10 09:53:07 +02:00
Bastian Köcher 2efe482c40 Add cumulus-service (#187)
* Add cumulus-service

Crate that abstracts the service of a parachain.

* Make finalization infallible
2020-08-08 08:07:33 +02:00
Bastian Köcher 8fae39d331 Update to integrate network fix from Substrate (#184) 2020-08-06 22:05:45 +02:00
Bastian Köcher dd7c741b53 Announce block after it is being enacted as new best block (#182) 2020-08-06 20:37:36 +02:00
23c1954c74 Add parachains for rococo (#144)
* Add parachains for rococo

* Fix chain specs

* Update to revert log rotation

* Support selecting the chain in `export-genesis-state`

* Add subcommand for exporting the genesis wasm of a Parachain

* Update stuff

* Fix `export-genesis-wasm`

* Update the polkadot ref

* Add bootNodes address

* Add bootNodes address - track

* Add bootNodes address - trick

* Fix incorrect peer id (trick)

* Fixes https://github.com/paritytech/cumulus/issues/157

* Update chainspecs

* Update specs again

* Set correct sudo account

* Update properties

* Update readme

* Update `Cargo.lock`

* Switch to rococo-branch

Co-authored-by: Evaldo <contato@evaldofelipe.com>
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
2020-08-04 17:33:20 +02:00
Bastian Köcher f5fbe3c195 Fix block announcement validation (#171)
* Fix block announce

* Fix compilation
2020-08-04 15:19:36 +02:00
Bastian Köcher c5f59ed83d Try to workaround the invalid compilation (#159)
There is probably some bug in rustc which result in an invalid
compilation when using an `expect` at the given position. I'm still not
sure why this is happening, but this fix should fix it for now.
2020-07-27 10:28:05 +02:00
Bastian Köcher 93e0ae472b Switch to StorageProof (#160) 2020-07-27 10:22:58 +02:00
Bastian Köcher e97d49170b Fix storage_append (#158) 2020-07-26 21:22:35 +02:00
Bastian Köcher 2c7817eb7f Harden storage against re-entry (#156) 2020-07-25 23:34:52 +02:00
Bastian Köcher e40bef8641 Update Substrate & Polkadot (#141) 2020-07-09 15:28:45 +02:00
Bastian KöcherandCecile Tonglet fa0a3c1f42 Upgrade Polkadot & Substrate (#139)
* Upgrade Polkadot & Substrate

* Update test/parachain/src/command.rs

Co-authored-by: Cecile Tonglet <cecile@parity.io>

Co-authored-by: Cecile Tonglet <cecile@parity.io>
2020-07-09 14:33:00 +02:00
Bastian Köcher 6ca066c893 Fix multi collator setup (#133)
* Start

* Fix compilation

* Fix chainspec

* Don't set best 2 times for the same block

* Check the status of a block before building on it

* Check that the block exists before setting it as the new best

* Reorder code

* Fork choice depends on sync status

* Switch branch again
2020-07-02 12:50:04 +02:00
Bastian Köcher 30ad930159 Update to latest Substrate & Polkadot (#131)
* Switch to latest Substrate & Polkadot

* Update again
2020-07-01 10:38:26 +02:00
Bastian Köcher 95ffb06f77 Take storage root from parent header (#123) 2020-06-19 13:15:56 +02:00
Bastian Köcher c9aaddf667 Implement basic upward & downward messages (#118)
* Start by replacing branch names and set `DownwardMessage`

* Add the upward-message crate

* Add Kusama & Polkadot

* More work on getting the upward messages working

* Fix build

* Begin to integrate it into the test Parachain

* Update

* Make everything compile again

* Switch to westend and print parachain account on startup

* Use MultiSignature etc

* Fix validate block

* Some downward messages work

* Update git reference

* More downward messages integration

* Update test runtime for downward messages

* Enable downward message handler and withdraw send tokens

* Add some docs

* Begin to implement simple XCMP

* More work

* Fixes and make parachain id configurable

* Make parachain ID be part of the genesis

* Finishing the XCMP message demo

* Update and fixes tests

* Update branch
2020-06-18 12:10:20 +02:00
Bastian KöcherandCecile Tonglet 0326d049c5 Update to latest Substrate & Polkadot (#107)
* Update to latest Substrate & Polkadot

* Replace --unsafe-rpc-export with --unsafe-rpc-external

* Add --rpc-methods=Unsafe

Documented in substrate 24486f52929e9e518eeccbc6ad6da70e9e5bdf8a

* typos

* more typo

* fixed rpc expose

* Disable the integration test

Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
2020-06-05 16:57:02 +02:00
Bastian Köcher d0507f4e17 Put cumulus-parachain-upgrade into the test parachain (#98)
This ensures that the crate compiles for `no_std`. Besides this, there
are some fixes to the crate code itself.
2020-05-15 16:10:22 +02:00
Bastian Köcher 5f008af15f Update Substrate & Polkadot (#84) 2020-04-29 14:23:18 +02:00
Bastian Köcher 9f9b3fb4c6 Don't leak std feature to WASM (#81) 2020-04-21 10:34:41 +02:00
Bastian KöcherandJoshy Orndorff 41e5f0dcfd Introduce message broker for receiving and sending relay chain messages (#80)
* Start message broker implementation

* Finish first stub implementation

* Add features

* Fix attribute

* Update primitives/src/lib.rs

Co-Authored-By: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>

Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
2020-04-20 16:22:05 +02:00
Bastian Köcher d4562c3a48 Update to latest Polkadot & Substrate (#75)
* Start fixing compilation errors

* Switch to git version of `WasmBuilder`

* Fix compilation

* More updates

* Adapt to latest Substrate/Polkadot changes
2020-04-06 21:55:32 +02:00
f54a6e8b4d Adds some highlevel docs for Cumulus (#54)
* Adds some highlevel docs for Cumulus

* Apply suggestions from code review

Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-Authored-By: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
Co-Authored-By: Nikolay Volf <nikvolf@gmail.com>

* Update docs/overview.md

Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>

* Update docs/overview.md

Co-Authored-By: Robert Habermeier <rphmeier@gmail.com>

* Add sentence

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
Co-authored-by: Nikolay Volf <nikvolf@gmail.com>
Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
2020-03-13 14:28:17 +01:00
Bastian Köcher ad8b70a8e4 Update Polkadot/Substrate (#68)
* Update Polkadot/Substrate

* Update branch
2020-02-24 21:52:49 +01:00
Bastian Köcher 669ea4864f Update README.md (#66) 2020-02-20 09:23:02 +01:00
Bastian Köcher e81bbaaefa Remove unwrap_trie_error and replace with expect (#64) 2020-02-18 12:25:11 +01:00
Bastian Köcher 082bdd74fc Update README to fix the startup (#61)
* Update README to fix the startup

* Add missing `=`

* Apply suggestions from code review
2020-02-14 22:03:11 +01:00
Bastian Köcher 7b3ae9da18 Update Polkadot chain-spec and switch to new wasm builder (#60) 2020-02-14 11:44:27 +01:00
Bastian Köcher 5f60c91476 Update chainspec to make the test parachain work again (#47) 2020-01-22 11:29:57 +01:00
Bastian Köcher f27a7debad Fix missing keystore config in test collator (#46) 2020-01-21 13:44:56 +01:00
Bastian Köcher 6dc3a76293 Update the README (#45) 2020-01-20 13:13:36 +01:00
Bastian Köcher 73bcef09ab Update Substrate & Polkadot (#41) 2020-01-16 17:26:49 +01:00
Bastian Köcher 9f7d5c1ea4 Merge pull request #39 from paritytech/bkchr-safety-violation
Don't finalize the same block multiple times
2020-01-16 08:43:53 +01:00
Bastian Köcher 79f91892f9 Merge pull request #33 from paritytech/bkchr-make-it-work-again
Make everything compile and fix tests
2020-01-15 12:22:37 +01:00
Bastian Köcher 7fa1d0e5ae Merge pull request #32 from paritytech/CI_optimizations
CI optimizations
2019-12-08 14:31:46 +01:00
Bastian Köcher 1418b842aa Merge pull request #29 from paritytech/joshy-clarify-instructions
Clarify instructions for registering a parachain.
2019-11-30 11:37:57 +01:00
Bastian Köcher 1def0811b8 Merge pull request #17 from paritytech/gui-candidate-justification
implementation of BlockAnnounceValidator
2019-11-06 09:49:58 +01:00
Bastian Köcher 37818f3bc1 Merge pull request #22 from paritytech/bkchr-test-parachain
Add test parachain
2019-11-06 09:15:12 +01:00
Bastian Köcher 77010dced0 Merge pull request #21 from paritytech/retry_on_gitlab_system_failures
retry on gitlab system failures
2019-10-31 09:26:46 +01:00
Bastian Köcher ce66294def Update .gitlab-ci.yml 2019-10-31 09:25:50 +01:00
Bastian Köcher 7a90954d21 Merge pull request #11 from paritytech/bkchr-collator
Implement Collator
2019-10-08 09:53:16 +02:00
Bastian Köcher 5131f3aaa1 Merge pull request #14 from paritytech/create_ci
a simple CI for the start
2019-10-01 10:01:11 +02:00
Bastian Köcher 1f25902e42 Merge pull request #13 from paritytech/stas-gitignore-common-ide
Add common ignored files
2019-07-11 23:17:51 +02:00
Bastian Köcher 8e54701482 Merge pull request #12 from paritytech/bkchr-validate_block_2
Switch to `parachain::ValidationParams`
2019-06-21 15:39:48 +02:00
Bastian Köcher 2bc098baaf Merge pull request #10 from paritytech/bkchr-update-to-latest-substrate
Update to latest Substrate + Polkadot
2019-06-06 14:00:11 +02:00
Bastian Köcher 57b51ff755 Merge pull request #9 from paritytech/stas-6-validate-block-parent-hash
Pass parent hash to the validate_block function
2019-05-07 08:33:39 +02:00