Commit Graph

851 Commits

Author SHA1 Message Date
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
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
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
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
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
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
thiolliere 3beecb028c Companion: Democracy add weight. (#1076) 2020-05-15 13:48:11 +02:00
Benjamin Kampmann 41f234f39d Update to lastest substrate master (#1101) 2020-05-15 11:37:24 +02:00
Alexander Popiak cb1e21cb0c Companion PR to 5802 (#1050) 2020-05-14 17:20:07 +02:00
Bastian Köcher 45f64055a4 Companion pr for #6012 (#1095)
* Companion pr for #6012

* Update `Cargo.lock`
2020-05-13 20:19:44 +02:00
Shawn Tabrizi 105b4b4d56 Companion PR for paritytech/substrate#5954 (#1081)
* Update for split weights

* Update `Cargo.lock`

* Bump all `spec_version`s

Co-authored-by: Bastian Köcher <git@kchr.de>
2020-05-12 14:07:20 +02:00
Bastian Köcher a62382269d Update to latest Substrate master (#1074) 2020-05-07 16:59:37 +02:00
André Silva 41699f5d6e grandpa: report equivocations on all runtimes (#1000)
* grandpa: report equivocations on all runtimes

* runtime: fix test-runtime compilation

* runtime: enable historical session manager on all runtimes

* runtime: fix indentation

* runtime: use strong key types in KeyOwnerProofSystem definitions

* update substrate

* bump spec_version of runtimes
2020-05-06 19:27:28 +01:00
Max Inden 117fffb0cb network/src/legacy/gossip: Return bounded channel when testing (#1046)
* network/src/legacy/gossip: Return bounded channel when testing

* Cargo.lock: Update to current Substrate master
2020-05-06 16:00:58 +02:00
Gavin Wood efd738be82 Bump version (#1070) 2020-05-05 18:20:36 +02:00
Bastian Köcher 1f5771e898 Companion pr for Substrate #5889 (#1067)
* Companion pr for Substrate #5889

* Update Substrate ref
2020-05-05 14:47:40 +01:00
Jon Häggblad a7f76b4edd Companion PR for Substrate #5375 (#1040)
* Companion PR for Substrate #5375

* fix compilation

* Update rpc/Cargo.toml

* update substrate

Co-authored-by: André Silva <andre.beat@gmail.com>
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org>
2020-05-04 22:27:38 +02:00
Bastian Köcher 054a64af7e Companion for Substrate#5860 (#1061)
* Companion for Substrate#5860

* Update Substrate
2020-05-04 20:20:06 +02:00
Bastian Köcher 3b309c776c Update to latest Substrate master (#1058)
* Update to latest Substrate master

* again
2020-04-30 14:30:41 +02:00
Gavin Wood f6b9cd4e4d Prep v0.7.32 (#1056)
* Bump Westend runtime version

* Bump Substrate

* Prep for release of 0.7.32

* Update lock
2020-04-29 19:27:37 +02:00
thiolliere 9ff3091e35 Companion PR for treasury weight update (merged) Fix polkadot with substrate master (#1044)
* fix tests

* add cargo lock

* update substrate
2020-04-28 19:35:46 +02:00
Seun Lanlege 0e0760d56c Drop sc-client (#1037)
* WIP

* collator

* fix missing reference

* Make collator builder more generic

* all clear

* revert start colator fn

* fix return type of start_collator

* sc-consensus

* bump back to master

* Update collator/src/lib.rs

Co-Authored-By: Benjamin Kampmann <ben@gnunicorn.org>

* Update collator/src/lib.rs

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

* uncomment type MaxIterations

* reactivate append storage feature

Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org>
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
2020-04-28 16:20:47 +02:00
Nikolay Volf e54811646a update substrate, set new version (#1043) 2020-04-28 10:25:35 +02:00
Kian Paimani 7076651c75 Companion Substaret/5683 (#1039)
* update polkadot

* Fix build

* Bump Substrate

Co-authored-by: Gav Wood <gavin@parity.io>
2020-04-27 20:34:46 +02:00
Nikolay Volf 59f5743852 Companion PR for 5795 (#1041)
* add storage_append

* Bump versions

Co-authored-by: Gav Wood <gavin@parity.io>
2020-04-27 18:23:09 +02:00
Shawn Tabrizi b15cfb736d Add runtime benchmarking suite to all runtimes (#1034)
* Add benchmarking suite to all runtimes

* Add `runtime-benchmarks` feature to `test-linux-stable`

* Update Cargo.lock

* Update Cargo.lock

* Update Cargo.lock

* "user" instead of "caller"

* undo these changes
2020-04-27 16:19:46 +02:00
Shawn Tabrizi 0a10e37c99 Introduce BlockExecutionWeight and ExtrinsicBaseWeight (#1023)
* Update to changes in Substrate

* Fix trait

* Remove `TransactionBaseFee`

* add temporary values for extrinsic base weight and block execution weight

* Update Cargo.lock
2020-04-25 10:04:35 +02:00
Wei Tang 5733869389 Companion PR for #5501 and #5680 (#1012)
* Companion PR for #5501

* Bump runtime versions

* add MaxRegistrars config

* Pull substrate master in PR-5501

* Attempt to fix pin commit again

* update to substrate master

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: André Silva <andre.beat@gmail.com>
2020-04-24 16:39:40 +01:00
Bastian Köcher 88451e0b7c Companion PR to #5695 (#1030)
* add module ids to kusama runtime

* update kusam with polkadot runtimes to have moduleids configured

* trivial

* define module id for treasury in crowdfund.rs

* crodfund builds without issue

* remove commented out code

* switch crowdfund  to configurable moduleid

* test-runtime passing

* trivial syntax

* add module id to mock

* Update `Cargo.lock`

Co-authored-by: zeke <emostov@middlebury.edu>
2020-04-24 12:46:51 +02:00
Bastian Köcher a8be8e01fb Companion pr for Substrate #5741 (#1026)
* Companion pr for Substrate #5741

* update to substrate master

Co-authored-by: André Silva <andre.beat@gmail.com>
2020-04-23 18:07:11 +01:00
Kian Paimani 97fed89079 Companion for substrate/5686 (#1008)
* Companion for substrate/5686

* Update substrate
2020-04-22 09:51:55 +02:00
Rakan Alhneiti 2e521d30ea Companion PR to #5182 - Substrate offchain signing (#985)
* Implement offchain::SendTransactionTypes

* Fix test-runtime

* Fix Kusama

* Add SendTransactiontypes to Kusama

* impl SendTransactiontypes for parachains and registrar

* Fix typos

* Provided extrinsic type

* Implement AppCrypto for signing transactions

* Add signing capabilities to runtime

* Fix test runtimes

* Implement CreateSignedtransaction for Test

* Implement signing types for test runtimes

* Fix test runtime create transaction impl

* Fix build

* Bump kusama's spec version

* Update substrate

* Use all_accounts
2020-04-21 18:50:32 +02:00
Ashley 14766804c0 Remove usage of substrate-test-runtime. (#969)
* Switch from using the substrate_test_runtime Extrinsic to the polkadot_test_runtime one

* Copy genesismap into test-runtime

* Add UncheckedExtrinsics

* Fix tests :^)

* Remove unused functions from genesismap

* DRY, clean up

* Clean up

* Update service/src/grandpa_support.rs

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

* Fix indentation

* Update runtime/test-runtime/src/genesismap.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2020-04-21 12:56:22 +02:00
cheme 1a4db93c50 Companion to child trie api change #4857 (#950) 2020-04-21 10:39:35 +02:00
Bastian Köcher eab3624096 Release 0.7.30 (#1006)
* Release 0.7.30

* Update Substrate & libp2p
2020-04-17 23:01:00 +02:00
Nikolay Volf 39e8013490 Companion PR for 5657 (#1003)
* prometheus registry to txpool

* Fix network tests

* Use None as the network config path

* update substrate

Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
2020-04-17 17:29:33 +02:00
Gav Wood abd2650a58 Update Substrate 2020-04-17 12:11:48 +02:00
Nikolay Volf b50d2f2d1f Companion PR for 5023 (#939)
* add extension registrations

* update to latest

* merge&update
2020-04-16 22:58:16 +02:00
Max Inden 70becefb3d service/src/lib: Enable authority discovery on sentry nodes (#984)
* service/src/lib: Enable authority discovery on sentry nodes

When run as a sentry node, the authority discovery module does not
publish any addresses to the dht, but still discovers validators and
sentry nodes of validators.

* bin/node/cli/src/service: Use expressions instead of statements

* Cargo.lock: Run `cargo update`

* service/src/lib: Fix compile error
2020-04-16 20:30:22 +01:00
Fedor Sakharov cf7cf4bd7d Adds an offchain call to submit double vote reports (#966)
* Adds an offchain call to submit double vote reports

* Some tweaks

* Remove unnecessary IdentifyAccount impls

* Adds ValidateDoubleVoteReports to test runtime

* sp-application-crypto is only a dev dependency
2020-04-16 16:19:51 +01:00