Commit Graph

854 Commits

Author SHA1 Message Date
Gavin Wood 86c66a7741 Updtae constraint (#1187) 2020-06-02 18:03:28 +02:00
Fedor Sakharov fa46a92353 Overseer (#1152)
* Initial commit

* Licenses, spaces, docs

* Add a spawner

* Watch spawned subsystems with a FuturesUnordered

* Move the types around a bit

* Suggested fixes by Max

* Add a handler to talk to the Overseer

* FromOverseer and ToOverseer msgs and stopping

* Docs and return errors

* Dont broadcast, have add a from field to messages

* Allow communication between subsystems and outside world

* A message with a oneshot to send result example

* Remove leftover can_recv_msg

* Remove from field from messages

* Dont be generic over stuff

* Gather messages with StreamUnordered

* Fix comments and formatting

* More docs fixes and an example

* Apply suggestions from code review

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>

* Fixes from review

Move function from impl block.
Do not panic but resolve with errors if spawner fails or subsystem
resolves.

* Dropping a handler results in a flaky test

Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
2020-06-02 15:36:20 +03:00
Robert Habermeier 03576b3707 Remove old runtime requirements section, reorganize, and improve ToC (#1180)
* remove old runtime requirements section

* reorganize guide and improve ToC
2020-06-01 17:52:42 -04:00
Pierre Krieger 433c09833c Depend on async-std 1.5.0 only (#1179) 2020-06-01 20:03:50 +02:00
Gavin Wood 3c98185e1c Identity pallet (#1178)
* Identity

* Bump spec

* Update runtime/polkadot/src/lib.rs

Co-authored-by: kaichao <kaichaosuna@gmail.com>

* Fix runtime

* Bump runtimes

Co-authored-by: kaichao <kaichaosuna@gmail.com>
2020-06-01 20:03:28 +02:00
Bastian Köcher c04c88d71e Keep the table router for the lifetime of the validation instance alive (#1175)
This pr ensures that the table router stays alive for the lifetime of
the validation instance. This is required to ensure that the node
responds onto gossip messages for the particular relay chain round.
Before, the table router was only kept alive for relay chain nodes that
were assigned to a Parachain, however the lifetime was also relative
short. This lead to bugs where a relay chain node did not include
PoVBlock's, because it did not receive them (rejected them on receive,
because it was not listening on the particular round).
2020-06-01 09:07:29 -04:00
Pierre Krieger 329e177a5a Fix the Prometheus endpoint not working (#1172)
* Revert async-std to 1.5.0

* Funny, some part of the Cargo.lock didn't get commited
2020-05-30 11:31:48 +02:00
Tomasz Drwięga 44c0ec5cf8 Use Substrate Block Proposer (#1156)
* Use Substrate block builder.

* Clean up metrics.

* Lock.

* Lock.

* Switch to newest basic authorship interface

* Update Substrate reference and polkadot spec_version

* Let's improve

Co-authored-by: Bastian Köcher <git@kchr.de>
2020-05-30 11:06:08 +02:00
Robert Habermeier a3e4893a7c Improve the implementor's guide section on the Scheduler module (#1168)
* remove redundant resize instruction from guide

* amend past code pruning to fully cover acceptance period

* update guide again

* note on return value of `validation_code_at`

* rename execution cores to availability cores

* clarify terminology

* add ReplacementTimes to the guide

* fully decouple inclusion and scheduler

* clarify parathread scheduling substantially

* clarify validator group selection
2020-05-29 15:52:59 +02:00
Bastian Köcher d28df302b4 Update wasm builder to fix bugs in detecting changed files (#1169) 2020-05-29 15:52:34 +02:00
Kirill Pimenov b704fe8796 Bump Kusama spec version to 2000 (#1165) 2020-05-29 10:59:22 +02:00
Demi Obenour bcea20b377 Bump ‘spec_version’ in Westend (#1166)
This lets offline signers know that the transaction format has changed,
due to the addition of `transaction_version` to the signed payload.
2020-05-29 10:57:00 +02:00
Gavin Wood 7f30e2ed0f Bump (#1164)
* Bump

* Bump

* Bump
2020-05-28 16:36:52 +02:00
Robert Habermeier 1a3557a597 clarify some things about subsystems (#1157) 2020-05-28 14:15:07 +03:00
Bastian Köcher 94f407807e Make sure that vested claims are not transferable (#1160)
* Make sure that vested claims are not transferable

We need to deposit the claimed balance to the destination account before
setting the locks through the vesting module. Otherwise we loose the
locks and the vested claim is directly transferable.

* Add comment

* Enable missing feature for webbrowser check

* Remove unneeded error variant

* Increment `spec_version`'s

* Fix tests
2020-05-28 00:19:23 +02:00
Kian Paimani 357ed9f3ec companion for substrate/pull/6132 (#1159)
* companion for https://github.com/paritytech/substrate/pull/6132

* Fix more tests

* upsub

* Bump

* Update runtime/common/src/lib.rs

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

* remove cleanup

* Update runtime/westend/src/lib.rs

* Apply suggestions from code review

* Fix build

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-05-27 19:13:56 +02:00
Hernando Castano d5f343a73f Add tests for Polkadot runtime weights and fees (#1090)
* Add tests for Balance module weights

* Add tests for some of the Staking functions

* Add tests for system Pallet weights

* Add weight tests for Session pallet

* Add tests for Democracy Pallet weights

* Add tests for Phragment weights

* Add tests for Treasury weights

* Use consistent naming for tests

* Split tests into separate weight and fee suites

* Move weight constant checks into one test

* Use formulas instead of hardcoded weights

* Slim down number of tests

Mainly removing ones that are either root calls that aren't "important",
or others which will likely change if another test (which we kept) also
changes.

* Update timestamp set() weight

* Update Staking Pallet weights

* Update Democracy Pallet weights

* Update copyright year

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
2020-05-27 12:41:25 -04:00
Gav Wood 6fecdb8533 Introduce telemetry endpoint 2020-05-26 19:07:06 +02:00
Gavin Wood 1697ce1b7b Chain Candidate One: Final changes (#1155)
* Test CC1 spec

* Adaptive default chainspec

* Strip -pre

* Update to next CC1 iteration

* Raw chainspec
2020-05-26 18:55:22 +02:00
Cecile Tonglet 0ff80d0355 Add HeaderBackend trait to BuildParachainContext for cumulus validation (#1153) 2020-05-26 17:23:36 +02:00
Gavin Wood 7889aaa4a7 Test CC1 spec (#1154)
* Test CC1 spec

* Adaptive default chainspec
2020-05-26 16:21:11 +02:00
s3krit 57c2ded955 [CI] Add Polkadot runtime version to release notes, change release title to Polkadot CC1 (#1136)
* Include polkadot spec in release notes, retitle releases

* add CC1 to release title
2020-05-26 15:46:23 +02:00
Gavin Wood b170d9674f Prepare for final genesis (#1131)
* Update claim statements

* Update URLs

* Minor tweak to make enum agree with URL

* final html multihashes

* New hashes

* Version

* updated SAFT statement hash

* Update runtimes; this relies on substrate #6131

* Bump

* Share transaction filterer and fix Kusama

* Warning

* Gah!

* Tidy

* Westend fixes

* Westend fix

* Tweak constants

* Implement TCF stuff

* Fix

* Warning

* 15 minute lookahead

* 15 minute lookahead in Polkadot

* update max transactions

* Enable utility, disable vested_transfer

* Update runtime/common/src/lib.rs

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Filter calls for validate unsigned also

* Deduplicate

* Fix

* Introduce Polkadot (mainnet) chainspec

* Fix naming.

* Enable indices and fix comment.

* Fix compilation

* Enable indices and fix comment.

* polkadot: babe: enable secondary VRF slots

* Test JSON

* Allow set_heads

* Fix

* Raw chain spec added

Co-authored-by: keorn <github@i.keorn.org>
Co-authored-by: NikVolf <nikvolf@gmail.com>
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
Co-authored-by: Tomasz Drwięga <tomasz@parity.io>
Co-authored-by: André Silva <andre.beat@gmail.com>
2020-05-26 15:27:48 +02:00
Robert Habermeier cbb412f515 include implementor's guide in this repo (#1137)
* include implementor's guide in this repo

* most updated guide
2020-05-25 19:11:36 -04:00
joe petrowski 2906690893 Update README (#1134)
* update readme for current networks

* remove networks docs (they were copy/paste from readme)

* remove trailing whitespace

* add polkadot wiki

* remove hello world name

* remove authors/revision
2020-05-25 18:34:04 -04:00
Shawn Tabrizi 55d41a255b Expose more benchmarks (Scheduler, Elections) (#1128)
* More benchmarks

* Apply suggestions from code review

* update cargo

Co-authored-by: Gavin Wood <gavin@parity.io>
2020-05-22 13:58:08 +02:00
Marcio Diaz aa13e5df14 Companion for #5877 (#1123)
* Fixed point methods renames.

* Bump

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 22:11:33 +02:00
André Silva ddc6d5d5f8 cli: set default ss58 address format for each chain (#1127) 2020-05-21 19:52:18 +02:00
Shawn Tabrizi b01ee6eb00 Companion for #6046 (#1104)
* Update impls.rs

* companion for substrate#6069

* update to latest changes

* Update Cargo.lock

* Bump

Co-authored-by: André Silva <andre.beat@gmail.com>
Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 17:00:45 +02:00
Dudley bf79c453d9 updated from k < 3 to 0 < k <= 3 (#1119)
Co-authored-by: dud1337 <grant@dud.li>
2020-05-21 16:12:20 +02:00
Shawn Tabrizi 40b40de590 Add System to benchmarks (#1126)
* add system to benchmarks

* Update cargo files
2020-05-21 16:10:55 +02:00
Shawn Tabrizi b407af2672 Companion for Substrate #5961 (on_offence weight) (#1103)
* Add new trait to offences

* companion for substrate#6069

* update to latest changes

* Update Cargo.lock

Co-authored-by: André Silva <andre.beat@gmail.com>
Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 14:32:25 +01:00
thiolliere 882b73492d [Companion PR] make council members able to note preimage using operation extirnsic (#1120)
* make council members able to note preimage using operation extirnsic

* Bump

Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 14:26:18 +02:00
Federico Gimenez 39191d83c5 use new network identity format for Kusama bootnodes (#1124) 2020-05-21 13:49:00 +02:00
Alexander Theißen b6829b6d21 Companion for #6076 (Allow fee calculation to happen off-chain) (#1111)
* Switch from Convert to WeightToFeePolynomial

* Bump

Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-21 13:47:55 +02:00
Arkadiy Paronyan 162baa62fb Bump substrate (#1125) 2020-05-21 10:26:21 +02:00
Tomasz Drwięga e08e5ff462 Companion for #6067 (#1110)
* Companion to #6067

* Fix tests?

* Use AvailableBlockLimit instead of hardcoding the value.

* Bump substrate.
2020-05-20 16:03:28 +02:00
s3krit a184320503 [CI] Move check-labels to .post stage (#1114) 2020-05-20 12:26:10 +02:00
Nikolay Volf dc281e313d Update substrate, add block construction metrics (#1112)
* add metrics

* reset & update

* update
2020-05-19 19:01:16 +02:00
Pierre Krieger 58566274a0 Update to latest Substrate (#1107) 2020-05-18 23:55:04 +02:00
André Silva f6e8b10de4 fix Cargo.lock dependency version (#1105) 2020-05-17 11:10:01 +02:00
Jon Häggblad afb9af4cf0 Enable Babe RPC for getting epoch authorship (#1065)
Enable babe_epochAuthorship that was added in substrate#4729 for
querying information about slots that can be claimed in the current
epoch.
2020-05-16 12:46:21 +01:00
Arkadiy Paronyan a6f35ee989 Companion PR to #6039 (#1100)
* remove on_block_imported

* remove on_block_imported

Co-authored-by: Gav Wood <gavin@parity.io>
2020-05-16 13:26:33 +02:00
Gavin Wood 8cb7cdbc64 Extra requirements for claimants (#1091)
* Introduce mandatory statement signing into claims

* Introduce SignedExtension

* Tests passing

* Bump runtime version

* Bump version, fix test

* Test for validate

* Another couple of tests

* Enable PrevalidateAttests on Polkadot

* Enable PrevalidateAttests on Polkadot

* Fix build

* Fixes

* More fixes

* Fix bench tests

* Fix & test Preclaim clobbering.

* Fix for errant claim logic

* Add test

* Update tests, always use Vec as input

* mint_claim can add signature, some_benchmarks

* Add claim with statement test

* finish benchmarks

* put the correct number of claims with benchmarks

* fix compiler warning

* Update weights

* Weight comments for validation

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
2020-05-16 12:56:49 +02:00
Benjamin Kampmann b660c226d8 Companion for #6025 (#1098) 2020-05-15 19:35:39 +02:00
s3krit 5d58f7a43a [CI] Expose WASM binaries on publish (#1093)
* add build-wasm-release CI job

* temporarily run build-wasm-release everywhere

* temporary job to inspect artifacts dir

* fix test job

* fix test job again

* remove temporary job

* remove FIXME for when to run jobs

* remove pointless echo

* Change cargo build for wasm-pack

* Checksum polkadot_cli files

* make separate wasm dir for artifacts

* fix nits
2020-05-15 16:29:48 +02:00
Denis Pisarev 11cd00567a change (ci): fail test on warnings (#1102) 2020-05-15 16:29:11 +02:00
thiolliere 3beecb028c Companion: Democracy add weight. (#1076) 2020-05-15 13:48:11 +02:00
gabriel klawitter 6f1d6e9dcc ci: github api use token for pull requests (#1099) 2020-05-15 16:56:02 +05:30
Benjamin Kampmann 41f234f39d Update to lastest substrate master (#1101) 2020-05-15 11:37:24 +02:00