Bastian Köcher
c498215866
Slots: Ensure that a race betwen finalized and best number is taken care off ( #10876 )
2022-02-17 17:05:18 +01:00
Robert Klotzner
93b7263019
Better spam slots handling ( #4845 )
...
* Only bypass spam slots on actualy approval/backing vote import.
* Fix spam slot treatment.
* More tests.
* Make sure backing statements import works.
* Aaaaaand the actual proper fix.
* Better docs + spelling fixes.
* Fix.
* Typo
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* Fix doc.
* Update node/core/dispute-coordinator/src/real/initialized.rs
* minor rewording, line wrap
* fix test case
* Fix obsolete comment.
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-02-17 15:18:52 +01:00
Arkadiy Paronyan
f5af00fe1b
Track allowed requests for state/warp sync ( #10843 )
...
* Track allowed requests for state/warp sync
* Added missing allowed_requests resets
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-17 11:37:54 +00:00
dependabot[bot]
ec815011e2
Bump proc-macro-crate from 1.1.0 to 1.1.2 ( #4936 )
...
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases )
- [Commits](https://github.com/bkchr/proc-macro-crate/commits )
---
updated-dependencies:
- dependency-name: proc-macro-crate
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>
2022-02-17 11:25:48 +01:00
Bastian Köcher
1a61cd40fa
sc-executor: Improve logging ( #10869 )
...
Improves the logging by switching to `tracing` for a better log output. Besides that, it also adds a
trace for the function being executed.
2022-02-16 19:39:22 +00:00
lumir-mrkva
2dcd204ea6
corrected paras code validation event comments ( #4932 )
...
the comments we're flipped between accepted and rejected events causing confusion, but usage of events is correct
2022-02-16 18:32:56 +01:00
Shawn Tabrizi
ba8c882a7a
Tidy Democracy ( #10867 )
...
* add test
* Assorted refactorings
* complete test
* saturating math
* final check
* use `default`
Co-authored-by: Gav Wood <gavin@parity.io >
2022-02-16 15:57:54 +00:00
Niklas Adolfsson
7273c4b03f
Companion for refactor election score #10834 ( #4927 )
...
* Companion for refactor election score #10834
https://github.com/paritytech/substrate/pull/10834
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-16 13:57:31 +01:00
Shawn Tabrizi
eeca2bb61a
Fix Runtime Benchmarks Feature Flag in Parachain Template ( #991 )
...
* Update Cargo.toml
* add checks to ci
2022-02-16 13:33:08 +01:00
Bastian Köcher
c40c4bcbe9
Companion CI: Make sure to pass the update crates properly ( #4928 )
2022-02-16 12:02:04 +01:00
Alexander Theißen
1a744befd4
Measure per byte and not kb for certain benchmarks ( #10863 )
2022-02-16 10:49:31 +00:00
Kian Paimani
6b7eb2e2d7
refactor election score ( #10834 )
...
* refactor election score
* Test for ord
* remove reference
* vec -> slice
* change iter to iter_by_significance
* improve doc
* fix typo
* add explanation about [u128; 3]
* consolidate threshold and epsilon
* random fixes
* rename
* remove Into
* make iter_by_sig private
* remove vec
* Fix tests
2022-02-16 10:40:16 +00:00
zjb0807
9d8e5639d5
add llvm ( #10864 )
2022-02-16 10:02:35 +00:00
Dmitry Kashitsyn
db5da0950b
Use fully qualified sytnax for retain_mut ( #10865 )
2022-02-16 10:53:10 +01:00
Qinxuan Chen
6174f79252
update digest to v0.10.2 ( #4907 )
...
* update digest to v0.10.2
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-16 10:51:01 +01:00
Qinxuan Chen
962cab60d6
sp-core-hashing: use the digest::Digest trait to handle the hashing function uniformly ( #10835 )
...
* sp-core-hashing: use sha3 instead of tiny-keccak
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* use blake2 instead of blake2-rfc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* improve som hashing of sp-core and sp-api-proc-macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo fmt
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2022-02-16 08:26:53 +00:00
Koute
ee6223327c
Reduce CPU overhead of gossip ( #10859 )
2022-02-16 04:14:00 +00:00
Pierre Krieger
27f8b70e68
Companion for #10832 ( #4918 )
...
* Companion for #10832
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-15 23:32:08 +01:00
Pierre Krieger
9a78839696
Mark sync_state_genSyncSpec JSON-RPC as safe ( #10832 )
...
* Mark sync_state_genSyncSpec JSON-RPC as safe
* Note that parameter is unused
* Ideally I'd wait for compilation to be finished before pushing, but it's really taking a long time
* Remove deny_unsafe parameter
* Remove unused dependency
2022-02-15 21:21:34 +00:00
Davide Galassi
6f53b974b2
Fix beefy mock ecdsa keys ( #10854 )
...
Compressed ECDSA keys requires to have 0x02 or 0x03 as their first byte
in order to allow public key recovery.
Nevertheless the test was working because of the `unwrap_or_default()`
at the end of the conversion routine (i.e. the invalid keys were
converted to an empty vector).
2022-02-15 14:19:39 +01:00
Alexander Samusev
4519145df5
[ci] fix publish-rustdocs ( #10858 )
2022-02-15 13:29:26 +01:00
Koute
43c3e709f9
Enable the parking_lot feature for tokio ( #10855 )
2022-02-15 11:53:45 +00:00
Alexander Theißen
b82cfbac4d
contracts: Fix seal_call weights ( #10796 )
...
* Fix call weights
* Fix instantiate benchmark
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Remove stale and superflous comments
* `decrement_refcount` should be infallible
* Don't hardcode increment_refcount, decrement_refcount
* Rename CopyIn/CopyOut
* Fix warning in tests
Co-authored-by: Parity Bot <admin@parity.io >
2022-02-15 08:56:22 +00:00
Keith Yeung
e7d354ca14
Update rand to v0.8.5 ( #987 )
...
* Update rand to v0.8.5
* Enable std_rng feature on rand
* Enable std_rng only when std is enabled
* Revert "Enable std_rng only when std is enabled"
This reverts commit 8fb3b72dbd6dc18bc19868b999b5b07cea4b7392.
2022-02-14 23:14:05 +00:00
Bastian Köcher
217d5275c4
Companion for Remove u32_trait ( #4920 )
...
* Companion for `Remove u32_trait`
* update lockfile for {"substrate"}
* FMT
Co-authored-by: parity-processbot <>
2022-02-14 22:56:35 +01:00
Bastian Köcher
47622d6912
wasm-builder: Support latest nightly ( #10837 )
...
* wasm-builder: Support latest nightly
With latest nightly, aka rust version 1.60+ namespaced features are added. This changes the handling
of optional dependencies. We currently have features that enable optional dependencies when `std` is
enabled. This was before no problem, but now the wasm-builder detects them as enabled. To support
the transition period until 1.60 is released as stable, this pr adds an heuristic to not enable these
optional crates in the wasm build when they are enabled in the `std` feature. This heuristic fails
when someones enables these optional dependencies from the outside as well as via the `std` feature,
however we hope that no one is doing this at the moment. When namespaced features are enabled, these
dependencies needs to be enabled using `dep:dependency-name` to solve this properly.
https://doc.rust-lang.org/cargo/reference/unstable.html#namespaced-features
* Remove accidentally added features
2022-02-14 21:12:48 +01:00
Bastian Köcher
fdd49f072c
Remove u32_trait ( #10850 )
...
* Remove `u32_trait`
This trait only existed because there wasn't any const generic support at time of creation. However,
we now have support for it :)
* FMT
2022-02-14 20:12:25 +00:00
Bastian Köcher
888131b651
subkey: Support --version cli command ( #10853 )
...
* subkey: Support `--version` cli command
* FMT 🤦
2022-02-14 20:31:52 +01:00
dependabot[bot]
71c1388290
Bump serde_json from 1.0.78 to 1.0.79 ( #4916 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.78...v1.0.79 )
---
updated-dependencies:
- dependency-name: serde_json
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>
2022-02-14 12:54:41 +01:00
dependabot[bot]
98a1343cd9
Bump rand from 0.8.4 to 0.8.5 ( #4917 )
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.8.4...0.8.5 )
---
updated-dependencies:
- dependency-name: rand
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>
2022-02-14 11:37:02 +01:00
Bastian Köcher
774cdac585
Update Polkadot & Substrate ( #985 )
2022-02-14 11:16:41 +01:00
Kian Paimani
99728fd214
Remove stale migrations post 9.16 release ( #4848 )
...
* Remove stale migrations post 9.16 release
* Remove more
* Bring back migration
* enact migration
* nit
* Fix warn
* Fix westend
* Fix build
2022-02-14 11:16:28 +01:00
S E R A Y A
ac841927b8
fix broken link ( #10846 )
2022-02-13 23:14:32 +01:00
Kian Paimani
da78d0a4dc
Add proxy type for Kappa Sigma Mu ( #4851 )
2022-02-12 18:00:18 -07:00
Zeke Mostov
0e49337a42
Baseline weights for force_apply_min_commission ( #4896 )
...
* Make a diff
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-02-12 17:59:59 -07:00
Shawn Tabrizi
d5f5127354
Allow two Parachains to swap ( #4772 )
...
* add support for parachain to parachain swap
* enable swaps on kusama
* sanity test in paras_registrar
* express more errors
* finish up tests
* fmt
* make fields pub
* refactor integration tests to use real accounts
* Update Crowdloan Account to FundIndex (#4824 )
* update fund account to use index
* fix integration tests
* Update runtime/common/src/crowdloan.rs
* finish parachain swap test
* format
* fix warning
* fix spacing
* fix formatting
* write migrations
* add migration
* fixes
* more fixes to migration
* Update runtime/common/src/crowdloan/mod.rs
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* Update runtime/common/src/paras_registrar.rs
* Update migration.rs
* extract swap function
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-02-12 17:16:22 +00:00
Keith Yeung
d166c78b17
Move XCM configurations out into its own module ( #981 )
...
* Move XCM configurations out into its own module
* Revert removal of the AccountNonceApi
2022-02-11 15:59:48 -08:00
dependabot[bot]
85f4740591
Bump smallvec from 1.7.0 to 1.8.0 ( #4898 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.7.0...v1.8.0 )
---
updated-dependencies:
- dependency-name: smallvec
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>
2022-02-12 00:09:01 +01:00
dependabot[bot]
5f648ae997
Bump tokio from 1.15.0 to 1.16.1 ( #4899 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.15.0 to 1.16.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.15.0...tokio-1.16.1 )
---
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>
2022-02-11 23:18:24 +01:00
dependabot[bot]
f00f24e656
Bump tracing from 0.1.29 to 0.1.30 ( #4897 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.29 to 0.1.30.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.29...tracing-0.1.30 )
---
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>
2022-02-11 23:17:19 +01:00
Arkadiy Paronyan
89d218448c
Don't create DB leaves when syncing historic blocks ( #10844 )
...
* Don't create DB leaves when syncing historic blocks
* Changed leaves check and added test
* fmt
2022-02-11 22:28:10 +01:00
Mara Robin B
167df32561
Bump version ( #4904 )
...
* Bump spec_version
* Bump version to 0.9.17
2022-02-11 20:43:39 +01:00
André Silva
7393076df2
build-script-utils: allow reading the git commit hash from env var ( #10845 )
...
* build-script-utils: allow reading the git commit hash from env var
* build-script-utils: make the env var name substrate specific
2022-02-11 19:38:39 +00:00
sandreim
a0ebff4909
Add more specific errors ( #4905 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-02-11 18:32:55 +01:00
Andronik
128421b5dd
collator-protocol: fix wrong warning ( #4909 )
...
* collator-protocol: fix wrong warning
* collator-protocol: add debug log
2022-02-11 18:31:50 +01:00
Tarekk Mohamed Abdalla
89dfae9530
allow trailing comma ( #10841 )
2022-02-11 14:38:58 +00:00
sandreim
7cae61726e
enable runtime debug and parachain tracing targets ( #4901 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-02-11 14:44:06 +01:00
Oliver Tale-Yazdi
b932e27e5b
Fix reentrancy of FrozenBalance::died hook ( #10473 )
...
* assets: execute `died` hook outside of mutate
Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo >
* assets: extend tests for `died` hook
Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo >
* assets: update doc of FrozenBalance::died
Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo >
* assets: review fixes
- fix cases where `died` should not have been called
- use `Option<DeadConsequence>` instead of `DeadConsequence`
Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo >
* assets: update comment in mock.rs
Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo >
* assets: return `Remove` in dead_account
The return value is ignored in the only case that it is produced
by a call, but having it this way makes it more understandable.
Signed-off-by: Oliver Tale-Yazdi <oliver@tasty.limo >
2022-02-11 13:17:38 +00:00
Koute
e026077505
Reduce overhead of generating network event metrics ( #10839 )
2022-02-11 11:35:35 +00:00
dependabot[bot]
ca81c0b50f
Bump parking_lot from 0.11.2 to 0.12.0 ( #4890 )
...
Bumps [parking_lot](https://github.com/Amanieu/parking_lot ) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases )
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.11.2...0.12.0 )
---
updated-dependencies:
- dependency-name: parking_lot
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>
2022-02-11 10:10:20 +00:00