Commit Graph

295 Commits

Author SHA1 Message Date
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
Robert Habermeier e008813f8b Allow many attestation instances to live at once in network (#46)
* multiple consensus sessions in network

* tests compile, add a test for RecentSessionKeys

* track recently received session keys from validators

* add a test for desired key-sending behavior
2018-11-28 15:14:06 +01:00
Robert Habermeier 7b46856159 Blocks carry full attestations for candidates (#42)
* statement table yields fully-attested candidates

* attestation types in polkadot-primitives

* propose block with fully-attested candidates in consensus

* some signature-checking logic in the runtime

* fix runtime compilation

* ensure attestations are full and without duplicate when checking

* fix consensus-service compilation

* add some tests

* use bitvec from crates.io now that it's published

* sign statements based on primitive statement's encoding

* remove some serialize bounds

* Fix error message with duplicate availability attestations

Co-Authored-By: rphmeier <rphmeier@gmail.com>
2018-11-26 17:30:04 +01:00
Gav Wood c31f8168df Make work with Substrate master (#36)
* Fix up wasm runtime build

* Fixes for runtime

* Fix.

* More fixes

* Runtime builds on native.

* Native and wasm both build without warnings.

* Fix runtime tests.

* Merge #20

* Final fix for native runtime.

* Compile polkadot wo consensus

* Reverted changes to polkadot-consensus

* reintroduce minimal subset of consensus

* reintroduce checked_block to runtime for std

* polkadot_consensus compiles without most of the code

* remove checked_block again and do more checks in parachains for runtime

* uncomment proposer

* remove offline tracker

* extract out parachain-attestation logic from proposal directly

* reintroduce transaction_pool

* write some custom aura verification logic for the block verifier

* use transaction pool in more generic way

* service compiles again

* polkadot-network and tests pass

* remove unused session_key function from router

* everything but CLI compiles due to service hell

* Fixes compilation of `polkadot_cli`

* everything compiles

* update adder wasm
2018-11-25 11:25:36 +01:00
gabriel klawitter e68cd9df10 Gitlab ci sample (#31)
* add test build jobs for gitlab ci

* add web to only tests condition

* cleanup

* remove variables
2018-10-01 21:30:32 +01:00
Gav Wood 84748fccd3 Bring runtime API up to date with Substrate master (#17)
* Fixups for 646

* Fixes for API

* For for #678

* Fix runtime

* Update and build

* Tests build

* Fix tests
2018-09-12 19:36:33 +02:00
Chevdor 17ede5b8a0 Bring to Polkadot the doc removed from the Substrate repo (#16) 2018-09-12 19:09:55 +02:00
Gav Wood 1ca73d11bd Merge pull request #15 from chevdor/will-editorconfig
Add same .editorconfig than Substrate
2018-09-12 19:06:04 +02:00
Gav Wood 518997c20c Merge pull request #14 from chevdor/will-docker
Add docker resources
2018-09-12 19:05:55 +02:00