Commit Graph

405 Commits

Author SHA1 Message Date
Bastian Köcher da39da8a04 Fix service setup for non-validator nodes (#378)
* Fix service setup for non-validator nodes

* Apply suggestions
2019-08-16 20:10:58 +02:00
Gavin Wood 2c6409a942 Update to latest Substrate (#377)
* Update to latest substrate

* Propagate substrate#3225

* Fixes

* Build

* Fix
2019-08-16 17:56:56 +02:00
Federico Gimenez 1054a531b5 non-root user for running node in Dockerfile (#369) 2019-08-16 13:42:37 +02:00
Shawn Tabrizi 481ded5509 Update Claims EcdsaSignature Codec (#373)
* Update to use [u8; 65] for EcdsaSignature

* Fix warning
2019-08-16 13:40:52 +02:00
cheme 873b974566 Config genesis json with children. (#372) 2019-08-16 13:39:15 +02:00
Tomasz Drwięga 46dd1d71d8 Add provides tag to claims transactions. (#375) 2019-08-16 12:12:53 +02:00
Pierre Krieger f3d8024799 Replace parse_and_execute with parse_and_prepare (#368) 2019-08-15 16:56:31 +02:00
Gavin Wood b4bb9c771c Claims module uses a hex representation of the address not raw (#371)
* Claims module uses a hex representation of the address not raw

* Fix test
2019-08-15 16:56:12 +02:00
thiolliere 2e4ce7f558 Reward validity statements from validators (#356)
* impl reward

* typo

* more clean RewardAttestation trait

* reward by index

* address grumble
2019-08-14 14:41:20 +02:00
Gavin Wood 7bd46ffbcb Prepare stuff for Kusama (i.e. disable most things) (#362)
* Prepare stuff for Kusama (i.e. disable most things)

* Fix service (hopefully)

* Remove curated grandpa.

* Block unwanted transactions a cleaner way.

* Add feature for restricting tx types

* Cleanups

* Make blocktime 1/10th of normal

* Fix ordering in construct_runtime

* Restore original timing

* Revert name change
2019-08-13 20:36:27 +02:00
Kian Paimani 10fc88f6b1 Update to latest Substrate master. (#353)
* Integrate srml/im-online

* Fix all build errors with old aura.

* Fix most of the build errors.

* Builds and tests seem to pass (I will not trust this commit yet)

* Apply suggestions from code review

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

* Kill some warnings.

* fix panics on 0 validators

* Fix dev chain.

* Fix author stuff

* fix im online integration.

* Some tweaks

* Introduce app-crypto

* Initial build work

* codec update / tweaks

* patch polkadot-erasure-coding input

* More fixes for new crypto

* More fixes

* Update parachains module

* evamp parachain crypto

* More crypto work.

* Chain spec and service.

* ChainSpec stuff

* Last bits for a clean build

* Tweak coment

* adapt polkadot-validation to the new keystore

* polkadot-network compiles, but tests don't

* Integrate the new parachain validation stuff

* delete message_routing file

* make polkadot-network tests compile and pass

* runtime tests compile and pass

* update substrate ref

* service compiles

* all tests pass

* Add TODO, change branch back to polkadot-master

* Lock file

* TODOs done

* Issue number

* Remove old tODO

* Remove commented code
2019-08-12 15:48:29 +02:00
Gavin Wood 9b6e630816 Integrate the claims module (#355)
* Integrate the claims.

* Remove accidetnal code.

* Update runtime/src/lib.rs

Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>

* Add Config.

* Introduce claims to config

* Expose claims module signing Prefix (#358)

* Update parking_lot, bette trait args
2019-08-07 23:49:32 +02:00
Robert Habermeier 4d19de4bd9 Track received attestations from recent blocks (#337)
* record attestations in storage ringbuffer

* remove some reliance on Aura

* fix up test configuration

* extract attestations stuff out to its own module

* add dummy inherent

* use double_map

* fix a couple more compilation errors
2019-08-06 23:08:38 +02:00
Robert Habermeier 8c4d882407 sanity check on validity-votes length (#354) 2019-08-06 15:37:38 +02:00
Pierre Krieger 14cf3142d3 Remove tokio dependency from networking and service (#351)
* Remove tokio dependency from networking

* Also remove tokio from service

* Finally fix tests
2019-08-06 11:36:06 +02:00
Pierre Krieger 56845f74b5 Make polkadot-parachain compile for WASM (#350) 2019-08-06 01:07:24 +02:00
Stanislav Tkach c660c31937 Pass indices in serialized form (#318)
* Pass indices in serialized form

* Fix indentation and remove panic

* Fix tests and other code

* Remove unique voters tracking

* Restore validator group check

* Fix lock file

* Add test

* Add attestation sorting

* Add validation to the check_candidate function

* Update codec version one more time

* Remove patch versions
2019-08-05 22:44:05 +02:00
Bastian Köcher 4d5db52ca0 Update to latest Substrate (#340)
* Update Substrate

* Update Substrate again

* Integrate weight/fee stuff.

* Add new files.
2019-07-26 12:19:41 +02:00
Stefanie Doll 86e5b3d0bb Port dev account balance changes from Substrate PR 2883 to Polkadot (#339) 2019-07-25 10:11:45 +02:00
Yuanchao Sun 2af72cef83 Fix fetch_candidates (#330)
fix the following error in the log:
Could not extract candidates from block body of imported block ...
2019-07-23 11:11:50 +02:00
Arkadiy Paronyan f1fdb0cb83 Parachain validation moved to external process (#325)
* Improved execution & tests

* Style

* Made CLI arg const

* Moved Upwards message

* CLI subcommand for validation worker

* Build halting parachain

* Build halting parachain

* Made stuff private

* Reorganized parachain tests

* Comment

* Whitespace

* Apply suggestions from code review

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

* Fixed call data size check and introduced an enum

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
2019-07-23 11:09:30 +02:00
Jualy 157cd9a217 Update Dockerfile (#332)
/data path should link to /root/.local/share/polkadot
2019-07-22 10:42:59 +02:00
Jualy 0815a25edf Add command example for rpc port 9933 (#333)
Connect rpc port 9933 failed if polkadot startup without --rpc-external
2019-07-21 11:51:12 +02:00
Shawn Tabrizi 2c66adfb0a Update to latest Substrate (7688cbc) (#329)
* Initial fixes

* Clean up Timestamp

* Patch futures

* Typo

* Fix compilation of tests

* Fix parachains tests

* Update runtime/src/parachains.rs

Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>

* Update runtime/src/parachains.rs

Co-Authored-By: Gavin Wood <github@gavwood.com>
2019-07-19 14:15:14 +08:00
Shawn Tabrizi 1ded51d77b Update runtime to use Root origin (#327)
* Update runtime to use Origin

Needed for: https://github.com/paritytech/substrate/pull/3045

When we merge to latest Substrate

* Fix formatting
2019-07-16 07:42:13 +02:00
Arsen A. Gutsal 0ea2e1cb8c Dockerfile fixed. (#308)
* Dockerfile fixed.

* docker: use init.sh to setup rust env
2019-07-12 13:01:49 +01:00
Bastian Köcher d814150d07 Fix chainspec and runtime (#326) 2019-07-11 15:57:50 +01:00
Bastian Köcher 5dfc0aab05 Poll the service to drive the whole node (#321) 2019-07-10 12:16:35 +02:00
Stanislav Tkach 158ff12710 Remove duplicated '.idea' entry from the gitignore (#322) 2019-07-10 11:14:58 +01:00
Bastian Köcher c0b065837e Update to latest Substrate master (#320)
* Make `collator::Network` require `Send + Sync` to make it work

* Update packages

* Update to latest Substrate

* Make it compile and make tests work

* Use `polkadot-master`

* Fix CI

* Remove `build.sh` from readmes

* Delete old stuff

* Bring one back
2019-07-09 15:33:49 +01:00
Bastian Köcher d99f721540 Make collator::Network require Send + Sync to make it work (#316) 2019-07-05 15:37:05 +02:00
Bastian Köcher f1c8f5e36d Make communication_for exit when we end a round (#313)
* Make `communication_for` exit when we end a round

* Fix compilation
2019-07-05 11:42:57 +02:00
Gavin Wood 29ee4e8f3a Update to Substrate master (#311)
* Best effort to bring up to date.

* Fix the executor stuff

* Update verisons.

* Finish fixing

* Final fixes and warnings.

* add some docs and bump Wasm versions

* Fix tests

* Fix final test
2019-07-04 17:15:59 +02:00
Shawn Tabrizi 6377974ed7 Add claims prefix to the claims trait (#309)
* Add claims prefix to the genesis configuration

* Claims module not included in runtime yet

So we don't need to set any genesis config yet

* Use Param rather than Storage
2019-07-03 01:23:01 +02:00
Black3HDF 28f91afa63 fix typos (#306) 2019-07-02 08:56:12 +02:00
Bastian Köcher b92dd81300 Introduce BuildParachainContext trait (#302)
* Introduce `BuildParachainContext` trait

* Change the structure and hide the actual network implementation behind a
trait

* Add functions to collator `Network` trait
2019-06-27 23:55:40 +02:00
Bastian Köcher 6eb3f92a8e ValidationNetwork expose more functionality (#301)
* Expose `collator_id_to_peer_id`

* `ValidationNetwork` expose `checked_statements`

* Style nit
2019-06-25 21:28:54 +02:00
Robert Habermeier 7a5b9bddf5 Charge fees for parachain execution (#293)
* burn parachain funds depending on candidate fees

* charge fees when executing parachain

* fix test compilation

* branch grumble addressed

* test that Balance >= usize
2019-06-25 21:09:54 +02:00
Bastian Köcher 9004fb3f97 Make polkadot-parachain call validate_block instead of validate (#297)
* Make `polkadot-parachain` call `validate_block` instead of `validate`

Also switch to rust 2018 in the crate

* Use `rstd`

* Make `load_params` a pointer
2019-06-25 21:08:56 +02:00
Bastian Köcher 23432bb043 Pass relay_parent hash to produce_candidate (#300)
* Pass `relay_parent` hash to `produce_candidate`

* Fixes compilation
2019-06-25 17:53:37 +02:00
Bastian Köcher 67ee212171 Store PeerIds in collator pool (#299) 2019-06-24 20:46:03 +02:00
Yuanchao Sun feb62bc52e Fix no pre-runtime digest error (#298) 2019-06-24 19:48:28 +02:00
Bastian Köcher 664dea075a Make validation::NetworkService strongly typed (#295)
By using a strongly typed network service, we make sure that we send and
receive the correct messages. Before there was a bug, a `SignedStatement`
was sent and a `GossipMessage` was decoded, but this could never work.
2019-06-24 11:43:07 +02:00
Bastian Köcher a016bac6ad Update to latest Substrate master + warning fixes (#292)
* Update to latest Substrate master + warning fixes

* Update runtime/src/lib.rs

Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>
2019-06-20 13:57:58 +02:00
Robert Habermeier 58ab4f6b9f Track and accumulate ingress roots in runtime (#287)
* track unrouted ingress in runtime

* test ingress routing

* fix compilation

* add space

Co-Authored-By: Gavin Wood <github@gavwood.com>
2019-06-17 14:38:03 +02:00
Robert Habermeier bc59254f41 allow asynchronous collation (#290)
* allow asynchronous collation

* remove unnecessary leading colons

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

* remove unneeded bound

* Fixes compilation
2019-06-17 08:35:01 +02:00
Black3HDF cab12b60c1 fix typos (#291) 2019-06-16 09:50:17 +02:00
Yuanchao Sun 62869f8a0a Update validation.rs (#289)
Fix typo
2019-06-13 10:19:01 +02:00
Pierre Krieger a5b2c9ab34 Require --locked on CI for WASM runtime locks (#285)
* Require --locked on CI for WASM runtime locks

* Update runtime Cargo.lock

* Add quotes
2019-06-11 22:01:26 +02:00
Bastian Köcher 6473feb687 Update to latest substrate master (#284)
* Update substrate deps and fix runtime compilation

* Fix compilation

* Enable `std` feature
2019-06-06 15:15:25 +02:00