dependabot[bot]
c7a7d1911d
Bump quote from 1.0.9 to 1.0.10 ( #9980 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: quote
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-11 04:25:52 +00: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
zjb0807
b7b467e062
add TypeInfo for DispatchTime ( #9987 )
2021-10-09 13:42:15 +00:00
Dan Shields
3319cad9be
add note on --dev behavior ( #9953 )
...
* add note on `--dev` behavior
* Update client/cli/src/params/shared_params.rs
* Update client/cli/src/params/shared_params.rs
* clippy fmt
* Update client/cli/src/params/shared_params.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update client/cli/src/params/shared_params.rs
Co-authored-by: adoerr <0xad@gmx.net >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-10-09 06:16:27 +00:00
Bastian Köcher
5973e316b0
Remove unused deps from sp-tracing ( #9979 )
2021-10-08 23:54:46 +02:00
Andronik Ordian
12f958faa8
NetworkService: change remove_from_peers_set to accept PeerIds ( #9964 )
...
* NetworkService: expose split_multiaddr_and_peer_id
* Revert "NetworkService: expose split_multiaddr_and_peer_id"
This reverts commit 47b9a0d57c3617e64d01c449afca8896bd4bb6b6.
* change remove_from_peer_set to accets PeerIds
* fixes
* try fixing it
* try fixing it again
* FMT
* revert me
* Revert "revert me"
This reverts commit 1ea34f473f1aedc8b3e6e888d1ad2e1b45eaa1e0.
2021-10-08 15:31:18 +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
Bastian Köcher
d61d710bb8
Use correct db path for parity-db ( #9971 )
...
This was overseen in: https://github.com/paritytech/substrate/pull/9500
2021-10-08 12:05:07 +02:00
dependabot[bot]
3fcc4d7e17
Bump regex from 1.4.3 to 1.5.4 ( #9969 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.4.3 to 1.5.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.4.3...1.5.4 )
---
updated-dependencies:
- dependency-name: regex
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-10-08 09:40:16 +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
dependabot[bot]
b965d49a6a
Bump jsonrpsee-proc-macros from 0.3.0 to 0.3.1 ( #9957 )
...
Bumps [jsonrpsee-proc-macros](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-proc-macros
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:38:58 +02:00
Wei Tang
a5926462c1
Remove unnecessary mut reference in handle_justification ( #9968 )
2021-10-08 02:44:24 +00:00
Eric Miller
b564f4f031
Support extra constant renaming ( #9814 )
...
* Rebased with master. Resolved merge conflict in
frame/support/test/tests/pallet.rs
* Switching Account ID to SomeType1, as SomeType3 was giving me conversion error.
* Wrong indent config. Fixed.
* These tabs look fine locally, but look different on Github. Trying to get the style config right.
* Parsing pallet::constant_name.
Passing unit tests, which is confusing because I didn't change `ident` in the ExtraConstantDef initialization.
* Finalized parsing of extra constant name by adding optional metadata field.
Added expansion logic that replaces respective `idents` where they exist.
* Erasing this to try to keep the format the same across the source code.
* Another formatting change for consistency.
* Update frame/support/procedural/src/pallet/expand/constants.rs
strictly more idiomatic.
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/support/procedural/src/pallet/parse/extra_constants.rs
strictly idiomatic change.
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fixing formatting and CI warnings.
* switched to nightly compiler to use rustfmt.toml
Co-authored-by: Eric Miller <emiller@lirio.co >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-10-07 23:02:09 +00:00
Guillaume Thiolliere
e81a425241
Root origin always bypass all filter, other origin cannot bypass BaseCallFilter even when constructed from Root origin ( #9948 )
...
* improve root filter bypass
* improve doc
* fmt
* refactor test for more understandable flow
* Update frame/support/procedural/src/construct_runtime/expand/origin.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* match
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-10-07 15:46:06 +00:00
dependabot[bot]
cec88b7144
Bump tracing from 0.1.25 to 0.1.29 ( #9956 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.25 to 0.1.29.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.25...tracing-0.1.29 )
---
updated-dependencies:
- dependency-name: tracing
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-07 17:18:13 +02:00
girazoki
48a524c565
Add low level traits to retrieve name, symbol, decimals and allowance in pallet-assets ( #9757 )
...
* Add ERC20 compatible trait to retrieve name, symbol, decimals and allowance
* delegate instead of spender
* Remove erc20 trait and divide it into lower level traits
* add import
* approvals and metadata depend on fungibles
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-07 14:29:48 +00:00
Robert Klotzner
44824ae472
Expose set_reserved_peers ( #9960 )
2021-10-07 14:03:47 +00:00
dependabot[bot]
370439ee82
Bump prometheus from 0.11.0 to 0.12.0 ( #9454 )
...
Bumps [prometheus](https://github.com/tikv/rust-prometheus ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/tikv/rust-prometheus/releases )
- [Changelog](https://github.com/tikv/rust-prometheus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tikv/rust-prometheus/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: prometheus
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-10-07 12:13:29 +00:00
dependabot[bot]
d8f07b3203
Bump sha2 from 0.9.3 to 0.9.5 ( #9955 )
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.9.3 to 0.9.5.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.9.3...sha2-v0.9.5 )
---
updated-dependencies:
- dependency-name: sha2
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-07 10:19:37 +00:00
Davide Gessa
44d1425e5c
Replace is_global to is_private, maybe fixing #9922 ( #9943 )
...
* replace is_global to is_private, maybe fixing #9922
* use of ip_network for private_ipv4 filtering
* check is_global for both ip4 and ip6
* fix for rustfmt
2021-10-07 09:51:01 +00: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
9f1c3acb7d
Avoid hangs in tests ( #9949 )
...
* Avoid hangs in tests
* set timeout for 10 mins.
2021-10-07 09:08:57 +00:00
Squirrel
f4bffe6d0b
Less deps: Stop using old version of libsecp256k1 ( #9947 )
...
(Moving further to 0.7 would require upgrading rand first)
2021-10-07 07:15:33 +01:00
Squirrel
07761c22f7
remove dep on unmaintained difference crate ( #9946 )
2021-10-06 18:56:37 +02:00
dependabot[bot]
c45981f789
Bump parity-db from 0.3.1 to 0.3.2 ( #9944 )
...
Bumps [parity-db](https://github.com/paritytech/parity-db ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/paritytech/parity-db/releases )
- [Commits](https://github.com/paritytech/parity-db/commits )
---
updated-dependencies:
- dependency-name: parity-db
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-06 18:45:25 +02:00
André Silva
7e5c022aea
staking: only disable slashed validators and keep them disabled for whole era ( #9448 )
...
* session: remove disabled validators threshold logic
* staking: add logic to track offending validators
* staking: disable validators for the whole era
* frame: fix tests
* staking: add tests for disabling validators handling
* staking: fix adding offending validator when already slashed in era
* address review comments
* session, staking: add comments about sorted vecs
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-10-06 16:22:34 +00:00
Albrecht
12e9e7ceb3
disambiguate Config trait in #[pallet::constant] ( #9942 )
...
* fix: use fully qualified syntax to disambiguate
* add instance generic
* line length < 100
2021-10-06 09:22:49 +00:00
Bastian Köcher
6f40318ca2
--dev implies --tmp (#9938 )
...
* `--dev` implies `--tmp`
This changes `--dev` to imply `--tmp` when no explicit `--base-path` is provided.
* Update client/cli/src/commands/run_cmd.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-10-06 09:20:21 +00:00
dependabot[bot]
44b7016bb1
Bump secrecy from 0.7.0 to 0.8.0 ( #9897 )
...
Bumps [secrecy](https://github.com/iqlusioninc/crates ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/iqlusioninc/crates/releases )
- [Commits](https://github.com/iqlusioninc/crates/compare/secrecy/v0.7.0...secrecy/v0.8.0 )
---
updated-dependencies:
- dependency-name: secrecy
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-10-05 21:16:37 +00:00
Bastian Köcher
6067fc9893
Remove IgnoredIssuance from metadata constants ( #9937 )
...
This value is not really meant to be "constant".
2021-10-05 23:10:25 +02:00
Koute
dbc97029b6
Update multiple dependencies ( #9936 )
2021-10-05 14:22:28 +00:00
Koute
400f3e6579
Speed up timestamp generation when logging ( #9933 )
...
* Speed up timestamp generation when logging
* Align to review comments.
* Correct a typo
2021-10-05 12:15:18 +00:00
Squirrel
d45aada6a7
First word should be Substrate not Polkadot ( #9935 )
...
(if we want something put in the substrate PR.)
2021-10-05 11:26:34 +00:00
Squirrel
3a53892e2f
Improved file not found error message ( #9931 )
...
* Say where you looked for the file
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-05 09:42:33 +01:00
Kian Paimani
626ca93383
don't read events in elections anymore. ( #9898 )
...
* dont read events in elections anymore.
* Update frame/election-provider-multi-phase/src/lib.rs
* Fix test for Substrate#9898 (#9907 )
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
2021-10-05 06:23:09 +00:00
Shawn Tabrizi
2272a0ed25
Remove incorrect sanity check ( #9924 )
...
* causes issue
* remove the bad error check
2021-10-04 22:19:21 +00:00
Bastian Köcher
cb77e783b7
Require crypto scheme for insert-key ( #9909 )
...
* Require crypto scheme for `insert-key`
We should not "guess" the scheme as this can depend on the
implementation of the runtime etc.
* FMT
2021-10-04 20:55:36 +00:00
Chevdor
95cf70c62a
chore: refresh of the substrate_builder image ( #9808 )
...
* chore: refresh of the substrate_builder image
fix #9715
* chore: renaming + build script
* Fix spaces/tabs
* Add doc
* Remove non binary
* Update docker/substrate_builder.Dockerfile
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-04 21:19:17 +02:00
Tomasz Drwięga
8ae18720e6
Introduce block authorship soft deadline ( #9663 )
...
* Soft limit.
* Add soft deadline tests.
* cargo +nightly fmt --all
* Fix sc-service test.
* Improving tests
2021-10-04 14:30:46 +00:00
Tomasz Drwięga
374fb6a921
Rework Transaction Priority calculation ( #9834 )
...
* Add transaction validity docs.
* Re-work priority calculation.
* Fix tests.
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* cargo +nightly fmt --all
* Fix an obvious mistake :)
* Re-work again.
* Fix test.
* cargo +nightly fmt --all
* Make VirtualTip dependent on the transaction size.
* cargo +nightly fmt --all
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fix compilation.
* Update bin/node/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-04 14:25:18 +00:00
Koute
886c42c5c8
Do not propagate host RUSTFLAGS when checking for WASM toolchain ( #9926 )
...
* Do not propagate host RUSTFLAGS when checking for WASM toolchain
* Update utils/wasm-builder/src/prerequisites.rs
* Update utils/wasm-builder/src/prerequisites.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-04 13:28:51 +00:00
Jaco
73d765ec30
Small quoting comment fix ( #9927 )
...
Tiny quotes fix that snuck in lately (something I picked up elsewhere in document generation)
2021-10-04 13:56:06 +02:00
Squirrel
c9410186f1
add clippy to CI ( #9694 )
...
* Focus on correctness lints. This relies on a compiler patch that landed 8th July 2021.
If people are using an earlier version of the compiler everything will still work unless they try and run clippy.
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-03 17:09:26 +01:00
Robert Habermeier
06c4e20992
Ensure BeforeBestBlockBy voting rule accounts for base ( #9920 )
...
* Ensure BeforeBestBlockBy voting rule accounts for base
* fmt
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-10-03 15:15:30 +02:00
Dan Shields
b9c615c8d4
rm .maintain lock ( #9919 )
...
* rm maintain lock
* ignore template gen lockfile
2021-10-02 21:01:07 +02:00
Dan Shields
619b3a5a68
Downstream node-template pull ( #9915 )
...
* downstream node template pull: README updated, add shell.nix
* consistant cargo.toml style
* Update bin/node-template/shell.nix
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-02 08:27:06 +00:00
Jay Pavlina
b890a28ca3
Implement core::fmt::Debug for BoundedVec ( #9914 )
2021-10-02 08:11:37 +00:00
Tomasz Drwięga
085935dd0a
Quickly skip invalid transactions during block authorship. ( #9789 )
...
* Support skipping invalid transactions in the iterator.
* Expose concrete iterator.
* cargo +nightly fmt --all
* More consistent placement.
* Update Cargo.lock
* Pass transaction to 'report_invalid'
2021-10-01 14:25:13 +00:00