Commit Graph

259 Commits

Author SHA1 Message Date
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
chevdor ec946fe893 Add same .editorconfig than Substrate 2018-09-10 15:13:30 +02:00
chevdor 64a2a97de5 Add docker resources 2018-09-10 15:07:55 +02:00
Gav Wood 335b850e0c Merge pull request #2 from paritytech/a-wasm-authoring
Authoring with WASM runtime
2018-09-01 12:04:35 +02:00
arkpar ab5e870f1c Merge branch 'master' of github.com:paritytech/polkadot into a-wasm-authoring 2018-08-31 18:06:00 +02:00
Gav Wood 55dec503d4 Merge pull request #11 from paritytech/gav-compat-629
Upgrade to Substrate#629
2018-08-31 14:42:46 +02:00
Arkadiy Paronyan 192907811b BFT delay adjustments (#593)
* force delay only on votes

* set proposal timestamp forward

* Adjusted timeout formula
2018-08-31 13:26:51 +02:00
Sergey Pepyakin f19966de8f Install llvm-tools. 2018-08-31 14:10:25 +03:00
Gav 91b1a8960e Ugh. Confused. 2018-08-30 18:59:49 +02:00
Gav 07c72ea8e7 Rejig serialisation 2018-08-30 18:57:59 +02:00
Gav 268b3ea949 Fix 2018-08-30 18:25:12 +02:00
Gav d4e761ae7d No need for specific branch 2018-08-30 13:53:04 +02:00
Gav Wood a325902e57 Merge branch 'master' into a-wasm-authoring 2018-08-30 13:48:16 +02:00
Gav 4f210bbad6 Fix tests 2018-08-30 13:42:59 +02:00
Gav 1b0861a1e3 Fix build 2018-08-30 13:40:05 +02:00
Gav 57e2257a54 Merge remote-tracking branch 'origin/master' into gav-compat-629 2018-08-30 12:42:59 +02:00
Gav Wood aa6340c2fd Merge pull request #7 from paritytech/rh-testnet-fp
Forward-port of various testnet fixes
2018-08-30 12:41:44 +02:00
Gav Wood 96c269ad08 Merge branch 'master' into rh-testnet-fp 2018-08-30 12:37:24 +02:00
Gav 74b4bc0911 Update to latest substrate 2018-08-30 11:17:48 +02:00
Gav 5138feb801 Fix up polkadot runtime 2018-08-30 09:57:09 +02:00
Gav 7aff0dc99b Merge branch 'gav-compat-624' into gav-compat-629 2018-08-29 23:57:53 +02:00
Gav 11b9d9495a Merge branch 'master' into gav-compat-624 2018-08-29 23:57:35 +02:00
Gav e322657597 Initial stuff 2018-08-29 23:56:04 +02:00
Arkadiy Paronyan ee9779abd5 Merge pull request #9 from gguoss/arrange
Delete not use dependecies in polkadot/cli
2018-08-29 13:36:02 +02:00
Arkadiy Paronyan 2a27dc1a69 Merge pull request #6 from paritytech/a-ext-pool
More generic extrinsic pool
2018-08-29 12:33:45 +02:00
Gav 79932f1975 Compat fix for substrate#624 2018-08-29 12:30:04 +02:00
gguoss 0b2ef109c5 Delete not use dependecies in polkadot/cli 2018-08-28 10:50:32 +08:00
Robert Habermeier 624c2ca0dc Merge remote-tracking branch 'substrate-disk/polkadot-testnet-fixes-fp' 2018-08-23 13:57:43 +02:00
Robert Habermeier 430e3920e5 Rollup of various testnet-related fixes.
fix a deadlock when spawning agreement as non-authority

fix test compilation for BFT

more accurate consensus superseding logic

mild revision to `can_build_on` logic

block evaluation without redundant initialisation

refactor BFT delay: update rhododendron and poll after delaying. (#589)

dropping BFT future before poll doesn't lead to service deadlock
2018-08-22 18:14:58 +02:00
arkpar 6a491f10a2 Bumped substrate 2018-08-21 17:29:47 +02:00
arkpar d10733c3fe More generic extrinsic pool 2018-08-20 17:21:33 +02:00
Arkadiy Paronyan f993836b72 Merge pull request #3 from paritytech/rh-continue-rounds
fix interval logic
2018-08-20 17:18:19 +02:00
arkpar 9f64bb78a3 Bumped substrate 2018-08-20 17:17:54 +02:00
Arkadiy Paronyan 6d3aa8b16e Merge pull request #4 from miguelmota/bugfixes/typos
typo fix
2018-08-20 17:09:11 +02:00
Miguel Mota a7a5b5633b typo fix 2018-08-17 15:38:14 -07:00
Robert Habermeier f1cc82ae53 Continue from next round when re-building on same block (#582)
* keep rounds consistent when encountering bad block

* fix interval logic

* Fixed indentation
2018-08-17 22:13:01 +02:00
arkpar d6ddbc8bb5 Paranoid mode 2018-08-17 14:09:26 +02:00