Bastian Köcher
494dee7c7b
SlotDuration: Always fetch the slot duration from the runtime ( #10509 )
...
* SlotDuration: Always fetch the slot duration from the runtime
The slot duration should always be fetched from the runtime instead of being cached in the db. The
slot duration is only fetched on startup of the node, so the performance isn't that important. This
is especially helpful for the case when the slot duration of a chain should be changed through a
runtime upgrade (there be dragons, so take care).
* Fix docs
* Remove logging
* Fix warning
2021-12-20 19:49:18 +00:00
dependabot[bot]
6129dd8e49
Bump tokio from 1.13.0 to 1.15.0 ( #10512 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.13.0 to 1.15.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.13.0...tokio-1.15.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-20 09:56:16 +00:00
dependabot[bot]
d2e9026444
Bump serde from 1.0.130 to 1.0.131 ( #10500 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.130 to 1.0.131.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-17 08:30:58 +00:00
David
edf73199ab
Prepare sp-runtime for publication ( #10451 )
...
* Bump versions of sp-core and dependencies to v4.0.0
* Update references from `4.0.0-dev` –> `4.0.0`
* Funny whitespace
* Funny whitespace 2
* Prepare `sp-runtime` for publication
2021-12-15 12:36:17 +01:00
Gavin Wood
1e24e45ea1
Remove Default bound for AccountId ( #10403 )
...
* Remove Default for AccountId
* More removals of default
* Update frame/authorship/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/authorship/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/authorship/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/authorship/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* More work
* More work
* Remove old code
* More work
* pallet-asset-tx-payment
* tips
* sc-consensus-babe
* sc-finality-grandpa
* sc-consensus-babe-rpc
* sc-cli
* make npos crates accept non-default account (#10420 )
* minimal changes to make npos pallets all work
* make this pesky reduce.rs a bit cleaner
* more work
* more work
* Tests build
* Fix imonline tests
* Formatting
* Fixes
* Fixes
* Fix bench
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Formatting
* Fixes
* Formatting
* Fixes
* Formatting
* Fixes
* Formatting
* Fixes
* Formatting
* Update client/keystore/src/local.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/finality-grandpa/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/keystore/src/local.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/keystore/src/local.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/staking/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/staking/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Formatting
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: kianenigma <kian@parity.io >
2021-12-13 15:03:59 +01:00
Bastian Köcher
f6f58f95e1
inspect-key: Adds support for expect-public (#10430 )
...
* Introduce `SecretUri`
* `inspect-key`: Adds support for `expect-public`
`expect-public` can be used to check that a given secret uri corresponds to the given public key.
This is mainly useful when the secret uri is protected by a password and a new derived account
should be generated. With `--expect-public` the user can pass the public key/account-id of the
"base" secret uri aka the one without any derivation to ensure the correct password was inserted.
* Fixes
* 🤦
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Review feedback
* FMT
* Bump the versions
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-12-11 08:13:18 +01:00
Éloïs
3acd335a8d
Make wasm runtime cache size configurable ( #10177 )
...
* Make wasm runtime cache size configurable
* apply review comments
* remove VersionedRuntimeValue
* fix compilation
* VersionedRuntime: replace clone by Arc
* fmt
* fix warnings
* fix tests compilation
* fmt
2021-12-09 16:10:16 +01:00
David
92dc635f3c
Release sp-core 4.0.0 ( #10447 )
...
* Bump versions of sp-core and dependencies to v4.0.0
* Update references from `4.0.0-dev` –> `4.0.0`
* Funny whitespace
* Funny whitespace 2
2021-12-08 21:06:50 +01:00
Gavin Wood
4b34b041b8
Introduce CheckNonZeroSender ( #10413 )
...
* Introduce CheckNonZeroSender
* Missing file
* Formatting
* Fixes
* Formatting
* some fixes to compile
* Update frame/system/src/extensions/check_non_zero_sender.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fixes
* Fixes
* another fix
* Formatting
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-12-08 11:28:03 +01:00
Bastian Köcher
d94027edb4
Enable wasmtime for aarch64 as well ( #10367 )
2021-11-24 20:46:28 +01:00
dependabot[bot]
7f4b954274
Bump platforms from 1.1.0 to 2.0.0 ( #10331 )
...
Bumps [platforms](https://github.com/rustsec/rustsec ) from 1.1.0 to 2.0.0.
- [Release notes](https://github.com/rustsec/rustsec/releases )
- [Commits](https://github.com/rustsec/rustsec/commits/platforms/v2.0.0 )
---
updated-dependencies:
- dependency-name: platforms
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-22 11:12:59 +00:00
Georges
439af98e55
Moving pallet-asset-tx-payment from cumulus to substrate ( #10127 )
...
* Moving `pallet-asset-tx-payment` from cumulus
* move pallet-asset-tx-payment into transaction payment directory
* cargo +nightly fmt
* Adding `pallet-asset-tx-payment` to node runtime
I had to change the Balance type to u128.
Also harmonised that pallet's version
* Updating cargo.lock after merge
* forgot this
* Adding tx-payment signature
* Missed one more
* `transaction-payment` replaced in`SignedExtension`
by `asset-tx-payment` and not added
* Fixing benches
* add test to verify that we don't charge on post-dispatch if we didn't on pre-dispatch
* add (failing) test for asset tx payment of unsigned extrinsics
* fix test by removing debug_assert
* cargo +nightly fmt
* typo in `Cargo.lock`
* Object defined twice in lock file
* cargo update
* remove todo
* Apply formatting suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Refactoring `post_dispatch` of `asset-tx-payment`
to reuse `post_dispatch` of `transaction-payment` if the fee asset is
native
Removing unneeded imports.
* Removing redundant `TODO`
* Reverting an accidental bump of `impl-serde`
from `0.3.1` to `0.3.2`
* Revert unneeded changes to `cargo.lock`
* Update frame/transaction-payment/asset-tx-payment/src/payment.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Fixing cargo fmt
Reverting changes which broke cargo fmt
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-11-19 09:29:12 +00:00
dependabot[bot]
4a4284a08b
Bump tokio from 1.12.0 to 1.13.0 ( #10265 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.12.0...tokio-1.13.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 19:39:11 +00:00
dependabot[bot]
e57dd4845e
Bump nix from 0.19.1 to 0.23.0 ( #10254 )
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.19.1 to 0.23.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.19.1...v0.23.0 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-13 19:56:41 +01:00
dependabot[bot]
bae12f41b8
Bump structopt from 0.3.23 to 0.3.25 ( #10253 )
...
* Bump structopt from 0.3.23 to 0.3.25
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.23 to 0.3.25.
- [Release notes](https://github.com/TeXitoi/structopt/releases )
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.23...v0.3.25 )
---
updated-dependencies:
- dependency-name: structopt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* cargo fmt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-11-13 02:35:07 +00:00
dependabot[bot]
423cde8ad0
Bump hex-literal from 0.3.3 to 0.3.4 ( #10246 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.3.3...hex-literal-v0.3.4 )
---
updated-dependencies:
- dependency-name: hex-literal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-13 00:32:44 +00:00
Arkadiy Paronyan
4cbbf0cf43
Kill the light client, CHTs and change tries. ( #10080 )
...
* Remove light client, change tries and CHTs
* Update tests
* fmt
* Restore changes_root
* Fixed benches
* Cargo fmt
* fmt
* fmt
2021-11-12 14:15:01 +01:00
sandreim
fdb3c64243
Add group name in task metrics ( #10196 )
...
* SpawnNamed: add new trait methods
Signed-off-by: Andrei Sandu <sandu.andrei@gmail.com >
* Implement new methods
Signed-off-by: Andrei Sandu <sandu.andrei@gmail.com >
* cargo fmt
Signed-off-by: Andrei Sandu <sandu.andrei@gmail.com >
* SpawnNamed: add new trait methods
Signed-off-by: Andrei Sandu <sandu.andrei@gmail.com >
* Implement new methods
Signed-off-by: Andrei Sandu <sandu.andrei@gmail.com >
* cargo fmt
Signed-off-by: Andrei Sandu <sandu.andrei@gmail.com >
* New approach - spaw() group param
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update traits: SpawnNamed and SpawnNamed
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update TaskManager tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update test TaskExecutor
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Fix typo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* grunt work: fix spawn() calls
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* remove old code
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo fmt - the right version
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Implement review feedback
- use Option group name in SpawnNamed methods
- switch to kebab case
- implement default group name
- add group name to some tasks
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2021-11-11 17:15:09 +00:00
David
eeb80f9e0b
Upgrade jsonrpsee to v0.4.1 ( #10022 )
...
* Upgrade jsonrpsee to v0.4.1
* remove needless BlockT trait bound
* use default wss port in URL
* Fix try_runtime build
* Partially fix for "remote-tests" feature
* Review feedback
* fmt
* Sort out trait bounds for benches
* Fmt
* fmt again?
* fmt with nightly-2021-09-13
* Upgrade try-runtime as well
* fmt
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2021-11-11 11:29:28 +00:00
sander2
bb6aecee7a
expose substrate-cli service ( #10229 )
...
* expose substrate-cli service
* chore: undo change to new_full (since new_full_base is exposed already)
2021-11-11 08:23:34 +00:00
Koute
59078fcf94
Add a block production benchmark ( #10104 )
...
* Add a block production benchmark
* Simplify the block production benchmark
* Cleanups; switch execution strategy to WASM
* Switch WASM execution to `Compiled`
* Reduce the setup cost of the benchmark
Creating all of those extrinsics takes up *a lot* of time, up to the point
where the majority of the time is actually spent *outside* of the code
which we want to benchmark here. So let's only do it once.
* Add a variant of the block production benchmark with proof recording
2021-11-09 13:38:31 +00:00
Bastian Köcher
b08d3017a8
Switch to Rust 2021 ( #10170 )
...
* Switch to Rust 2021
* Update trybuild to fix errors
2021-11-04 19:54:48 +01:00
Guillaume Thiolliere
4292e18e50
Automatic pallet parts in construct_runtime ( #9681 )
...
* implement automatic parts
* ui tests
* rename
* remove unnecessary exclude
* better doc
* better doc
* fix genesis config
* fix UI tests
* fix UI test
* Revert "fix UI test"
This reverts commit a910351c0b24cfe42195cfd97d83a416640e3259.
* implemented used_parts
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* doc + fmt
* Update frame/support/procedural/src/construct_runtime/parse.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* add doc in the macro
* remove yet some more parts
* fix ui test
* more determnistic error message + fix ui tests
* fix ui test
* Apply suggestions from code review
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* do refactor + fix ui tests
* fmt
* fix test
* fix test
* fix ui test
* Apply suggestions from code review
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* refactor
* remove even more part in node-runtime
* fix test
* Add flow chart for the construct_runtime! execution flow
* Fix typo
* Ignore snippets that don't contain code
* Refactor some code in expand_after
* Rename expand_after to match_and_insert
* cargo fmt
* Fix rename
* Remove frame_support argument to construct_runtime_parts
* Make use of tt-call to simplify intermediate expansions
* cargo fmt
* Update match_and_insert documentation
* Reset cursor to 0 when no matching patterns are found
* Reorder struct fields on MatchAndInsertDef
* Add test for dependency renames and fix frame-support import
* Add more doc comments
* Update frame/support/test/compile_pass/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-31 13:55:10 +00:00
Squirrel
744bc44de2
Removal of light client from substrate ( #9684 )
...
* Removal of light client from substrate
* add missing import
* These tests relate to there being light and non light clients.
* removing lightnodes from test
* cargo fmt
* not needed
* LightDataChecker not needed any longer
* cargo fmt
* Update client/service/test/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/test/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* cargo fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-30 12:38:27 +00:00
Kian Paimani
e4f9213871
make the ws buffer size configurable ( #10013 )
...
* make the ws buffer size configurable
* Update client/cli/src/commands/run_cmd.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update client/cli/src/commands/run_cmd.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update client/cli/src/commands/run_cmd.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Final touches
* Apply suggestions from code review
* fix bench
* remove in buffer
* Apply suggestions from code review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-14 11:44:07 +00:00
Dan Shields
8db7ec9cc9
Migrate to docs.substrate.io throughout ( #10007 )
...
* all reverences of substrate.dev replaced with *correct* docs.substrate.io links
* fix links in non-cargo files, errors in replace
* homepage https://substrate.io
* cargo +nightly fmt
* FMT
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-10-13 12:56:56 -06:00
dependabot[bot]
ee7b4f06d7
Bump hex-literal from 0.3.1 to 0.3.3 ( #9974 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.3.1 to 0.3.3.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.3.1...hex-literal-v0.3.3 )
---
updated-dependencies:
- dependency-name: hex-literal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-09 14:23:57 +00:00
Bastian Köcher
f4b287c7c4
Disable log reloading by default ( #9966 )
...
* Disable log reloading by default
This disables the log reloading that was enabled by default. The problem
is that the log reload implementation of `tracing` is using a lock to
make the layer replaceable. This lock needs to be locked every time we
need to check if a particular target is enabled (assuming the log level
is high enough). This kills the performance when for example
`sometarget=trace` logging is enabled.
* 🤦
* Remove unused parameter
* Fix test
* Fix
2021-10-08 11:46:08 +00:00
dependabot[bot]
36d25d4994
Bump assert_cmd from 2.0.1 to 2.0.2 ( #9972 )
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.1...v2.0.2 )
---
updated-dependencies:
- dependency-name: assert_cmd
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 11:18:05 +00:00
dependabot[bot]
5edb6fc224
Bump jsonrpsee-ws-client from 0.3.0 to 0.3.1 ( #9963 )
...
Bumps [jsonrpsee-ws-client](https://github.com/paritytech/jsonrpsee ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases )
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/jsonrpsee/compare/v0.3.0...v0.3.1 )
---
updated-dependencies:
- dependency-name: jsonrpsee-ws-client
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-08 09:01:04 +00:00
Bastian Köcher
451413f47e
Transaction pool: Adds benchmark and improves performance ( #9958 )
...
* Yep
* Make it compile
* Make the benchmark work
* Some stuff
* Optimize transaction pool `BestIterator`
* Some docs
* Fix more warnings
* Fix compilation
* FMT
2021-10-08 10:02:25 +02:00
Arkadiy Paronyan
e6ff531d0b
Warp sync part II ( #9284 )
...
* Gap sync
* Gap epoch test
* Simplified network requests
* Update client/db/src/utils.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Fixed v1 migration and added some comments
* Next epoch is always regular
* Removed fork tree change
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Added a comment and converted assert to error
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-07 09:31:39 +00:00
Squirrel
07761c22f7
remove dep on unmaintained difference crate ( #9946 )
2021-10-06 18:56:37 +02:00
Vincent Geddes
653f299b95
Pallet Assets: Create new asset classes from genesis config ( #9742 )
...
* Pallet Assets: Allow creating asset classes from genesis config
* Add accounts and metadata to genesis config
* whitespace fixes
* Update more chainspecs
* Run rustfmt over code
* More formatting fixes
* Update frame/assets/src/lib.rs
Improve error message
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/assets/src/lib.rs
Improve error message
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-30 16:32:29 +00:00
Squirrel
e64693933f
Less sleeps ( #9848 )
...
* Less sleeps
* No need to use tokio-test crate
* Less sleep
* Avoid leaving zombie substrates around
(when panicing in tests)
* Remove unused imports
* Incorporating feedback
* rename method
* Use rpc_api
* Update bin/node/cli/tests/temp_base_path_works.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update bin/node/cli/tests/temp_base_path_works.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-29 10:55:31 +00:00
dependabot[bot]
559faf1c61
Bump async-std from 1.9.0 to 1.10.0 ( #9759 )
...
Bumps [async-std](https://github.com/async-rs/async-std ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/async-rs/async-std/releases )
- [Changelog](https://github.com/async-rs/async-std/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-rs/async-std/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: async-std
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 10:53:15 +02:00
Andrew Jones
49b6dfd2e5
Enrich metadata with type information ( #8615 )
...
* Cargo.lock after merge
* Restore scale-info feature
* Fully qualify TypeInfo derive
* Skip PendingSwap T
* Add missing skip_type_params attr
* metadata docs features
* Reduce pallet event attribute to struct
* Cargo.lock
* Update frame/balances/src/tests_composite.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Line widths check
* Cargo.lock
* Add scale-info/std
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Use `skip_type_params` to remove `TypeInfo` requirements on checks
* Revert "Remove unused Call metadata stuff"
This reverts commit 41311f85
* Skip BalanceSwapAction type parameter
* Remove unused event metadata macro
* Update frame-metadata
* Update primitives/npos-elections/compact/src/codec.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Manual TypeInfo for Header
* Remove TypeInfo requirement for consts in BoundedVec etc.
* Another TypeInfo bound removed
* review: fix indentation
* TypeInfo impls for Identity types
* Add some todos to add custom TypeInfo impls
* Update frame/support/procedural/src/pallet/expand/pallet_struct.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Add some todos to add custom TypeInfo impls
* Add a test for manual Data TypeInfo impl
* Add custom TypeInfo impl for Vote
* Era custom TypeInfo crimes
* Revert finality-grandpa version to 0.14.z
* review: renamed module to pallet_constants_metadata
* New line at end of file
* Add missing scale-info/std
* Update frame/support/src/storage/types/mod.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Remove StorageEntryType::Map unused flag
* Add missing scale-info dependency after merge
* SignedExtension::AdditionalSigned metadata
* Update frame-metadata, use abbreviated docs and args fields
* Update frame/example/Cargo.toml
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Add scale_info/std and remove unused scale-info dependency
* Remove scale-info dependency
* Remove treasury pallet::metadata
* Remove redundant Event test
* Add back scale-info as dev dependency
* fix error metadata when no error defined in decl_module
* Add Module3 to tests
* Fix metadata test
* Add docs feature to frame-support test
* WIP fixing pallet metadata test
* Remove redundant FunctionMetadata, FunctionArgumentMetadata as per https://github.com/paritytech/frame-metadata/pull/20
* Use main branch of frame-metadata
* Use patch of scale-info for latest changes
* Use latest patched scale-info
* Manual TypeInfo for DigestItem
* Manual TypeInfo for DigestItem
* Update scale-info
* Skip __Ignore variants for Error, depends on https://github.com/paritytech/scale-info/pull/117
* Named fields for FRAME v2 pallet Call variants
* Named fields for FRAME v1 pallet Call variants
* Add missing scale-info dependency
* WIP expand benchmark call variant
* fix benchmark with new function
create a new function for each variant of a pallet call.
This function is called by benchmarking macro in order not to break call
creation with unnamed argument
* fix tests
* more fix
* Fix staking tests
* Fix offchain workers calls
* Cherry pick rustfmt.toml from master
* cargo +nightly-2021-06-22 fmt --all
* Update to new call variant structs
* More call variant struct updates
* Remove unused import
* More call variant structs
* More call variant structs
* Even more call variant structs
* Mooar variant structs
* Evermore variant structs
* Call variant structs ad infinitum
* Fmt
* More call variants
* Last call variant
* Call variants all done?
* Fix SS58Prefix type
* Potential workaround for BitFlags<IdentityFields> TypeInfo
* Enable docs capturing for Call, Event, and Error types
* Fix IdentityFields TypeInfo
* Remove metadata-docs feature
* Add capture_docs = true for legacy Call, Event and Error types
* Fmt
* Fix metadata test type
* Update benchmarks with call struct variants
* Fmt
* More test fixes
* Fmt
* Fix benches
* Use latest capture_docs attr
* Latest scale_info
* Fmt
* review: change &Vec to &[]
* Remove pallet metadata attr
* review: remove commented out test code
* review: skip_type_params trailing comma suggestion
* Update to scale-info 0.10.0
* Update construct_runtime ui tests, different because of metadata TypeInfo impls
* Add some TypeInfo derives for UI tests
* Update storage ensure span ui stderrs
* Update call argument bound ui tests
Possibly changed because change from tuple to struct variants?
* Add scale-info dev dependency
* Update to latest finality-grandpa release
* review: missing newline
* review: missing scale-info/std
* review: remove duplicate scale-info/std
* review: remove fully qualified TypeInfo
* review: add missing scale-info/std
* review: remove unnecessary imports.
* Fmt
* Use crates.io RC version of frame-metadata
* Remove scale-info/std because it is a dev dependency
* Add missing scale_info dev-dependency for test
* Delete empty metadata folder
* Fix sp_std import
* review: improve manual UncheckedExtrinsic TypeInfo impl
* review: use full scale-info for dev-dependency
* Remove DefaultByteGetter impl
* review: derive TypeInfo for generic header
* Fmt
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update bin/node/executor/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/identity/src/types.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/support/src/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove redundant derive
* Simplify scale-info dependency
* Strip underscore prefix from call variant struct names
* Another underscore field
* More underscore fields
* Another underscore field
* Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map
* Fmt
* Revert weights formatting
* Fix up some tests
* Fix up some tests for StorageEntryTypeMetadata
* scale-info dev dependency
* Fix test error
* Add missing TypeInfo derives
* Add back missing scale-info dependency
* Add back missing scale-info dependency
* Fix npos compact impls
* Cargo.lock
* Fmt
* Fix errors
* Fmt
* Fix renamed raw_solution field
* Fix error
* Fmt
* Fix some benchmarks
* Fmt
* Stray R
* Fix
* Add missing TypeInfos
* ui test fix
* Fix line widths
* Revert "ui test fix"
This reverts commit 2d15ec058a216e3f92d713f1174603a2bb1eac65.
* Upgrade to scale-info 0.11.0
* Revert "Upgrade to scale-info 0.11.0"
This reverts commit 047bb179085a0059c36cd20ab405f55cf0867e28.
* Add Runtime type
* Update to scale-info 0.12
* Update to scale-info 1.0
* Update frame-metadata to version 14.0.0
* Patch finality-grandpa until release available
* Fix metadata tests
* Fix metadata tests
* Fmt
* Remove patched finality-grandpa
* Fix tests, use scale_info imports
* Fix pallet tests
* Add BlockNumber TypeInfo bound
* ui test fix
* Cargo.lock
* Remove pallet metadata
* Cargo.lock
* Add missing scale-info dependency
* Remove pallet event metadata
* Fix error
* Fix collective errors
* Semicolol
* Fmt
* Remove another metadata attribute
* Add new variant to custom digest TypeInfo
* Fmt
* Cargo.lock from master
* Remove comma lol
* Fix example call error
* Fix example call error properly
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-15 11:40:41 +00:00
Bastian Köcher
c09d52ead7
Use tokio runtime handle instead of TaskExecutor abstraction ( #9737 )
...
* Use tokio runtime handle instead of TaskExecutor abstraction
Before this pr we had the `TaskExecutor` abstraction which theoretically
allowed that any futures executor could have been used. However, this
was never tested and is currently not really required. Anyone running a
node currently only used tokio and nothing else (because this was hard
coded in CLI). So, this pr removes the `TaskExecutor` abstraction and
relies directly on the tokio runtime handle.
Besides this changes, this pr also makes sure that the http and ws rpc
server use the same tokio runtime. This fixes a panic that occurred when
you drop the rpc servers inside an async function (tokio doesn't like
that a tokio runtime is dropped in the async context of another tokio
runtime).
As we don't use any custom runtime in the http rpc server anymore, this
pr also removes the `rpc-http-threads` cli argument. If external parties
complain that there aren't enough threads for the rpc server, we could
bring support for increasing the thread count of the tokio runtime.
* FMT
* Fix try runtime
* Fix integration tests and some other optimizations
* Remove warnings
2021-09-12 12:29:11 +00:00
Falco Hirschenberger
16144e7404
Store the database in a role specific subdirectory ( #9645 )
...
* Store the database in a role specific subdirectory
This is a cleaned up version of #8658 fixing #6880
polkadot companion: paritytech/polkadot#2923
* Disable prometheus in tests
* Also change p2p port
* Fix migration logic
* Use different identification file for rocks and parity db
Add tests for paritydb migration
2021-09-07 13:31:25 +00:00
Bastian Köcher
f92e5c5e65
Upgrade tokio to 1.10 ( #9575 )
...
* Upgrade tokio to 1.10
* Fix test runner
* Try fix it
* Update Cargo.lock
* Review feedback
* ahhhh
* FML
* FMT
* Fix tests
2021-08-24 14:31:19 +00:00
Ashley
bad4544507
Make choosing an executor (native/wasm) an explicit part of service construction ( #9525 )
...
* Split native executor stuff from wasm executor stuff
* Remove `native_runtime_version` in places
* Fix warning
* Fix test warning
* Remove redundant NativeRuntimeInfo trait
* Add a warning for use_native
* Run cargo fmt
* Revert "Add a warning for use_native"
This reverts commit 9494f765a06037e991dd60524f2ed1b14649bfd6.
* Make choosing an executor (native/wasm) an explicit part of service construction
* Add Cargo.lock
* Rename Executor to ExecutorDispatch
* Update bin/node/executor/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Fix tests
* Fix minor node-executor error
* Fix node cli command thing
Co-authored-by: Squirrel <gilescope@gmail.com >
2021-08-18 14:26:41 +02:00
David
2de7e51c2a
Remove substrate-in-the-browser ( #9541 )
...
* Comment out browser stuff
* Remove browser stuff
* Remove more wasm transport code
* Remove ExtTransport and rework how telemetry initialises.
* Change (most) wasm-timer using code to use std::time
* Rename CI-job
* Aura does not compile for wasm
* Remove testing in the browser on CI
* Update README
* Leave `StreamSink` be
* fmt
2021-08-17 18:06:23 +00:00
Trevor Arjeski
d9f02296ab
RUSTSEC-2021-0076 bump libsecp256k1 ( #9391 )
...
* RUSTSEC-2021-0076 bump libsecp256k1
libsecp256k1 allows overflowing signatures
https://rustsec.org/advisories/RUSTSEC-2021-0076
Changes were made to conform to libsecp256k1 version differences.
Closes #9356
* parse_standard_slice() -> parse_overflowing_slice()
* Added v2 host function for ecdsa_verify
* Add feature tag over helpers
* Added ecdsa_verify v2 to test runner
* PR feedback
- Spaces -> tabs
- renamed two helper functions
* Fixed imports after rebasing
* Bump rest of libsecp256k1 (and libp2p)
libp2p also uses libsecp256k1 so it is required to be bumped too, along
with all the version difference changes.
* Add version2 for ecdsa pubkey recovery
* libp2p rebase master fixes
* Fix test panic when non Behaviour event is returned
* Update bin/node/browser-testing/Cargo.toml
* Update primitives/core/src/ecdsa.rs
* Update primitives/core/src/ecdsa.rs
* Update Cargo.lock
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-16 14:17:10 +00:00
Squirrel
7e9b8d278e
depend-o-pocalipse ( #9450 )
...
Remove unneeded dependencies and dev-dependencies.
Made self_destruct test not dependent on wasm bin size.
Updated code related to deprecated warning on tracing-subscriber `scope()`
( See https://github.com/tokio-rs/tracing/issues/1429 )
2021-08-13 15:18:37 +01:00
Bastian Köcher
c44aba89e6
Upgrade jsonrpc to 0.18.0 ( #9547 )
...
* Upgrade jsonrpc to 0.18.0
I think this says all :P
* 🤦
* Fmt etc
* Fix tests
* Fix tests again...
* Better impl
* Revert "Tell dependabot to ignore jsonrpc-* updates (#9518 )"
This reverts commit 6e0cd5587d .
2021-08-13 06:46:07 +00:00
Kian Paimani
abd08e29ce
Rewrap all comments to 100 line width ( #9490 )
...
* reformat everything again
* manual formatting
* last manual fix
* Fix build
2021-08-11 14:56:55 +00:00
Arkadiy Paronyan
52b0a4845f
Storage chain fixes + guide ( #9504 )
...
* Transaction storage guide and fixes
* Apply suggestions from code review
Co-authored-by: Bruno Škvorc <bruno@skvorc.me >
* Update frame/transaction-storage/README.md
Co-authored-by: Bruno Škvorc <bruno@skvorc.me >
* Extended example
Co-authored-by: Bruno Škvorc <bruno@skvorc.me >
2021-08-05 12:07:23 +00:00
Bastian Köcher
6e4d30e8ad
Decouples light-sync state from chain spec ( #9491 )
...
* Decouples light-sync state from chain spec
This decouples the light-sync state from chain spec. First, the
light-sync state currently only works with BABE+Grandpa, so not
all *Substrate* based chains can use this feature. The next problem was
also that this pulled the `sc-consensus-babe` and `sc-finality-grandpa`
crate into `sc-chain-spec`.
If a chain now wants to support the light-sync state, it needs to add
the `LightSyncStateExtension` to the chain spec as an extension. This is
documented in the crate level docs of `sc-sync-state-rpc`. If this
extension is not available, `SyncStateRpc` fails at initialization.
* Fix compilation for browser
* Fmt
2021-08-04 13:38:14 +00:00
Arkadiy Paronyan
f56232602f
Warp sync part I ( #9227 )
...
* Started warp sync
* BABE & GRANDPA recovery
* Warp sync protocol
* Sync warp proofs first
* Added basic documentation
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Style changes
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* fmt
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Fixed chage trie pruning wrt missing blocks
* Restore parent finalization
* fmt
* fmt
* Revert pwasm-utils bump
* Change error type & check API version
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Build fix
* Fixed target block check
* Formatting
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-02 08:27:18 +00:00
Squirrel
df59596ec0
Move client consensus parts out of primitives and into client/consensus/api ( #9319 )
...
* moved client code out of primitives
* bump ci
* Fixup from merge.
* Removed unused deps thanks to review feedback
* Removing unneeded deps
* updating lock file
* note about rustfmt
* fixed typo to bump ci
* Move lonely CacheKeyId to parent
* cargo fmt
* updating import style
* Update docs/STYLE_GUIDE.md
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-07-30 13:27:17 +00:00