Commit Graph

711 Commits

Author SHA1 Message Date
Bastian Köcher a26d919d8b Make sure we send the validator key to collators on status (#968)
Before the validator only send the keys if it was updated and thus the
collators would "never" be informed about the key of the validator.
2020-04-03 12:59:25 -04:00
Pierre Krieger 5b5ab9757b Don't depend directly on libp2p (#963)
* Don't depend directly on libp2p

* Fix bad import
2020-04-03 00:53:10 +02:00
Robert Habermeier 0252e89a8c Introduce a skill-tree for remaining tasks in phase-1 (#961)
* add dummy parachains.toml

* flesh out parachains.toml

* finish phase-1 rendering

* render to svg instead

* put graphviz svg through sanitizer so github can render

* return to PNG
2020-04-02 11:22:33 -04:00
Gavin Wood 4b11c84e1b A couple spaces where emojis were improperly laid out (#959)
* Fixes for democracy using Scheduler

* Revert branch change

* Emojis
2020-04-01 19:25:19 +02:00
Bastian Köcher 1e6f37076d Rework consensus instance communication with the network worker (#958)
Up to now consensus instances used the main channel to communicate with
the background network worker. This lead to a race condition when
sending a local collation and dropping the router before driving the
send local collation future until it is finished. This pr changes the
communication between worker and the instances to use their own
channels. This has the advantage that we don't need an extra
`DropConsensusNetworking` message as the network is dropped
automatically when the last sender is dropped.
2020-04-01 17:01:59 +02:00
Bastian Köcher 1bde78c8b1 Make sure that Parachain heads are updated (#945)
Updating the heads was accidentally removed in some other pr.
2020-04-01 17:01:47 +02:00
Gavin Wood d8e1180030 Companion for #5412 (#942)
* Fixes for democracy using Scheduler

* Revert branch change
2020-04-01 17:01:14 +02:00
Kian Paimani 6301baf024 Fix council/collective genesis (#954)
* Fix council collective genesisi values

* Update Cargo.lock

* Update Cargo.lock

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2020-04-01 04:11:51 +02:00
Robert Habermeier cb5defc91d PoV-block gossip (#930)
* add pov-block gossip message to network

* tests for pov-block gossip

* integrate pov-block gossip into main protocol

* message validation fetches pov blocks

* remove stray dbg! invocation

* test that pov-block is fetched from relay-parent topic
2020-03-31 23:05:42 +02:00
Shawn Tabrizi 5a84c64507 Companion PR for #5436/#5445 + #5463 (#948)
* Use `add_benchmark` macro

* Return error if `batches` is empty

* Update Cargo.lock

* Companion for #5463 (#953)

* Fix test with genesis block 0

* Update Cargo.lock
2020-03-31 20:14:44 +02:00
Robert Habermeier 21bd2f19d3 use strong key in parachains module KeyOwnerProofSystem (#951) 2020-03-31 11:47:49 -04:00
Bastian Köcher 4c3ca7bbb9 Companion pr for substrate#5448 (#957)
* Companion pr for substrate#5448

* Update Substrate reference
2020-03-31 14:09:36 +02:00
Cecile Tonglet 080eb240fa Companion PR for https://github.com/paritytech/substrate/pull/5236 (#955)
* Adapt code to API changes

* Update sp-io
2020-03-31 11:45:53 +02:00
Bastian Köcher b4c79556f3 Upgrade bitvec and parity-scale-codec (#947) 2020-03-30 13:08:15 +02:00
Gavin Wood de1c97fb85 Add emojis (#944) 2020-03-26 22:39:40 +01:00
Kian Paimani caa405e1eb Enable Offchain Phragmén. (#940)
* fix for offchain phragmen

* Update unix time stuff
2020-03-26 17:52:10 +01:00
thiolliere 775ce50cc2 Upgrade substrate for new staking API and Telemtry API (#941)
* upgrade substrate

* fix telemetry endpoint

* improve msg
2020-03-26 15:16:55 +01:00
Kian Paimani 087736e390 Manadatory Weight (#931)
* upsub

* Revert branch change

* Fix some

* Fix build
2020-03-26 12:10:18 +01:00
Tomasz Drwięga c8150e1d33 Transaction source (#5366) companion PR (#938)
* Add transaction source.

* Bump substrate.

* Fix tests.
2020-03-26 10:38:01 +01:00
Fedor Sakharov dbb4e987fa Remove Parent Hash to Session mapping (#928)
* Adds a SigningContext type

* Bump spec versions

* Fixes requested changes

* Bump ParachainHost api_version and guard signing_context call

* Improve error message

* If there is no signing_context api use default value

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
2020-03-25 17:04:05 -04:00
thiolliere 62cddd6fcb Update substrate for new on_initialize syntax and update on_initialize weight (#937)
* update new on_initialize syntax

* update substrate

* update spec_version
2020-03-25 14:10:11 +01:00
Shawn Tabrizi d52c3a45a7 Add CI check for runtme-benchmarks (#936) 2020-03-25 11:27:29 +01:00
Kian Paimani 92191ae91a Remove files (#932) 2020-03-24 12:37:52 +01:00
Shawn Tabrizi 9283855dba Fix runtime benchmarks build (#929) 2020-03-23 20:09:37 +01:00
Gav Wood 6ac200252e Bump runtime version 2020-03-23 17:20:25 +01:00
Gav Wood 5f04e1aa52 Version bump 2020-03-23 16:29:10 +01:00
Toralf Wittner fe972155c8 Update yamux to version 0.4.5 (#927) 2020-03-23 14:32:31 +01:00
Andronik Ordian d348fed02e deduplicate parity-util-mem (#926) 2020-03-23 08:57:15 +01:00
Fedor Sakharov 88ba024489 Parachains double vote handler initial implementation. (#840)
* Parachains double vote handler initial implementation.

* Make tests test the actual slashing.

* Implement SignedExtension validation of double vote reports.

* Fixes build after merge

* Review fixes

* Adds historical session proofs

* Review fixes.

* Bump runtime spec_version

* Get the session number from the proof

* Check that proof matches session

* Change signature type on DoubleVoteReport

* Adds docs and removes blank lines

* Removes leftover code

* Fix build

* Fix build after a merge

* Apply suggestions from code review

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

* Prune ParentToSessionIndex

* Remove a clone and a warning

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
Co-authored-by: Gavin Wood <gavin@parity.io>
2020-03-22 09:48:35 +03:00
Fedor Sakharov 3293186b90 Bump parity-util-mem (#921)
* Bump parity-util-mem

* Change util mem version to wildcard
2020-03-22 02:18:10 -04:00
Gav Wood 0c435448f9 Bump version 2020-03-21 16:48:06 +01:00
Gavin Wood 95d732beca Introduce progressive democracy (#920)
* Updates for the new democracy

* Introduce progressive democracy

Also move to "master" branch of Substrate ready for continuous
sync with Substrate master.
2020-03-21 16:46:09 +01:00
Ashley fb442c9112 Update and fix wasm code again, add cli check to .gitlab-ci.yml (#917)
* Add cli to wasm tests, update and bring closer to the substrate browser code

* Remove ws.js

* Update cli/src/browser.rs

Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com>

* Update browser.rs

Co-authored-by: Gavin Wood <gavin@parity.io>
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
2020-03-21 16:13:59 +01:00
Bastian Köcher 1f7df4528f Make sure that the start_collator future implements Send (#915)
Co-authored-by: Gav Wood <gavin@parity.io>
2020-03-21 15:48:46 +01:00
s3krit 965b74beb3 CI: Don't announce releases on updated (#912)
we were getting double-posts for newly-published releases - we don't need to post to the channel when releases are updated.
2020-03-21 13:40:16 +01:00
s3krit 73ab649437 CI: Move publish_draft_release job to test stage, and substrate changelog subsections (#908)
* Move publish_draft_release to test stage

Also remove the alert_pending_release job since it's no longer needed

* delete alert_pending_release.sh

* Add splitting substrate changes into subsections
2020-03-21 13:39:52 +01:00
Gavin Wood 6a7374aca3 Remove migration code. (#910)
* Remove migration code.

* Bump Substrate

* Bump runtime
2020-03-21 13:37:55 +01:00
Chevdor 17f6b4b8fb WIP: Upgrade kvdb_rocksdb dependency (#914)
* Add clang

* Upgrade kvdb-rocksdb version
2020-03-20 11:26:52 -04:00
André Silva 2edc7f13b0 Release version v0.7.27 (#916)
* bump version to v0.7.27

* update to latest substrate polkadot-master

* bump runtime impl_version
2020-03-19 16:24:32 +00:00
André Silva f1dad04d9a hardfork the GRANDPA authority set in kusama to fix migration issue (#913)
* hardfork the GRANDPA authority set in kusama to fix migration issue

* move grandpa integration code

* remove unnecessary grandpa hard fork

* update to latest substrate polkadot-master
2020-03-19 12:37:32 +00:00
André Silva 194e8441e5 remove hardcoded scheduled GRANDPA pause (#911) 2020-03-18 12:38:41 +01:00
Gavin Wood d92963c7dc Bump version (#907) 2020-03-17 15:42:51 +01:00
André Silva b9de1c0244 grandpa: add voting rule to pause new votes for a period (#904)
* grandpa: add voting rule to pause new votes for a period

* grandpa: increase delay

* grandpa: parse custom pause delay from cli

* grandpa: log scheduled pause on startup

* grandpa: rename parameter to grandpa_pause

* grandpa: make pause voting rule generic on block

* grandpa: add test for pause voting rule

* grandpa: add hardcoded pause

* collator: fix test compilation
2020-03-17 14:26:09 +00:00
Gavin Wood d07116a577 Bump version and Substrate (#905)
* Bump version and Substrate

* Version

* Lock
2020-03-17 14:10:15 +01:00
Gavin Wood a9a1034af5 Refactor storage hashing away from opaque types (#903)
* Refactor storage of various modules.

* The real list of claims

* Migration away from opaque maps

* Fix

* Fix for task executor API change
2020-03-17 11:54:13 +01:00
Robert Habermeier 260b2fa336 Tests for new network code (#897)
* move protocol.rs into subfolder

* add trait for mocking network behavior

* add a mock version of network ops

* remove some redundant parameters from service messages

* ensure fetching erasure chunks automatically cancels

* introduce dummy ProvideRuntimeApi

* abstract over gossip somewhat

* add mock gossip handler

* skeleton test

* remove dependence of shared table on router

* remove worker dependence on its own sender

* test shutdown

* add tests

* test that gossip streams are cleaned up correctly

* refactor worker out into its own struct and reduce bound on executor

* remove reliance of tests on global thread pool
2020-03-16 11:17:08 +01:00
Gavin Wood a81d8cb220 Bump versions & Substrate. (#902) 2020-03-16 11:00:11 +01:00
Gavin Wood f025f079b8 Remove CC3 designation (#901) 2020-03-15 20:42:48 +01:00
Gavin Wood 2c85b84cb6 Bump Substrate and runtime version (#900)
* Insert storage for finality tracker

* Bump lock

* Bump version
2020-03-14 17:13:10 +01:00
Gavin Wood 844ca939ab Prepare for version 0.7.23 (#899)
* Bump version

* Cargo lock

* Bump runtime version

* Bump Substrate again to include recent fix
2020-03-13 15:49:33 +01:00