Commit Graph

303 Commits

Author SHA1 Message Date
Andrew Jones 7a619ea222 Rename polkadot-consensus -> polkadot-validation (#151)
* Initial rename of consensus -> validation

* Rename crate imports

* network: rename consensus to validation

* network: rename consensus in comments and logs

* Grumbles

* Rename tests consensus -> validation
2019-02-21 14:00:06 -05:00
thiolliere 62cf571336 update substrate (#142) 2019-02-20 11:49:49 -05:00
Milen Radkov f058cf8625 Updating the Docker instructions for latest 0.3.14 polkadot Alexander (#135)
* update version to 0.3.14 and add --chain alex

- update to latest docker polkadot version - 0.3.14
- add the `--chain alex` argument which is necessary for the Alexander testnet

* add custom node name

add custom node name
2019-02-20 12:36:20 +01:00
Jack Westmore 9f77d614d2 Changed README.adoc including clang in deps (#145) 2019-02-20 12:34:30 +01:00
Robert Habermeier 4ef53912e6 define Id type in polkadot-parachain and depend on that in primitives. (#144)
* define Id type in polkadot-parachain and depend on that in primitives.

* fix tests
2019-02-20 12:33:52 +01:00
Robert Habermeier 84d8629de6 some erasure-coding tweaks (#143) 2019-02-19 17:18:29 -03:00
Robert Habermeier f8af277006 Interchain message-passing (#117)
* compute ingress and routing in polkadot runtime

* extract parent candidates from block when beginning consensus

* fetch incoming messages when validating

* fix consensus tests

* parachain wasm execution uses messages

* update parachain tests to check if messages are executed

* abstract out network service to make room for network tests

* skeleton for incoming data fetch

* collate ingress from consensus-gossip

* keep track of validated candidates in the shared-table

* add some shared_table tests for new behavior

* broadcast egress messages on gossip

* test compute_ingress

* move network tests to module folder

* dummy network for consensus-network tests

* make consensus network generic over executor

* test egress broadcast and ingress fetch

* fix test compilation

* address some grumbles

* address grumbles and fix parachain shuffle

* remove broadcast parameter from consensus network trait
2019-02-19 13:59:29 -03:00
Robert Habermeier da409f6c9e update to latest substrate (#141) 2019-02-18 17:20:35 -03:00
Gav Wood 91c7abd7dc Update to latest master (#137) 2019-02-13 15:36:54 +01:00
Gregory Terzian cdb2faf155 update to latest substrate - protocol API update (#130)
* update to latest substrate - protocol API update

* nits

* remove the wait on a future

* use std mpsc for oneshot
2019-02-09 17:52:57 +01:00
Benjamin Kampmann 9fb22ce28d Cleaning up dependencies (#125)
* cargo update
* Update to latest ctrlc crate
* Update vergen
* Update to latest pretty_assertions
* Update log
* Update parking_lot
* Update hex-rustc
2019-02-08 18:25:15 +01:00
Bastian Köcher 36034e79a2 Update to latest substrate (#120) 2019-02-04 18:58:03 -03:00
Gav Wood 82e866be42 Use new externs for eth crypto (#114)
* Add claims.

* Failing build

* Updatee to latest substrate, fix tests

* Remove unneeded

* Introduce tests with real work sig

* Use right 64 bytes of pubkey to get eth addr

* Fix for eth sig

* Fix build

* Fix wasm

* Use new externs for eth crypto.

* Bump spec version

* New runtime
2019-01-29 14:06:40 +01:00
thiolliere c363077404 set export-table link arg (#115) 2019-01-28 15:43:14 +01:00
Bastian Köcher 2b0dbd2d77 Updates substrate to latest master (#107)
* Updates substrate to latest master

* Use slot_duration and not slot

* Update to latest substrate master again to have latest CLI

* Rename iherent indentifier

* Update after master merge
2019-01-27 15:21:25 +01:00
Benjamin Wasty 1514ee9192 readme: fix broken links (#113) 2019-01-27 14:52:59 +01:00
Gav Wood c5bb21ab3c Claim yer sale DOTs (#97)
* Add claims.

* Failing build

* Updatee to latest substrate, fix tests

* Remove unneeded

* Introduce tests with real work sig

* Use right 64 bytes of pubkey to get eth addr

* Fix for eth sig

* Fix build

* Fix wasm
2019-01-25 08:43:05 +00:00
Robert Habermeier a05d422a55 Initial erasure-coding of availability data (#56)
* erasure-coding block data

* adjust error handling

* merkleize chunks and yield branches for each

* construction and proving of merkle branches

* port over to new GF(2^16) impl

* some tests for wrapped_shard

* handle extra byte from GF(2^16) better

* point to github dependency

* add issue link

* point to master for reed-solomon-erasure

* add missing license header
2019-01-24 12:31:22 -03:00
Phil c25674a18d Update README.adoc (#108)
added newer rust version required, and instructions for updating Rust using `rustup update`
2019-01-24 12:18:50 -03:00
Sergei Pepyakin 31a3a2e4df Add comment about guarantees (#105) 2019-01-23 14:21:54 +01:00
André Silva 1bd597a52e cli: fix node shutdown (#100) 2019-01-22 15:53:13 -03:00
Robert Habermeier fe6351ca65 Parachain execution yields messages to send (#96)
* read head-data directly out of WASM memory

* implement ext_post_message for parachain WASM

* further refactoring of the parachain module

* add externalities error type

* accumulate posted messages when validating parachain candidate

* define Extrinsic type in primitives

* availability-store: store extrinsic data

* compute extrinsic and check against candidate

* add some egress queue tests

* grumbles & substrate update

* ensure everything builds
2019-01-22 12:32:32 +01:00
Robert Habermeier 152bb30889 limit number of transactions when building blocks (#91) 2019-01-18 16:31:39 +01:00
Gav Wood ccb79c05ed Update to latest Substrate (#90)
* Update to latest Substrate

* Fix tests

* Update src/main.rs

Co-Authored-By: gavofyork <github@gavwood.com>
2019-01-18 16:30:41 +01:00
Gav Wood fc7cf99987 Merge branch 'master' of github.com:paritytech/polkadot 2019-01-18 12:57:25 +01:00
Gav Wood d0c92db92e Runtime. 2019-01-18 12:52:59 +01:00
Robert Habermeier 32cef97681 Remove availability statement (#79)
* remove availability vote type from statement-table

* expunge availability statement from consensus module

* expunge availability from duty roster

* rename StatementProducer to ParachainWork

* fix runtime tests and remove availability statement variant

* update wasm
2019-01-18 11:45:05 +01:00
Robert Habermeier 7ac1fe9c01 default to alexander testnet (#83)
* default to alexander testnet

* use empty pattern-match
2019-01-17 09:27:46 -03:00
André Silva bf63c5f9b8 service: use grandpa block import for locally sealed aura blocks (#85) 2019-01-16 14:27:16 -03:00
Gav Wood 8f745fd217 Fixes for substrate#1404 (#76)
* Fixes for substrate#1404

* Updates for latest Substrate

* Update lock file

* Update runtime.
2019-01-16 17:50:39 +01:00
Robert Habermeier 75bce2efc6 update to latest substrate (#84) 2019-01-15 18:40:33 -03:00
Benjamin Kampmann 819a90ce67 Update log message for propsing blocks (#77)
in accordance with https://github.com/paritytech/substrate/pull/1397
2019-01-14 21:00:03 -03:00
Björn Wagner c05e05aa49 Add link to testnet disclaimer 2019-01-09 16:04:07 +01:00
Gav Wood 38eae21a0e Remove invalid value from chainspec (#68) 2019-01-09 12:12:24 +01:00
Luke Schoen 7b2e403dcb docs: Fix typo in README (#69)
Typo as identified here https://github.com/paritytech/polkadot/pull/64#discussion_r245995562
2019-01-08 22:56:49 +01:00
Luke Schoen 8498f8dd1e docs: Update Readme to PoC-3 (#64)
* docs: Update Readme for PoC-3

* docs: Fix formatting and update Docker section

* docs: Fix formatting. Start trying to make consistent with Substrate repo

* docs: Move Two-Node example into Hack on Substrate
2019-01-08 14:09:29 +01:00
Gav Wood f66b5115fd Update to latest substrate (#66)
* Update to latest substrate

* Fix as much as I can

* Store key out of Environment::init

* Fix service compile
2019-01-08 14:08:31 +01:00
Robert Habermeier b2db7857a7 ensure all spawned futures are exit-guarded (#59) 2018-12-29 18:05:45 +01:00
Gav Wood 5e04c22522 Alex spec 2018-12-21 14:47:19 +01:00
Gav Wood 0df1421b1a New chain spec 2018-12-21 14:34:49 +01:00
Gav Wood 3b1ffa2e95 PoC-3 final? 2018-12-21 14:14:41 +01:00
Gav Wood a7cd223104 Introduce sudo module 2018-12-21 12:54:16 +01:00
Gav Wood 3f70ee8ff9 Upgrade key 2018-12-20 20:06:47 +01:00
Gav Wood e8c5760180 Update lock and runtime 2018-12-20 19:15:04 +01:00
Gav Wood 532fea98de Update lock file 2018-12-20 19:11:18 +01:00
Robert Habermeier ccbae389c2 Update to latest substrate (#57)
* update to latest substrate

* update WASM and runtime

* Rename Id to ParaId in decl_{module,storage} (exported metadata type) (#58)

* Rename Id to ParaId in decla_module (exported type)

* AccountParaId -> AccountId
2018-12-20 13:43:48 +01:00
Robert Habermeier 014215181b wait less time for parachain candidates before releasing a block (#55) 2018-12-14 16:37:15 +01:00
Adrian Brink 81bc154cb5 Fix build of adder wasm (#54) 2018-12-14 16:09:58 +01:00
Robert Habermeier 19095168ce Authorship works again (#50)
* provide through inherent-data when authoring

* remove unneeded codec round-trip in proposer

* refactor polkadot-consensus service architecture

* integrate block authorship into polkadot service

* remove unused extern substrate-network crate in service

* write wrapper for unifying errors in consensus proposer

* extend wrapper further

* switch temporarily to macro-changing branch

* runtime compiles

* implement `inherent_extrinsics` for runtime

* block authorship works

* add GRANDPA to polkadot runtime

* get everything compiling

* use substrate master branch again

* remove some unneeded params

* update WASM

* parse only extrinsics when pruning availability store

* update recent deps

* runtime almost compiles

* need to expose trait type in build : I had to put phantomdata manually.

* finish updating authorship to latest GRANDPA and Aura

* fix tests

* update wasm
2018-12-11 17:55:04 +01:00
gabriel klawitter f17258c14d polkadot builds (gitlab), releases (docker) and deployment (kubernetes) (#48)
* ci: add Dockerfile and its build

* make docker version tag

* polkadot with static ip address in nodeport stateful set on kubernetes

* use helm for templating

* enable rbac for polkadot
2018-12-07 12:18:52 +01:00