Commit Graph

27 Commits

Author SHA1 Message Date
Cecile Tonglet 3f3beea7f0 Don't validate a block announcement when syncing (#177) 2020-08-06 13:30:55 +02:00
Bastian Köcher 6f50d0928d 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 1f83a231c2 Fix block announcement validation (#171)
* Fix block announce

* Fix compilation
2020-08-04 15:19:36 +02:00
Cecile Tonglet f26dd45e78 Collate only if --validator is given (#161) 2020-07-29 20:49:31 +02:00
Bastian Köcher 03205eb601 Update Substrate & Polkadot (#141) 2020-07-09 15:28:45 +02:00
Bastian Köcher 82db23f2ed 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 6a6fec66fb Update to latest Substrate & Polkadot (#131)
* Switch to latest Substrate & Polkadot

* Update again
2020-07-01 10:38:26 +02:00
Bastian Köcher 62c22b88b9 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
Cecile Tonglet 1afdba7464 Reject blocks without justification which don't have the best number (#105)
* Initial commit

Forked at: 8f02e233da
Parent branch: origin/master

* Reject blocks without justification

* Revert "Reject blocks without justification"

This reverts commit ee60e12097939d4ccfe987a71db9a876319ae5ba.

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* CLEANUP

Forked at: 8f02e233da
Parent branch: origin/master

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* CLEANUP

Forked at: 8f02e233da
Parent branch: origin/master

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* WIP

Forked at: 8f02e233da
Parent branch: origin/master

* Move HeadData to primitives

* Update network/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update network/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* CLEANUP

Forked at: 8f02e233da
Parent branch: origin/master

* fix

* CLEANUP

Forked at: 8f02e233da
Parent branch: origin/master

* messages

* for the greater good

* Update primitives/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update network/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update network/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update network/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>
2020-06-03 14:15:52 +02:00
Cecile Tonglet 8f02e233da Ensure relay chain parent is the relay chain head (#103) 2020-05-27 14:43:45 +02:00
Cecile Tonglet adc88bf167 Use JustifiedBlockAnnounceValidator for parachain block announce validator (#96) 2020-05-19 17:56:31 +02:00
Cecile Tonglet 032595ddd0 Keep unpinned blocks for a while before announcing (#83)
* Initial commit

Forked at: 461b971ccc
Parent branch: origin/master

* Change substrate and polkadot branch to cecton-cumulus-branch

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* update .editorconfig

* should probably be --dev

* formatting

* Change substrate & polkadot branch to cecton-keep-unpinned-para-blocks

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* Update polkadot & substrate branches

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* Some fixes

* Updated polkadot

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* WIP

Forked at: 461b971ccc
Parent branch: origin/master

* Cargo.lock

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* Update substrate & polkadot branches

* Clean-up

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* Use JustifiedBlockAnnounceValidator

* debug

* Revert "debug"

This reverts commit 2404121b840984d6ffc1012ccec1e6a784fa236c.

* Revert "Use JustifiedBlockAnnounceValidator"

This reverts commit 33e2efef21a1553c294b2bc23fca8b08bf77be2b.

* Revert branch to cumulus-branch

* clean-up

* clean-up

* cleanup

* cleanup

* Update branches

* debug

* Cancel previous task when new one is created

* Remove stream-cancel

* Clean-up

* cleanup

* cleanup

* Fix merge issue

* Update polkadot_chainspec.json

* Update network/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update network/src/lib.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Use closure instead of NetworkService to announce_block

* doc

* WIP

Forked at: cd1eb3786d
Parent branch: origin/master

* Move disable announcement to its own function with doc

* Change substrate and polkadot branch to cumulus-master

Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-05-06 12:50:56 +02:00
Bastian Köcher cd7e06c643 Update Substrate & Polkadot (#84) 2020-04-29 14:23:18 +02:00
Bastian Köcher c0769c6ae6 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 461b971ccc 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
Bastian Köcher 41817628b7 Update Polkadot/Substrate (#68)
* Update Polkadot/Substrate

* Update branch
2020-02-24 21:52:49 +01:00
Cecile Tonglet e880fe43e9 Update polkadot & substrate (#55) 2020-02-10 18:01:59 +01:00
Cecile Tonglet 2941569e8a Update CLI (#53)
* Initial commit

Forked at: 0efd15c0c5
Parent branch: master

* Update substrate: more CLI improvement

* Update substrate and polkadot to cecton-cumulus-branch

* WIP

Forked at: 0efd15c0c5
Parent branch: master

* Update Cargo.lock

* WIP

Forked at: 0efd15c0c5
Parent branch: master

* WIP

Forked at: 0efd15c0c5
Parent branch: master

* Update Cargo.lock

* WIP

Forked at: 0efd15c0c5
Parent branch: master

* WIP

Forked at: 0efd15c0c5
Parent branch: master

* Test running node and interrupts

* WIP

Forked at: 0efd15c0c5
Parent branch: master

* Update Cargo.lock

* Update test/parachain/tests/running_the_node_and_interrupt.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-02-10 12:39:32 +01:00
Cecile Tonglet 7fb8b2fb47 Update substrate async api (#49)
* Update substrate: async API fix

* Fix to update polkadot and substrate

* Update substrate & polkadot to use cumulus-branch

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-02-01 16:28:33 +01:00
Bastian Köcher 1bcb147669 Make everything compile and fix tests 2020-01-14 22:23:16 +01:00
thiolliere 997b02d8e6 allow empty data 2019-10-31 15:31:42 +01:00
thiolliere 647d376a4f improve doc 2019-10-31 15:28:16 +01:00
thiolliere 6cf27d9e97 use gossip message directly 2019-10-31 15:22:14 +01:00
thiolliere 83d2425eaf copyright 2019-10-24 13:52:10 +02:00
thiolliere fb44a0e5e0 refactor 2019-10-24 13:47:06 +02:00
thiolliere 280c89f149 doc 2019-10-24 13:44:05 +02:00
thiolliere 05249cac55 code moved 2019-10-24 13:41:58 +02:00