dependabot[bot] and Pierre Krieger
a9ab45beae
Bump hyper from 0.12.35 to 0.13.9 ( #7569 )
...
* Bump hyper from 0.12.35 to 0.13.9
Bumps [hyper](https://github.com/hyperium/hyper ) from 0.12.35 to 0.13.9.
- [Release notes](https://github.com/hyperium/hyper/releases )
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper/compare/v0.12.35...v0.13.9 )
Signed-off-by: dependabot[bot] <support@github.com >
* Update bin/node/rpc-client/Cargo.toml
* Update Cargo.lock
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2020-12-14 16:22:49 +01:00
Tomasz Drwięga
aa2191642f
Avoid too high values. ( #7716 )
2020-12-14 12:34:41 +00:00
Shawn Tabrizi and Sergei Shulepov
adaa63098b
Add Basic XCM ( #1934 )
...
* basic setup
* fix compile
* add back xcmsink
* Update primitives.rs
* add downward xcm for sudo
* Update paras_sudo_wrapper.rs
* Update Cargo.lock
* some cleanups
* Add error log
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2020-12-14 10:11:08 +00:00
Kian Paimani
056e57e812
Update debug.rs ( #7721 )
2020-12-12 20:08:44 +00:00
a5fe710cc6
initial jaeger integration ( #2047 )
...
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-12-11 17:38:55 +01:00
Tomasz Drwięga
abe119abba
Add keccak-512 to host functions. ( #7531 )
2020-12-11 16:41:18 +01:00
Shawn Tabrizi and Bastian Köcher
36a684a14b
Support Multiple Instances with Benchmarks ( #7669 )
...
* Support multiple instances with benchmarks
* fix tests
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* docs
* fix output
* Update lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-12-11 09:20:10 +00:00
Kian Paimani
b8b7702f21
Fix PerThing::from_percent. ( #7701 )
...
* Fix overflow in per_things::from_percent.
* Fix test
* Fix the whole thing.. :|
2020-12-11 10:14:28 +01:00
Denis Pisarev
5478c2b891
Update md link checker ( #7709 )
...
* CI: ignore %20 for md link checker
* CI: update to a new action release that fixes %20 issue
2020-12-11 10:02:59 +01:00
Robert Habermeier
15c253117d
Add assignment keys to session keys, no separate approvals key ( #2092 )
...
* guide: merge backing and approval keys
* bump substrate master & update primitives
* use new SessionInfo struct in session_info
* session keys upgrade for Polkadot
* kusama & westend runtimes
* bump westend, kusama, and polkadot versions
* add session key to rococo & test-runtime
* update prepare-test-net to latest subkey
* update chain specs to support new para_assignment session key
* get cargo.lock from master
* formatting
* update kill_storage based on substrate master
* fix test-service
* assgn -> asgn
* use session info module for assignment session key
2020-12-10 20:30:27 -06:00
Andronik Ordian and Bastian Köcher
04e9489da6
session_ info: small fixes ( #2106 )
...
* session_info: use proper timeout in test
* Revert "fix off-by-one error"
This reverts commit 35cb56305a19134acd8a8f881f3aabf999a09d74.
* session_info: use correct EarliestStoredSession when introduced on a live chain
* use saturating_sub
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* session_info: revert the timeout test
* session_info: rust is dumb
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-12-10 15:34:17 -06:00
Andronik Ordian
be3e5b3b3b
session_info: store the assigment ids ( #2102 )
...
* session_info: store the assigment ids
* how about this?
2020-12-10 15:02:36 -06:00
Bernhard Schuster
35c71bf315
addition error definitions ( #2107 )
...
* remove low information density error doc comments
* another round of error dancing
* fix compilation
* remove stale `None` argument
* adjust test, minor slip in command
* only add AvailabilityError for full node features
* another None where none shuld be
2020-12-10 16:57:36 +01:00
Guillaume Thiolliere and Alexander Theißen
8814d793c7
Fix docs ( #7710 )
...
* fix docs
* Update frame/merkle-mountain-range/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2020-12-10 14:38:56 +01:00
Alexander Krupenkin
1c5add6a39
Upgdate to latest polkadot & substrate ( #263 )
...
* Upgdate to latest polkadot & substrate
* Fix code formatting (cargo fmt)
* Fix unit tests
2020-12-10 14:28:02 +01:00
Albrecht
9384e6ed53
kilt&polimec ss58 prefix ( #7547 )
...
* kilt ss58 address
* polimec ss58 prefix
2020-12-10 13:23:47 +00:00
Max Inden
e4e120e9b3
*: Update to libp2p v0.32.2 ( #7708 )
...
Version v0.32.2 pins async-tls to the semver compliant v0.11.0 instead
of the yanked async-tls v0.10.2.
2020-12-10 09:22:40 +00:00
418f38c335
[WIP] Update weights in prep for v0.8.27 ( #2097 )
...
* Update weights for polkadot
* add Kusama weights
* add westend weights
* remove claims weight files
claims still uses in-line weights which is fine cause it is a polkadot specific pallet
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-12-10 10:13:40 +01:00
Max Inden and parity-processbot
0e885a3a71
Cargo.lock: Update to async-tls 0.10.2 ( #2096 )
...
* Cargo.lock: Update to async-tls 0.10.2
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-12-09 22:23:06 +00:00
Max Inden
0a2636d20c
*: Update to libp2p v0.32.0 ( #7696 )
...
* *: Update to libp2p v0.32.0
* Cargo.lock: Update async-tls to 0.10.2
* client/network/request_response: Adjust to new request response events
* client/network/request_response.rs: Clean up silently failing responses
* client/network/discovery: Lazily instantiate mdns
* client/network/discovery: Exclude MdnsWrapper for target_os unknown
* client/network/discovery: Fix indentation
* client/network/request-response: Use LruCache to track pending resp time
* client/network/request_responses: Fix early connection closed error
* client/network/request-response: Replace debug_assert with debug
* client/network/request-response: Fix typo
* client/network/request-response: Don't emit event on send_response fail
* client/network/request-response: Revert waker.wake_by_ref()
* client/network/request-resp: Make duration in InboundRequest optional
* client/network/req-resp: Don't emit two events for busy builder
When a response builder is busy incoming requests are dropped.
Previously this was reported both via a `ResponseFailure::Busy` and a
`ReponseFailure::Network(InboundFailure::Omisssion)` event.
With this commit the former is removed, leaving only the latter in
place.
2020-12-09 21:58:22 +00:00
Max Inden
b29d6092c2
frame/staking/README: Fix broken link ( #7703 )
2020-12-09 21:09:38 +01:00
02f66e8823
Merkle Mountain Range pallet ( #7312 )
...
* Add MMR pallet.
* WiP
* Working on testing.
* WiP - test
* Tests passing.
* Add proof generation.
* Generate and verify proofs.
* Allow verification of older proofs.
* Move stuff to a module.
* Split MMR stuff to it's own module.
* Add docs.
* Make parent hash optional.
* LeafData failed approach.
* Finally implement Compact stuff.
* Compact encoding WiP
* Implement remaining pieces.
* Fix tests
* Add docs to compact.
* Implement for tuples.
* Fix documentation.
* Fix warnings and address review suggestion.
* Update frame/merkle-mountain-range/src/primitives.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Address review grumbles.
* Removing missing crate.
* Fix test.
* Add some docs and test.
* Add multiple instances.
* Cargo.toml sync.
* Fix no_std compilation.
* More no_std stuff.
* Rename MMR struct.
* Addressing other grumbles.
* Fix test.
* Remove format for no_std compat.
* Add test for MMR pallet.
* Fix std feature.
* Update versions.
* Add to node/runtime.
* Add hook to insert digest.
* Make primitives public.
* Update lib.rs
tech spec/typos etc
* Use WeightInfo and benchmarks.
* Fix test.
* Fix benchmarks.
* Trait -> Config.
* Fix typo.
* Fix tests.
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Addie Wagenknecht <addie@nortd.com >
2020-12-09 16:35:13 +01:00
Andronik Ordian
6f1590b253
runtime/session_info: avoid heavy loop when introduced on a live chain ( #2099 )
...
* session_info: a heavy loop test
* session_info: fix a typo
* session_info: fix heavy loop
* session_info: crank the iterations all the way up
2020-12-09 09:33:58 -06:00
Benjamin Kampmann
a27d715c01
Companion to "Expand remote keystore interface to allow for hybrid mode" ( #2083 )
...
* adding missing param
* updating to latest master
2020-12-09 13:05:21 +00:00
André Silva
2ed2832046
fork-tree: expose silent failures of is_descendent_of ( #7695 )
...
* fork-tree: expose silent failures of is_descendent_of
* fork-tree: use mem::take instead of mem::swap
2020-12-09 12:04:57 +01:00
Benjamin Kampmann
5ce8c33368
Expand remote keystore interface to allow for hybrid mode ( #7628 )
...
* update to latest master
* updates on docs, license, meta
* hide ssrs behind feature flag
* implement remaining functions on the server
* sign server line length fix
* fix tests
* fixup in-memory-keystore
* adding failsafe
* skipping ecdsa test for now
* remote keystore param
* remote sign urls made available
* integrating keystore remotes features
* don't forget the dependency
* remove old cruft
* reset local keystore
* applying suggestions
* Switch to single remote, minor grumbles
* minor grumbles, docs
2020-12-09 10:52:56 +01:00
Alexander Theißen and parity-processbot
cadc8347b4
Companion for #7671 (child trie deletion host function) ( #2077 )
...
* Adapt to new kill_child_storage runtime interface version
* "Update Substrate"
* Update substrate
Co-authored-by: parity-processbot <>
2020-12-09 09:02:36 +00:00
Shawn Tabrizi and Alexander Theißen
7a43cca875
benchmarks: Fix panic in case of a missing model ( #7698 )
...
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2020-12-09 04:00:52 +00:00
Alexander Theißen and cheme
9ce24fe1f4
Allow capping the amount of work performed when deleting a child trie ( #7671 )
...
* Allow Backend::for_keys_in_child_storage to be aborted by the closure
* Ext::kill_child_storage now takes an upper limit for backend deletion
* Add Storage::storage_kill_limited() runtime interface
* review: Use a new version of kill_storage instead of a new interface
* review: Simplify boolean expression
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* review: Rename for_keys_in_child_storage
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
2020-12-09 01:17:28 +00:00
Robert Habermeier
4689c21069
add an upgrade_keys method for pallet-session ( #7688 )
...
* add an upgrade_keys method for pallet-session
* test the upgrade_keys function
2020-12-08 12:13:21 -06:00
Denis Pisarev
29d7e0e6c1
Remove waterfall CI trigger ( #7519 )
...
* fix (CI): fix the triggered project name
* fix (CI): debug run
* fix (CI): debug run 2
* fix (CI): revert debug2
* Revert "fix (CI): debug run"
This reverts commit 96866a953da797ef6e0689374eecc0d8cba4627d.
* CI: remove the trigger
2020-12-08 18:53:22 +01:00
Denis Pisarev
679a9bac5a
Pin md link checker's version ( #7697 )
...
* CI: pin md link checker's version to the previous release
* CI: add a whitelist for allowed GH actions pins
* CI: try master tip [skip ci]
* CI: return to a previous markdown-link-check dependency version [skip ci]
* CI: substitute %20 for a literal space [skip ci]
* CI: substitute %20 for a literal space
2020-12-08 18:00:36 +01:00
Bastian Köcher and Shawn Tabrizi
575d68a65d
Adds consistency checks for the HostConfiguration ( #2087 )
...
* Adds consistency checks for the `HostConfiguration`
Besides that it fixes the chain specs to make the consistency checks happy.
* Update runtime/parachains/src/configuration.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Review feedback and test fixes etc
* Update
* More
* I'm an idiot
* Fix tests...
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-12-08 09:05:00 -06:00
André Silva
48d5156357
client: remove duplicate implementation of block_status ( #7694 )
2020-12-08 14:07:24 +01:00
Tomasz Drwięga
f28333aedb
Companion for #6629 (weight params refactor) ( #1420 )
...
* Change branch.
* Update runtime.
* Revert "Change branch."
This reverts commit 841c59f3398136c27cc235a29d7d459e8a4c8ce0.
* Update substrate.
* Fix tests.
* Fix compilation.
* Fix frame system imports.
* Fix usages of system
* Fix stuff.
* Fix compilation.
* Fixes.
* Fix block_weight usage.
* Bump substrate.
2020-12-08 12:55:57 +00:00
39a776cd00
Streamline frame_system weight parametrization ( #6629 )
...
* Basic weights builder.
* Fixing WiP
* Make the tests work.
* Fix weights in node/runtime.
* WiP.
* Update pallets with new weights parameters.
* Validate returns a Result now.
* Count mandatory weight separately.
* DRY
* BREAKING: Updating state root, because of the left-over weight-tracking stuff
* Update tests affected by Mandatory tracking.
* Fixing tests.
* Fix defaults for simple_max
* Update frame/system/src/weights.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Rework the API a bit.
* Fix compilation & tests.
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add extra docs & rename few things.
* Fix whitespace in ASCII art.
* Update frame/system/src/limits.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Fix max_extrinsic calculations.
* Fix conflicts.
* Fix compilation.
* Fix new code.
* re-remove generic asset
* Fix usage.
* Update state root.
* Update proxy.
* Fix tests.
* Move weights validity to integrity_test
* Remove redundant BlockWeights.
* Add all/non_mandatory comment
* Add test.
* Remove fn block_weights
* Make the macro prettier.
* Fix some docs.
* Make max_total behave more predictabily.
* Add BlockWeights to metadata.
* fix balances test
* Fix utility test.
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2020-12-08 13:18:34 +01:00
Guillaume Thiolliere
f6198b4c1b
implement more convertion on NumberOrHex ( #7682 )
2020-12-08 10:10:46 +01:00
Robert Habermeier
48746afd6a
add a brief description of goals of the GRANDPA voting rule ( #2053 )
2020-12-07 17:23:44 -06:00
Bastian Köcher
c74537fefd
Do not spam when we can not send a message to a job ( #2084 )
...
* Do not spam when we can not send a message to a job
There are legal reasons why a job ended. If a job failed, the error is
logged. So, we don't need to log an error when we can not send a message
to a job.
* Review feedback
2020-12-07 21:57:49 +01:00
Bastian Köcher
79a5b12dc1
Rework ConnectionsRequests ( #2081 )
...
* Rework `ConnectionsRequests`
Instead of implementing the `Stream` trait, this struct now provides a
function `next()`. This enables us to encode into the type system that
it will always return a value or block indefinitely.
* Review feedback
2020-12-07 11:47:31 -06:00
Martin Pugh
52537f3621
Bump substrate, and bump version to v0.8.27 ( #2082 )
...
* Bump version from v0.8.26 to v0.8.27
* bump substrate
2020-12-07 17:32:32 +01:00
Bastian Köcher
588461f52a
Make sure the companion CI test fails on any error ( #7683 )
2020-12-07 16:48:54 +01:00
Kian Paimani
8e9f9057fe
Update Cargo.toml ( #7627 )
...
On behalf of dependabot, because we use 1.4.x in it clashes with this.
2020-12-07 15:32:16 +00:00
dependabot[bot]
5294f2b302
Bump serde from 1.0.117 to 1.0.118 ( #2075 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.117 to 1.0.118.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-07 16:07:29 +01:00
Bastian Köcher
d7047578e9
Fix tests on master ( #2080 )
...
Because of a bug in the test script, we didn't stopped CI when the main
tests are failed.
2020-12-07 14:47:39 +00:00
Pierre Krieger and Max Inden
22fdd3a6ea
Fix #7629 ( #7680 )
...
* Fix #7629
* Update client/network/src/service.rs
Co-authored-by: Max Inden <mail@max-inden.de >
Co-authored-by: Max Inden <mail@max-inden.de >
2020-12-07 15:04:32 +01:00
Martin Pugh
f4a6f9d9b2
Update release documentation + checklist ( #2079 )
...
* add instructions for extrinsic verification
* update release documentation
2020-12-07 13:46:35 +01:00
dependabot[bot]
286924fc2b
Bump smallvec from 1.5.0 to 1.5.1 ( #2076 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.5.0...v1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-07 12:28:40 +01:00
Pierre Krieger
1ca5e8856b
Fix two potential connection poisonings ( #7677 )
2020-12-07 10:10:21 +01:00
Bastian Köcher
d9b1b14769
Adds support for tuples in runtime-interface ( #7672 )
2020-12-06 15:14:19 +01:00