Commit Graph

352 Commits

Author SHA1 Message Date
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
Bastian Köcher 9a74006686 Use correct account for balance initialization in chain spec (#201) 2019-04-02 09:32:26 +02:00
gabriel klawitter 33873d7ab6 ci: upload builds according to the tag if present (#198) 2019-03-29 17:17:42 +01:00
Bastian Köcher c12ed7d8ac Update to latest substrate master (#197) 2019-03-29 11:35:39 -04:00
Ross Bulat 0b726e7605 Limiting Resources (#189)
Document Limiting Resources for Docker Containers
2019-03-29 12:51:59 +01:00
Bastian Köcher 7e2714f843 Update to latest substrate-master and polkadot v0.3 (#195)
* Rebuild runtime

* Remove invalid value from chainspec (#68)

* service: use grandpa block import for locally sealed aura blocks (#85)

* bump version to v0.3.1

* Update lock file.

* limit number of transactions when building blocks (#91)

* Update to latest Substrate

* Bump to 0.3.2

* Actually bump.

* v0.3.2 (#98)

* bump substrate version

* fix polkadot-collator

* point to alexander-backports of substrate

* bump version

* cli: fix node shutdown (#100)

* update to latest substrate, change to v0.3.4

* update to latest substrate, bump version to 0.3.5

* v0.3.6

* try to build on every v0.3 commit and update alexander-backports

* bump to v0.3.7

* bump to 0.3.8

* Bump to 0.3.9: network and pruning improvements

* Bump to 0.3.10: reduce network bandwidth usage

* Use libp2p-kad 0.3.2 (#122)

* Bump libp2p-identify to 0.3.1 (#123)

* Bump to 0.3.12 (#127)

* Update Substrate again (#128)

* update substrate and bump version to v0.3.13

* bump version to v0.3.14: fix --reserved-nodes

* add a manually curated grandpa module (#136)

* updating v0.3 to use substrate v0.10 (#146)

* updating to latest substrate v0.10

* better handling of outer poll

* nit

* fix tests

* remove comment

* reduce indentation

* use self.poll

* bring oneshot into scope

* spaces

* wrap

* remove match

* wrap

* Update primitives/Cargo.toml

Co-Authored-By: gterzian <2792687+gterzian@users.noreply.github.com>

* Update runtime/wasm/Cargo.toml

Co-Authored-By: gterzian <2792687+gterzian@users.noreply.github.com>

* Update runtime/wasm/Cargo.toml

Co-Authored-By: gterzian <2792687+gterzian@users.noreply.github.com>

* Update test-parachains/adder/collator/src/main.rs

Co-Authored-By: gterzian <2792687+gterzian@users.noreply.github.com>

* indent

* add paranthese

* config: fix wrong ip for alexander bootnode (#161)

* fix curated-grandpa and rebuild wasm (#162)

* [v0.3] Integrates new gossip system into Polkadot (#166)

* new gossip validation in network

* integrate new gossip into service

* network: guard validation network future under exit signal (#168)

* bump version to v0.3.15: substrate v0.10

* [v0.3] update to substrate master (#175)

* update to substrate master

* fix test

* service: fix telemetry endpoints on alexander chainspec (#169) (#178)

* Update v0.3 to latest Substrate master (#177)

* update substrate v0.3 to latest master

* bump spec version

* update to latest master: remove fees module

* update runtime blobs

* bump version to 0.3.16

* replace sr25519 accountid with anysigner

* bump version to v0.3.17

* Some PoC-3 GRANDPA tweaks (#181)

* call on_finalise after triggering curated_grandpa change

* make grandpa rounds shorter for faster finalization

* use authorities when calculating duty roster (#185)

* [v0.3] Update to substrate master (#183)

* update to latest substrate master

* bump version to 0.3.18

* update to latest substrate master

* bump spec version

* update runtime wasm blobs

* remove current_offline_slash from chain spec

* update to substrate master: bump version to v0.3.19 (#188)

* update to substrate master: bump version to v0.3.19

libp2p network improvements

* network: replace NodeIndex with PeerId

* network: fix tests

* polkadot v0.3.20 (#190)

* update to substrate master: bump version to 0.3.20

* runtime: add offchain worker trait

* runtime: rebuild wasm blobs

* bump spec version (#191)

* Fix compilation

* Update version to 0.4.0

* Switch to use `polkadot-master` branch from substrate

* Remove unused struct

* Remove `grandpa::SyncedAuthorities` from `OnSessionChange`
2019-03-28 15:20:39 +01:00
gabriel klawitter 5606afd886 Ci kubernetes chart update (#187)
* update helm chart from substrate

* ci: change container image to kubetools
2019-03-26 10:58:34 +01:00
Robert Habermeier c1ec4bd821 use authorities when calculating duty roster (#184) 2019-03-22 20:36:10 +01:00
Robert Habermeier 454ddf8921 Collators get incoming parachain messages (#149)
* refactor out a consensus data fetcher from table router

* move statement checking logic into router

* refuse to start authority if collator

* support building the table router asynchronously

* instantiate_consensus does not overwrite old

* update key in new consensus if there was none before

* collator collects ingress from network

* test produced egress roots

* fix adder-collator compilation

* address first grumbles

* integrate new gossip with collator network launch

* address review
2019-03-22 00:48:36 +01:00
Gav Wood 67275abe30 Update to Substrate master (#176)
* Update to master

This introduces a new type `CollatorId`, currently just `SessionKey`
but which would forseeably change to its own thing. It seems to work
like this (despite there being a lot of the new-incompatible
`AccountId` replaced). No idea if it does anything sensible, though.

* Cleanups

* Fix tests

* Remove commented code

* Specify commit hash

* Remove commented code

* Correct version

* Update runtime/Cargo.toml

Co-Authored-By: gavofyork <github@gavwood.com>

* PairT instead of _Pair

* Update lock file

* Remove rev causing upset
2019-03-18 11:29:39 +01:00
gabriel klawitter 448c23dc52 CI update according to latest substrate (#174) 2019-03-07 20:44:32 +01:00
Robert Habermeier 7e6183f74c Update to new gossip system. (#172)
* Integrates new gossip system into Polkadot (#166)

* new gossip validation in network

* integrate new gossip into service

* Fix build

* Fix claims module

* fix warning

* update to latest master again

* update runtime
2019-03-06 20:47:09 +01:00
André Silva a918f5b1a0 service: fix telemetry endpoints on alexander chainspec (#169) 2019-03-05 08:43:55 +01:00
André Silva 23d7f459a2 network: guard validation network future under exit signal (#167) 2019-03-04 15:19:45 +00:00
joe petrowski 30472a18ab Correct FIXME/TODO in service module (#164)
* remove TODO

TODO should have been removed after the last update

* add issue link to grandpa config

* add todo with link

* update issue link to substrate
2019-02-28 10:40:02 +01:00
André Silva 1348af4df2 config: fix wrong ip for alexander bootnode (#161) 2019-02-26 12:23:00 -05:00
joe petrowski 426daaf0f5 Add README Issue Link (#160)
* add issue link

* add issue link

* add issue link

* Update README.adoc

* add parens

* add issue link

* add issue link

* add issue link

* add issue link

* add issue link

* add issue link

* add issue link
2019-02-26 16:04:05 +00:00
gabriel klawitter fd4e71758e ci: add check:merge:conflict job (#153)
* ci: add check:merge:conflict job

* split caches between test and release job
2019-02-26 15:41:40 +01:00
Andrew Jones 0a25c425b0 Egress queue validation in runtime (#155)
* Add fn to validate egress routes

* Add blank tests

* Reject routing to non existent parachains

* Reject if routing to self

* Reject if egress route parachain ids out of order

* Extract method for checking egress routes

* Reject empty egress routes

* Extract test method

* Generate empty trie root constant in build script

* Remove unwraps

* Hardcode EMPTY_TRIE_ROOT and add test to verify

* Const not pu
2019-02-25 13:44:35 -05:00
Bill Laboon bef6069cc9 add link to watercooler (#156) 2019-02-23 20:06:43 -05:00
Wei Tang 93b9287af8 Remove unused wasm files (#154) 2019-02-22 20:37:02 +01:00
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