Commit Graph

4187 Commits

Author SHA1 Message Date
Arkadiy Paronyan 280bf3928a Updated for the new db (#996)
* Updated for the new db

* Bumped version

* Sort out features

* Update to substrate master
2020-04-15 15:08:51 +02:00
Bastian Köcher c6134cf91a Release 0.7.29 (#998)
* Release 0.7.29

* Update `Cargo.lock`
2020-04-14 16:46:20 +02:00
Pierre Krieger 17c2882ae7 Companion PR to channel names (#995)
* Companion PR to channel names

* Err... fix missing event stream name

* Update Substrate
2020-04-14 16:00:25 +02:00
Bastian Köcher 70a30a9783 Make sure we send collators its role on connect (#991) 2020-04-14 15:01:46 +02:00
Arkadiy Paronyan 9cd8216d76 Bump trie-db (#997) 2020-04-14 14:55:23 +02:00
ddorgan 4f9f1c879f Westend Mark II (#983)
* Initial draft

* More work

* Build

* Docs

* Insert westend keys

* Add badBlock to fork from old chain

* Updated spec to reset westend

* Use raw spec

* Fix spec format and use westend2 for both id's

* Correct public key for bootnode 3

* Build

* Extra space

* Fix build

* Lock

* Update lock

* Fixes

* Fix for he startup text

* Bump

Co-authored-by: Gav Wood <gavin@parity.io>
2020-04-14 09:34:40 +02:00
pscott 14b9ea691c Use tempdir for tests (#993)
* Use tempdir for tests

* Rename tmp to tempdir

* Update Cargo.lock

* Update expect error message in run_command_and_kill

* Call with .path() rather than creating an string slice

* Call tempdir with arg instead of args

* Update tests/purge_chain_works.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-04-13 18:48:51 +02:00
Robert Habermeier a5034dbe98 Use strong types in runtime for parachain heads and validation code (#964)
* use stronger types for HeadData and ValidationCode in runtime

* fix weird debug compile error

* fix runtime build

* update invocations invalidation.rs

* fix tests
2020-04-13 10:24:25 +02:00
Pierre Krieger 31dc9acf89 Update to Substrate master (#990) 2020-04-09 23:58:43 +02:00
Pierre Krieger 66489cb839 Update to Substrate master (#989) 2020-04-09 14:13:42 +02:00
Bastian Köcher fc91d130ec Companion pr for new chain type RPC (#988)
* Companion pr for new chain type RPC

* Update `Cargo.lock`
2020-04-08 21:10:58 +02:00
Pierre Krieger 75ebe7fb2e Companion PR to #5560 - Also includes polkadot#979 and polkadot#986 (#982)
* Companion PR to #5560

* Set priorities.

* Update substrate.

* Fix tests.

* Update Substrate

* Companion of SignedExtension refactor (#5540)

Co-authored-by: Tomasz Drwięga <tomasz@parity.io>
Co-authored-by: Alexander Theißen <alexander.theissen@parity.io>
2020-04-08 16:12:28 +02:00
Benjamin Kampmann 335961c520 Update to upstream reed-solomon-erasure (#978) 2020-04-08 11:30:34 +02:00
Cecile Tonglet 9477be3440 Update cli to new sc-cli API (#935)
* Initial commit

Forked at: 9283855dba
Parent branch: origin/master

* Switch substrate to branch cecton-the-revenge-of-the-cli

* Adapting code

* Update Cargo.lock

* Adapting code

* Adapt more code

* Implement force_kusama parameter

* Revert dependency update

* Adapt code to use ref to SubstrateCli object

* Updated to latest version

* Updated with latest changes

* Bump spec vesion

* Fixed tests

* WIP

Forked at: 9283855dba
Parent branch: origin/master

* More fixes

* Cargo.lock

* Updated code

* Fixed and adapt

* Fixed dependency issue with wasm

* Adapted code

* Revert branch change

* Cargo.lock

* Cargo.lock

* Adapt code

* Clean-up

* More clean-up

* Cargo.lock
2020-04-07 12:08:53 +02:00
Kian Paimani 011528278b Enable validate unsigned (#974) 2020-04-06 18:01:30 +02:00
Robert Habermeier 10cec3b591 Upgradeable validation functions (#918)
* upgrade primitives to allow changing validation function

* set up storage schema for old parachains code

* fix compilation errors

* fix test compilation

* add some tests for past code meta

* most of the runtime logic for code upgrades

* implement old-code pruning

* add a couple tests

* clean up remaining TODOs

* add a whole bunch of tests for runtime functionality

* remove unused function

* fix runtime compilation

* extract some primitives to parachain crate

* add validation-code upgrades to validation params and result

* extend validation params with code upgrade fields

* provide maximums to validation params

* port test-parachains

* add a code-upgrader test-parachain and tests

* fix collator tests

* move test-parachains to own folder to work around compilation errors

* fix test compilation

* update the Cargo.lock

* fix parachains tests

* remove dbg! invocation

* use new pool in code-upgrader

* bump lockfile

* link TODO to issue
2020-04-06 10:43:19 -04:00
Bastian Köcher b31b52dddf Fix master by updating Cargo.lock (#976) 2020-04-06 11:29:32 +01:00
gabriel klawitter 65c5a1b5ac ci: deploy: remove test branch (#975) 2020-04-06 11:48:02 +02:00
Gavin Wood 7f838b0c35 Update for using Mandatory inherents (#967)
* Update for using Mandatory inherents.

* use
2020-04-05 14:27:58 +02:00
Robert Habermeier 15a83079ba refactor out validation hosts to pool struct (#972)
* refactor out validation hosts to pool struct

* make web-wasm compatible

* typo

* remove now-unused static hosts
2020-04-04 15:15:54 -04:00
Gav Wood a2a4f4c755 Merge branch 'master' of github.com:paritytech/polkadot 2020-04-04 13:44:51 +02:00
Gav Wood cf82c77b79 use 2020-04-04 13:43:21 +02:00
Bastian Köcher c021f854a2 Ensure that table router is always built (#952)
* Ensure that table router is always build

This pr ensures that the table router is always build, aka the future is
resolved. This is important, as the table router internally spawns tasks
to handle gossip messages. Handling gossip messages is not only required
on parachain validators, but also on relay chain validators to receive collations.

Tests are added to ensure that the assumptions hold.

* Fix compilation

* Switch to closures

* Remove empty line

* Revert "Remove empty line"

This reverts commit 0d4aaba1780aec1c8d61e1d5dcf7768918af02d9.

* Revert "Switch to closures"

This reverts commit d128c4ecc02c911552a3bfd2142b5a4f7b1338ba.

* Hybrid approach

* Rename test

* Make trait crate local
2020-04-03 16:33:52 -04:00
André Silva b3d326acca Update substrate (#970)
* update substrate

* Hopefully fix compilation

* network: rename roles to role

* runtime: fix runtime-benchmarks compilation

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
2020-04-03 20:50:34 +02:00
gabriel klawitter 189c542655 ci: kusama-nightly-staging: removal of substrate's polkadot-master branch (#962)
* ci: kusama-nightly-staging: remove builds for the branches and trigger deployment directly

* ci: kusama-nightly-staging: remove ii and fix
2020-04-03 20:48:49 +02:00
Pierre Krieger 8ce7154111 Companion PR to splitting Roles (#960)
* Companion PR to splitting Roles

* Fix network tests

* Fix service build

* Even more fixing

* Oops, quick fix

* use is_network_authority in grandpa service config

Co-authored-by: André Silva <andre.beat@gmail.com>
2020-04-03 19:08:46 +02:00
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