Commit Graph

373 Commits

Author SHA1 Message Date
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
Andrew Jones bdc1502411 Remove dependency on error_chain (#277)
* Convert validation error

* Convert wasm_executor error

* Convert block evaluation error

* Convert collation errors and the compilation

* Remove error-chain dep from service

* Remove unused Result type

* Remove unused error variants

* Remove redundant intos

* Add missing comments

* Update validation/src/collation.rs

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

* Fix new error variant
2019-06-05 10:25:08 +02:00
gabriel klawitter 0634e90031 ci: fix indentation (#280) 2019-06-03 17:21:50 +02:00
Gavin Wood 4b7dfc4c25 Allow parachains to send messages (#274)
* Slots module

* Integrate slots

* More drafting

* Minor updates

* Update parachains to use trati

* More build fixes

* Full code now compiles

* Add renew bid function

* Implement calculate_winner

* Warning remove

* Update gitignore

* Test framework

* Tests

* Further testing

* More tests, new parameterisation.

* Fix and new test

* Thread-safe tests

* Test off-boarding and a fix.

* Test onboarding

* Allow late onboarding.

* Another test and fix

* Avoid println in nostd

* Compact representation of paraids

* Introduce documentation.

* Introduce events.

* Additional test and fix

* Additional test

* Tidy up line lengths.

* Remove printlns

* Use later substrate utils.

* Allow parachains to send messages.

* Fix build/test

* Make slots work with latest substrate

* Update runtime/src/slot_range.rs

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

* Update runtime/src/slots.rs

Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>

* Update runtime/src/slots.rs

Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>

* Polish logic

* Rewind to earlier substrate master

* Remove dead code.

* Fix build

* Update substrate ref to master

* Update to new inherent digests API

* address grumbles

* fix

* Fix a warning.

* Reworded a comment.

* Check that receipt matches expectations

* Add test for final checks

* Split out queuing logic.

* Test final piece of queuing logic

* Fix up docs.

* More docs fixes
2019-06-03 16:48:33 +02:00
Dean Eigenmann 2b9db4e7f1 Update README.adoc (#275) 2019-05-30 10:05:19 +02:00
Stanislav Tkach 2c85f90e0a Migrate to the 2018 edition (#273) 2019-05-29 18:33:49 +02:00
Pierre Krieger c699bdc10a Update to Substrate master (#271) 2019-05-25 20:23:14 +02:00
thiolliere 24930a77c0 Allow claim to be not signed by receiver account (#266)
* claim unsigned

* more test

* fix

* Update claims.rs

* Update runtime/src/claims.rs

* Update runtime/src/claims.rs

* Update runtime/src/claims.rs
2019-05-25 20:22:31 +02:00
TriplEight f5640ed5a8 show rust version (#269)
* new image, show rust version

* show rust version, fix metadata
2019-05-25 13:34:38 +02:00
Gavin Wood 32f9519743 Parachain auctions (#239)
* Slots module

* Integrate slots

* More drafting

* Minor updates

* Update parachains to use trati

* More build fixes

* Full code now compiles

* Add renew bid function

* Implement calculate_winner

* Warning remove

* Update gitignore

* Test framework

* Tests

* Further testing

* More tests, new parameterisation.

* Fix and new test

* Thread-safe tests

* Test off-boarding and a fix.

* Test onboarding

* Allow late onboarding.

* Another test and fix

* Avoid println in nostd

* Compact representation of paraids

* Introduce documentation.

* Introduce events.

* Additional test and fix

* Additional test

* Tidy up line lengths.

* Remove printlns

* Use later substrate utils.

* Fix build/test

* Make slots work with latest substrate

* Update runtime/src/slot_range.rs

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

* Update runtime/src/slots.rs

Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>

* Update runtime/src/slots.rs

Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>

* Polish logic

* Rewind to earlier substrate master

* Remove dead code.
2019-05-25 13:34:23 +02:00
Stanislav Tkach 10ae8d48f5 Add block data size check (#230)
* Add block data size check

* Pass max_block_data_size everywhere

* Fix build after merge

* Fix ParachainWork initialization

* Fix tests compilation
2019-05-24 13:02:13 +02:00
thiolliere 7a123fe8e9 Update substrate polkadot-master branch (#268)
* update substrate

* update lock
2019-05-24 12:49:07 +02:00
Xiliang Chen 4ed5fd128a Fix default bonding duration (#267)
Related https://github.com/paritytech/substrate/issues/2288

Someone needs to update the value in Alex testnet
2019-05-23 15:09:19 +01:00
gabriel klawitter 067d30b07e ci: fix docker file for debian binary (#265) 2019-05-22 10:19:05 +02:00
Robert Habermeier 164943b961 strip out all ICMP network code and begin gossip refactor for attestations (#256)
* strip out all ICMP code and begin gossip refactor

* validate incoming statements

* message_allowed logic

* compiles

* do reporting and neighbor packet validation

* tests compile

* propagate gossip messages

* test message_allowed

* some more tests

* address grumbles
2019-05-17 14:30:10 -04:00
André Silva 2bbfcc2f72 Bump version to v0.5 (#262)
* bump version to 0.5

* bump spec_version to 1000
2019-05-17 16:36:12 +02:00
thiolliere 122ea89144 redirect to polkadot-master updated (#261) 2019-05-17 13:40:03 +02:00
Gav Wood 6332a2780f Remove runtime (again) 2019-05-15 22:24:24 +02:00
thiolliere 6d778c99d2 update substrate (#259)
* WIP

* merging select_chain

* WIP

* update to point to gui-polkadot-master

* Fix collator

* update gui-polkadot-master and fix

* fix unwraps

* better returning an error
2019-05-15 14:35:27 -04:00
Luke Schoen ac2b9168ac Update Readme to use the init.sh script (#243) 2019-05-15 12:29:42 +02:00
Fedor Sakharov c6aa447a50 positive updates to reputations when good things happen (#258)
* positive updates to reputations when good things happen

* address review

* branch on good or bad pov blocks

* add a new constant for bad pov blocks
2019-05-15 12:29:23 +02:00
Stanislav Tkach e8fcb43fcf Don't pass validators' public keys with attestations (#186)
* Don't pass validators' public keys with attestations

* Update statement-table's Misbehaviour typedef

* Update network/router

* Expand MessageValidationData

* Try to fix tests

* Extend ApiContext

* Remove 'index_mapping' from the SessionParams

* Construct index_mapping from authorities

* Move index_mapping to TableContext

* Add test for index_mapping order
2019-05-08 15:19:39 -04:00
Robert Habermeier 36dd42523d update substrate reference (#249)
* update substrate reference

* bump wasm
2019-05-08 12:10:26 +02:00
Stanislav Tkach 4e9fb2d2b5 Use authorities from Authorities runtime API, not Core (#248) 2019-05-07 17:05:02 +02:00
Robert Habermeier a65be1b2df update substrate reference (#244)
* port polkadot_runtime and polkadot_validation

* update storages build (#245)

* all tests pass

* rebuild wasm
2019-05-06 18:25:55 +02:00
Xiliang Chen e42019e1dc ensure test accounts have balances (#242) 2019-05-06 18:17:00 +02:00
Bill Laboon 18566db4f7 Update README for PoC-4 (#240)
* Update README for PoC-4

The README was a bit out-of-date.  PoC-4 is out (and PoC-3 no longer works with the Alexander Testnet, at least for me).  I worked with Logan to come up with the new instructions for building and tested them on OS X.

Additionally, I added a link to the Testnet Faucet as an alternative way to get Testnet DOTs.

* Update README.adoc

Co-Authored-By: laboon <laboon@users.noreply.github.com>

* Update README.adoc

Co-Authored-By: laboon <laboon@users.noreply.github.com>
2019-05-04 16:03:05 +02:00
TriplEight 1f73847d3d WIP: ci uses new docker image (#236)
* ci uses new docker image

* image renamed to parity/rust-builder:latest

* cleanup
2019-05-02 14:51:27 +02:00
Robert Habermeier 1437c8e224 Introduce a Proof-of-Validation block type and use that in place of BlockData (#227)
* validators expect collators to give them parachain messages

* mostly port network to use pov_block

* network tests pass

* verify ingress when fetching pov block

* fix runtime compilation

* all tests build

* fix some grumbles

* Update validation/src/collation.rs

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

* Update primitives/src/parachain.rs

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

* Update network/src/lib.rs

Co-Authored-By: rphmeier <rphmeier@gmail.com>
2019-04-24 13:24:03 +02:00
joe petrowski 2bbfa0ae98 Create issues for all TODOs/FIXMEs (#224)
* network and validation

* remainder of todos

* ref new issue

* change issue number
2019-04-08 17:46:20 +02:00
Xiliang Chen 33df0a4adf update init script (#211) 2019-04-05 08:08:39 +02:00
Gav Wood 3730851bc9 Correct spelling 2019-04-04 17:24:43 +02:00
Bastian Köcher b13b7aec7c Update to almost latest substrate master (#205) 2019-04-03 17:46:04 +02:00