Grachev Mikhail
64cc2514a7
Remove broken links in Nicks Pallet ( #10086 )
...
* Fix broken links in Nicks Pallet
* Update frame/nicks/src/lib.rs
* Update frame/nicks/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-22 19:27:09 +00:00
Koute
3d5f093ddb
Speed up logging once again ( #9981 )
...
* Update `tracing`-related dependencies
* Enable `parking_lot` feature in `tracing-subscriber`
* Add an asynchronous stderr logger
* Make clippy happy
* Add an integration test for the logger
* Refactor `test_logger_filters`'s subprocess machinery into a separate function
* Use a child process instead of hooking into stderr for the test
* Add a doc comment for `MakeStderrWriter`
* Move the initialization into the `MakeStderrWriter`'s constructor
* Add an extra test case to trigger the logger's emergency flush mechanism
* Use the buffer's mutex for asynchronous flushes
* Remove vestigial `nix` dependency from one of the previous commits
2021-10-21 16:54:15 +00:00
João Paulo Silva de Souza
6334692e9c
remove logging from the check-dependent-* job ( #10076 )
...
such command should belong to the script rather than the job
2021-10-21 14:03:50 +01:00
Vladimir Istyufeev
c8126908d4
Temporarily disable node-bench-regression-guard ( #10075 )
2021-10-21 12:44:46 +00:00
Gavin Wood
1dc753eb08
Allow pallet's info to be enumerated ( #10053 )
...
* Allow pallet's info to be enumerated
* Fixes
* Formatting
* Flat tuple for getting all pallet instances
* Renaming and fixing reversedness
* Formatting
* Fixes
* Back to nesting
* Back to nestingx
* Revert executive lib
* Reversions
* Reversions
* Fixes
* Fixes
* Formatting
* Fixes
* Spelling
* Comments
2021-10-21 10:29:10 +02:00
Jay Pavlina
1660bc8cf2
Derive Encode/Decode for BlockId ( #10063 )
2021-10-19 22:30:46 +00:00
Robert Klotzner
8e5b4e3826
Slightly improved documentation. ( #9976 )
...
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Giles Cope <gilescope@gmail.com >
2021-10-19 18:52:50 +01:00
João Paulo Silva de Souza
ff77872c9f
remove hardcoded pipeline scripts tag ( #10061 )
...
the tag will be moved to Gitlab CI/CD variables
2021-10-19 19:05:05 +02:00
Pierre Krieger
724350418e
Don't print "Discovered new external" line for private IPs ( #10055 )
2021-10-19 13:56:09 +02:00
Dan Shields
b8514409fd
Clarify wieght traits needed to impl in example ( #9842 )
...
* Clarify wieght traits needed to impl in example
* Update frame/example/src/lib.rs
* Update frame/example/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* fmt
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-10-18 10:42:56 +00:00
Guillaume Thiolliere
403b348d19
Update lowest unbaked storage. ( #9750 )
...
* update lowest unbaked
* fix format
* add note
* fmt
2021-10-18 09:19:35 +00:00
Bastian Köcher
d25d3896d7
Make duration calculation robust against clock drift ( #10042 )
...
It is possible that `Instant::now()` is returning an earlier clock time when being called a second
time. To guard against this, we should use `saturating_duration_since`.
2021-10-18 08:18:13 +00:00
Alexander Samusev
d7e07d4fb9
CI: remove node-template from build-linux-substrate-simnet job ( #10034 )
...
* ci: remove node-template from build-linux-substrate-simnet
* build-linux-substrate job impovements
* small fix
2021-10-18 09:12:22 +02:00
Cheng JIANG
53720da2b4
AssetId trait should also contain TypeInfo bound ( #10038 )
2021-10-18 06:37:22 +00:00
Cheng JIANG
0b0c41b5f4
add TypeInfo trait bound ( #10031 )
2021-10-15 12:22:51 +02:00
Gavin Wood
5d34c24504
More lenient mechanism for identifying stash accounts in purge_keys ( #10004 )
...
* More lenient StashOf finder
* Slightly safer version of the change
* Slightly safer version of the change
* Tests
* Formatting
2021-10-14 16:45:49 +02:00
João Paulo Silva de Souza
e5ca94527f
use pipeline-scripts for dependent projects script ( #9749 )
2021-10-14 14:29:50 +02: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
Dan Shields
aad0682c45
Move template to homepage = " https://substrate.io/ " , correct links ( #10006 )
...
* move to https://docs.substrate.io/
* cargo to https://docs.substrate.io/ homepage
* Update bin/node-template/pallets/template/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* homepage = "https://docs.substrate.io/ "
Co-authored-by: Squirrel <gilescope@gmail.com >
2021-10-13 12:55:51 -06:00
dependabot[bot]
c9ab954289
Bump base58 from 0.1.0 to 0.2.0 ( #10018 )
...
Bumps [base58](https://github.com/debris/base58 ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/debris/base58/releases )
- [Commits](https://github.com/debris/base58/commits )
---
updated-dependencies:
- dependency-name: base58
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-13 18:36:29 +00:00
dependabot[bot]
f2915e2931
Bump retain_mut from 0.1.3 to 0.1.4 ( #10021 )
...
Bumps [retain_mut](https://github.com/upsuper/retain_mut ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/upsuper/retain_mut/releases )
- [Commits](https://github.com/upsuper/retain_mut/commits )
---
updated-dependencies:
- dependency-name: retain_mut
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-13 19:17:15 +02:00
Bastian Köcher
1fb762dac9
Ensure we don't create gap epochs when importing multiple genesis epochs ( #10019 )
...
The babe `authoring_blocks` test was flaky because it could happen that
we imported the first block multiple times. This lead to import the
genesis epoch multiples times. `EpochChanges` was assuming that
importing a genesis epoch while there was already an imported epoch
means that there is a "gap". However, this wasn't true as we just
imported 2 genesis epochs. The bug is solved by checking that the
already imported epochs are not all genesis epochs.
2021-10-13 11:31:36 +00:00
Kian Paimani
aae41d777a
allow remote-ext to exclude some keys ( #10020 )
...
* allow remote-ext to exclude some keys
* don't use deprecated, just remove.
* rename
2021-10-13 11:12:26 +00:00
zjb0807
be3d0ba4ab
Add TypeInfo ( #10010 )
...
* add TypeInfo for DispatchTime
* add TypeInfo for BoundedBTreeSet
* add skip_type_params
* add TypeInfo for BoundedSlice
* add skip_type_params
2021-10-13 12:49:34 +02:00
dependabot[bot]
71c8d423ca
Bump parity-scale-codec from 2.2.0 to 2.3.1 ( #9998 )
...
* Bump parity-scale-codec from 2.2.0 to 2.3.1
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/v2.2...parity-scale-codec-v2.3.1 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update UI test expectations
* Update UI test expectations
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-10-13 06:49:17 +00:00
Kian Paimani
cd6229810d
documentation for recovery of emergency phase ( #9989 )
...
* documentation for recovery of emergency phase
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-10-12 19:28:11 +00:00
Chris Sosnin
806b426a8f
sc-executor-wasmtime: upgrade wasmtime to 0.30.0 ( #10003 )
...
* sc-executor-wasmtime: upgrade wasmtime to 0.30.0
Changes related to memory64 proposal implementation,
for additional details see bytecodealliance/wasmtime#3153
* sc-executor-wasmtime: introduce parallel_compilation flag
* typos
2021-10-12 15:15:23 +00:00
dependabot[bot]
a56d74a23b
Bump sha2 from 0.9.5 to 0.9.8 ( #10008 )
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.9.5 to 0.9.8.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.9.5...sha2-v0.9.8 )
---
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-12 12:15:12 +01:00
Squirrel
9cb4567ab7
hint what to do if you didn't use bot merge ( #10009 )
2021-10-12 10:36:09 +00:00
Bastian Köcher
d0c480c79f
sp-debug-derive: Add force-debug feature ( #9996 )
...
* sp-debug-derive: Add `force-debug` feature
Sometimes users want to have proper debug information even inside the
wasm runtime, when they use `RuntimeDebug`. To not fork Substrate to
change a type to a normal `Debug` derive, this pr introduces the
`force-debug` feature. This feature can be enabled by the user in their
runtime and then the types will use the normal Debug derive instead of
printing `wasm:stripped`.
* Fixes
2021-10-12 10:33:43 +00:00
Squirrel
98c157886c
Switch to using ss58-registry crate ( #9755 )
...
* Switch to using ss58-registry crate
* Custom(42) is now eq to Substrate
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-10-12 09:54:40 +01:00
Bastian Köcher
8f8b08871f
node-template: Do not provide benchmarking host functions by default ( #10005 )
2021-10-12 04:12:29 +00:00
Wei Tang
582ac8f932
pow: add Version for quick-check of metadata state and refactor lock handling ( #9698 )
...
* pow: add Version for quick-check of metadata state and refactor lock handling
* typo: mut self -> self
* Run rustfmt
* typo: grammar
2021-10-12 03:50:21 +00:00
Bastian Köcher
acd39cbc6c
sc-offchain: Fix flaky http tests ( #10000 )
2021-10-11 19:50:12 +02:00
dependabot[bot]
991bc30148
Bump pin-project from 1.0.5 to 1.0.8 ( #9999 )
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.0.5 to 1.0.8.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.5...v1.0.8 )
---
updated-dependencies:
- dependency-name: pin-project
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 15:24:24 +00:00
Alexander Popiak
32900294ba
Add Deposit and Withdraw Events to Balances Pallet ( #9425 )
...
* add Deposit and Withdraw events to balances
+ add deposit_event() calls where appropriate to signal fund movement
+ adjust and extend tests
* line length
* move events to the end to avoid changing indices
* bump spec_version
* cargo fmt
* adjust block import bench to new event count
* fix node executor tests
* adjust import bench comment
* fix typo and formatting
* adjust event number
* fix copy pasta
* fix contracts pallets tests
* cargo fmt
* WIP fix events in tests
* fix offences tests
* fix tests
* cargo +nightly fmt
* fix contracts pallets tests
* cargo +nightly fmt
* fix offences tests
* formatting and compile fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-11 14:23:10 +00:00
Alexander Samusev
19a656e156
Add quick simnet tests to .gitlab-ci.yml ( #9959 )
...
* remove spaces
* add simnet quick test
* debug simnet test
* add jobs for quick simnet tests
* fix typo
* test simnet-quick
* remove debug
* fix ci
* change tag for simnet tests
* Add new line to readme
2021-10-11 15:46:31 +02:00
dependabot[bot]
e98a2edfc9
Bump syn from 1.0.76 to 1.0.80 ( #9995 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.76 to 1.0.80.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.76...1.0.80 )
---
updated-dependencies:
- dependency-name: syn
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 12:23:02 +00:00
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