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
RyuH1
29ff036463
Add SS58 prefix for Automata ( #9805 )
2021-10-01 11:22:13 +00:00
Liu-Cheng Xu
00973f5b62
Clean up sc-peerset ( #9806 )
...
* Clean up sc-peerset
* cargo +nightly fmt --all
* Nit
* Nit
* .
* Nit
* .
* Apply suggestions from code review
* .
* Update client/peerset/src/peersstate.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-01 09:43:55 +00:00
ucover
f8ce186496
Test each benchmark case in own #[test] ( #9860 )
...
* Generate one #[test] fn per bench case.
* Update benchmark macro syntax in frame pallets.
* Explain new benchmark macro syntax in example pallet.
* support with and without a semicolon
* update pallets to use individual tests
* migrate staking too
* migrate more pallets
* fix up democracy and use individual tests
* Fix comment
* Put println message in panic
* Remove `another_set_dummy` from doc
`another_set_dummy` is not present in the benchmarking.rs (anymore).
* Update doc for benchmarks macro
* Update doc for impl_benchmark_test_suite macro
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-01 08:17:26 +00:00
Alexander Samusev
a31ab1fc37
Add build with docker section to README ( #9792 )
...
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-01 03:54:41 +00:00
Shawn Tabrizi
54617ef661
Simple Trait to Inspect Metadata ( #9893 )
...
* simple trait to inspect metadata
* import vec
2021-09-30 16:46:48 +00: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
Denis Pisarev
74475e602b
doc: subkey usage ( #9905 )
...
* CI: md styling
* CI: add container usage
2021-09-30 17:12:28 +02:00
Robert Klotzner
aa311c3734
Silence alert about large-statement-fetcher ( #9882 )
...
* Silence alert about large-statement-fetcher
That task is not continuous and behaving exactly as desired.
* Get rid of rule completely
- Pierre thinks it does not add any value
- Basti rightly complains that Polkadot specific exceptions make little
sense in the Substrate repo.
2021-09-30 16:42:08 +02:00
zjb0807
fc4c67161b
Fix democracy on-initialize weight ( #9890 )
...
* fix democracy on-initialize weight
* fix tests
* add base weight on LaunchPeriod
* fix fmt check
* trigger GitHub actions
* trigger GitHub actions
* update weights
2021-09-30 13:22:54 +00:00
Bastian Köcher
a58b5a947f
Fix basic authorship flaky test ( #9906 )
...
The test is flaky because sometimes we hit the 9 seconds deadline when
the CI was probably on high load. To "solve" this we just use an huge
deadline that should never be triggered. The deadline isn't required anyway.
2021-09-30 14:58:28 +02:00