Muharem Ismailov
1f7a6ae9d4
Companion for substrate#13771 ( #2410 )
...
* max proposal weight config
* update deps
---------
Co-authored-by: parity-processbot <>
2023-04-19 12:53:03 +00:00
Muharem Ismailov
2842e2f62c
Companion for substrate#13771 ( #6983 )
...
* max proposal weight config
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-19 11:59:00 +00:00
dependabot[bot]
09557a8417
Bump Swatinem/rust-cache from 2.2.0 to 2.2.1 ( #2456 )
...
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/Swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Swatinem/rust-cache/compare/359a70e43a0bb8a13953b04a90f76428b4959bb6...6fd3edff6979b79f87531400ad694fb7f2c84b1f )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
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>
2023-04-19 13:46:24 +02:00
Muharem Ismailov
f8b77f64f3
Collective pallet: max proposal weight ( #13771 )
...
* collective: max proposal weight
* fix test
---------
Co-authored-by: parity-processbot <>
2023-04-19 11:00:27 +00:00
gupnik
e458bf3795
Adds example for dev_mode and updates doc ( #13944 )
...
* Adds example for dev_mode and updates doc
* Addresses review comments
* Update frame/examples/dev-mode/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Addresses review comment
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-04-19 16:24:19 +05:30
dependabot[bot]
075a1757c3
Bump clap from 4.1.14 to 4.2.3 ( #2465 )
2023-04-19 12:25:13 +02:00
Joakim Nyman
7f249faf5a
Added Dwellir Nigeria bootnodes. ( #7097 )
2023-04-19 10:13:30 +00:00
Davide Galassi
83fb51a21c
Companion for Substrate #13889 ( #7063 )
...
* Companion for substrate #13889
* Remove leftover
* Remove removed dependency
* Remove sp-consensus-vrf from lock
* Revert "Remove sp-consensus-vrf from lock"
This reverts commit 2269ca1e32df89272e8fd4544292204db387f436.
* Fix after substrate modifications
* Fix tests to use new VRF Signature type
* Don't rely of Deref trait
* Fix test
* Further code simplification
* Reuse garbage_vrf_signature
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-19 09:43:42 +00:00
Davide Galassi
bb394e08ac
VRF refactory ( #13889 )
...
* First iteration to encapsulate schnorrkel and merlin usage
* Remove schnorkel direct dependency from BABE pallet
* Remove schnorrkel direct dependency from BABE client
* Trivial renaming for VrfTranscript data and value
* Better errors
* Expose a function to get a schnorrkel friendly transcript
* Keep the vrf signature stuff together (preventing some clones around)
* Fix tests
* Remove vrf agnostic transcript and define it as an associated type for VrfSigner and VrfVerifier
* Fix babe pallet mock
* Inner types are required to be public for polkadot
* Update client/consensus/babe/src/verification.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Nit
* Remove Deref implementations
* make_bytes as a method
* Trigger CI
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-04-19 09:11:47 +00:00
Mike Ruje
d9ad6feac0
Improve has good jugement ( #13952 )
...
* improve run_benchmark
* Revert "improve run_benchmark"
This reverts commit 4d9cf7a63e37fedca376d692f1461486d3dca659.
* improve has_good_judgement
* Update bin/node/runtime/src/impls.rs
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2023-04-19 09:03:56 +00:00
Artyom Bakhtin
bef85c32be
Switch to DNS name based bootnodes for Rococo ( #7040 )
...
* Switch to DNS name based bootnodes for Rococo
Signed-off-by: bakhtin <a@bakhtin.net >
* Switch Rococo bootnodes from WS to WSS
Signed-off-by: bakhtin <a@bakhtin.net >
---------
Signed-off-by: bakhtin <a@bakhtin.net >
2023-04-19 10:50:01 +02:00
Bastian Köcher
43f9fd9357
call_executor: Remove code deduplication ( #13948 )
2023-04-19 10:15:57 +02:00
William Freudenberger
9eb63f216c
feat: pallet asset-rate ( #13608 )
...
* poc
* fix: remove AssetIdParameter
* tests: add
* docs: add pallet description
* feat: add benches
* refactor: UnknownAssetId
* fix: normalize mock cfg
* fix: benchmarks
* chore: add weights
* refactor: remove storage getter
* chore: apply suggestions from code review
* docs: add native balance to calls
* chore: apply suggestions from code review
* chore: apply ConversionFromAssetBalance
* tests: update balance mock
* chore: apply suggestions from code review
* ci: set publish to false
* docs: fix missing rustdoc
---------
Co-authored-by: parity-processbot <>
2023-04-19 07:49:42 +00:00
Davide Galassi
ec0ed1c476
Optimize level monitor reconstruction ( #2461 )
...
* Optimize level monitor reconstruction
* Fix counter increment and test
* Struct comments as doc comments
2023-04-19 06:01:02 +00:00
yjh
cbc8e5f7df
chore(docs): improve some comments ( #13937 )
...
* chore(docs): improve some comments
* Update client/network/common/src/sync/message.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/rpc-api/src/chain/mod.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/rpc/src/chain/mod.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update client/rpc/src/chain/mod.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Update frame/staking/src/pallet/impls.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-04-18 17:46:46 +02:00
André Silva
5a932e1866
Companion for substrate#13883 ( #2460 )
...
* update substrate
* update lockfile for {"polkadot", "substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-18 10:53:09 +00:00
André Silva
8d1603e38d
companion for substrate#13883 ( #7059 )
...
* companion for substrate#13883
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-18 10:25:03 +00:00
André Silva
e8e22b83b8
babe: replace usage of SharedEpochChanges with internal RPC ( #13883 )
...
* babe: replace usage of SharedEpochChanges with internal RPC
* babe-rpc: fix tests
* babe: use SinkExt::send instead of Sender::try_send
SinkExt::send provides backpressure in case the channel is full
* Update client/consensus/babe/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* babe: fix spawn
* babe: send handles backpressure
* babe: use testing::TaskExecutor
* babe-rpc: better error handling
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-04-18 09:38:04 +00:00
Branislav Kontur
58c18348c5
[xcm] Added UnpaidExecution instruction to UnpaidRemoteExporter ( #7091 )
2023-04-18 11:31:36 +02:00
Aaro Altonen
818976d98e
Poll the substream validation before polling Notifications ( #13934 )
...
* Poll the substream validation before polling `Notifications`
In tests, it can happen that `Notifications` doesn't produce any events
which causes `poll()` to return `Poll::Pending` and the substream
validation futures won't get polled.
Poll the futures before calling `Notifications` so results for substream
validations are received even if `Notifications` is not producing any
events.
* Remove `pending_messages`
* Remove unused import
2023-04-18 07:47:36 +00:00
Gavin Wood
d23a251ee9
Balances: repatriate_reserved should respect freezes ( #13885 )
...
* repatriate_reserved should respect freezes
* Docs
* Fix and clean
* Formatting
* Update frame/balances/src/types.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* Fix
* Simplify
* Fixes
* Fixes
---------
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
2023-04-17 19:13:55 +01:00
dependabot[bot]
bf9497e874
Bump serde_json from 1.0.85 to 1.0.96 ( #7072 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.85 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.85...v1.0.96 )
---
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>
2023-04-17 18:10:54 +00:00
dependabot[bot]
aa93b50120
Bump hex-literal from 0.3.4 to 0.4.1 ( #7071 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.3.4 to 0.4.1.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.3.4...hex-literal-v0.4.1 )
---
updated-dependencies:
- dependency-name: hex-literal
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>
2023-04-17 18:48:35 +02:00
Serban Iorga
d9e49378d5
Small simplification ( #7089 )
2023-04-17 18:41:32 +03:00
Branislav Kontur
ae2905df87
Changed query_account_balances return type ( #2455 )
2023-04-17 17:01:40 +02:00
Serban Iorga
23763d0ec9
[XCM - UnpaidRemoteExporter] Remove unreachable code ( #7088 )
...
* Remove unreachable code
* Fix warning
2023-04-17 16:39:19 +03:00
Mara Robin B
926f9a6381
sync versions with current release ( #7083 )
...
* sync workspace version with current release
* polkadot: sync spec with current release
* westend: sync spec with current release
* kusama: sync spec with current release
* rococo: sync spec with current release
2023-04-17 12:52:14 +00:00
dependabot[bot]
3f886cd7ac
Bump h2 from 0.3.11 to 0.3.17 ( #7074 )
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.11 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.11...v0.3.17 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 14:43:39 +02:00
Przemek Rzad
b66bc22252
Update links in the Referenda Readme ( #13929 )
...
* Update links in the Referenda Readme
* Update frame/referenda/README.md
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-17 10:22:59 +00:00
Mike Ruje
48ae6ade98
imp function comparison ( #13928 )
2023-04-17 09:07:14 +00:00
Koute
59054bd466
Use MaybeUninit when calling getrusage (musl compatibility) ( #7086 )
2023-04-17 06:44:08 +00:00
Sergej Sakac
afbdfbca2a
Try-state for Collective pallet ( #13645 )
...
* write the try_state_ function
* update tests
* update check
* fix benchmarking
* fix nonsense
* Update frame/collective/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/collective/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* unique proposal index
* prime must be a member of the collective
* oops
* Add new checks
* use ensure
* fix
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-17 15:43:13 +10:00
Roman Useinov
5cecb888b2
[Fix] Remove redundant stash from Stake ( #13907 )
...
* [Fix] Remove redundant stash from Stake
* fix tests
2023-04-16 00:25:56 +02:00
dependabot[bot]
9b40e111e2
Bump assert_cmd from 2.0.10 to 2.0.11 ( #2457 )
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 2.0.10 to 2.0.11.
- [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.10...v2.0.11 )
---
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>
2023-04-15 21:45:04 +00:00
Bastian Köcher
019faa446c
sc-allocator: Do not panic on invalid header pointer ( #13925 )
...
We should not panic on an invalid header pointer and instead return an error. It is possible that
the application modifies the header pointer illegally, but then we should return an error instead of
panicking.
2023-04-15 23:27:51 +02:00
dependabot[bot]
89cb71490c
Bump syn from 2.0.14 to 2.0.15 ( #2454 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.14 to 2.0.15.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.14...2.0.15 )
---
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>
2023-04-14 23:13:45 +00:00
gupnik
cd1e51a4e7
Updates Benchmark macro parsing to use Generic Argument ( #13919 )
...
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Removes POC code
* Adds assertion and UT
* adds runtime error
* removes const_assert
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2023-04-14 22:54:26 +05:30
NingLin-P
8d06402e2e
Drain all the pending messages in the channel when TracingUnboundedReceiver is dropped ( #13917 )
...
Signed-off-by: linning <linningde25@gmail.com >
2023-04-14 16:15:31 +02:00
dependabot[bot]
890a65b87d
Bump cargo_metadata from 0.15.3 to 0.15.4 ( #13899 )
...
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata ) from 0.15.3 to 0.15.4.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases )
- [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md )
- [Commits](https://github.com/oli-obk/cargo_metadata/compare/0.15.3...0.15.4 )
---
updated-dependencies:
- dependency-name: cargo_metadata
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>
2023-04-14 14:52:51 +02:00
Mira Ressel
378f68a6d1
Fail dependant checks on cargo check warnings ( #13922 )
...
* Fail dependant checks on cargo check warnings
* Adjust feature flags for check-dependent-polkadot
2023-04-14 14:16:17 +02:00
dependabot[bot]
07f1f5e915
Bump actions/checkout from 3.5.1 to 3.5.2 ( #2452 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/83b7061638ee4956cf7545a6f7efe594e5ad0247...8e5e7e5ab8b370d6c329ec480221332ada57f0ab )
---
updated-dependencies:
- dependency-name: actions/checkout
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>
2023-04-14 11:25:54 +00:00
s0me0ne-unkn0wn
0211c4b2f7
Enable changing executor params through governance ( #6934 )
...
* Add a pallet call to change executor params
* Use `OptionQuery`; Avoid runtime panic
* Move pending executor params to `configuration`
* Move `ExecutorParams` to `HostConfiguration` structure
* Add executor params to the v5 migration
* Add an `ExecutorParams` benchmark
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::configuration
* Add to `WeightInfo`
* Add dummy weights to other networks
* ".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parachains::configuration
* ".git/.scripts/commands/bench/bench.sh" runtime rococo runtime_parachains::configuration
* ".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parachains::configuration
* Use real weight
* Fix comment
---------
Co-authored-by: command-bot <>
2023-04-14 11:21:12 +00:00
Oliver Tale-Yazdi
f0c507362d
Fix try-runtime CI ( #7078 )
...
* Fix try-runtime CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Actually fix it
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-14 10:36:34 +00:00
Mira Ressel
83a86ab16c
Make triggered multi-project pipelines uninterruptible ( #7076 )
2023-04-14 10:42:51 +02:00
Bastian Köcher
d1f862a308
Unqueue invalid transactions when skipping ( #13918 )
...
The check was intially added by: https://github.com/paritytech/substrate/pull/5121
But a later pr fixed it properly: https://github.com/paritytech/substrate/pull/9789
TLDR: We don't need to check for skipped anymore, as we already remove all transactions that are
being unlocked by an invalid transactions and thus, we will not tag them as invalid directly because
the nonce for example is incorrect.
Fixes: https://github.com/paritytech/substrate/issues/13911
2023-04-14 10:21:06 +02:00
dependabot[bot]
2894069faa
Bump h2 from 0.3.16 to 0.3.17 ( #13915 )
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.16...v0.3.17 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 09:32:24 +02:00
dependabot[bot]
68501a6693
Bump serde_json from 1.0.95 to 1.0.96 ( #2453 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.95...v1.0.96 )
---
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>
2023-04-13 21:43:33 +00:00
Oliver Tale-Yazdi
4175ed6a87
Update proc-macro-warning ( #13876 )
...
* Update proc-macro-warning
Closes https://github.com/paritytech/substrate/issues/13872
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update to v0.3.1 (including syn 2.0)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Update to v0.3.1 (including syn 2.0)"
CI is red since it Polkadot uses a different syn version…
Going to update it lean.
This reverts commit 3240d379b72f6f722eaf502ed49e9a1b0f79db4b.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-13 22:44:46 +02:00
Mira Ressel
8953feaeb2
Refactor the automatic-crate-publishing logic, make triggered pipelines uninterruptible as well ( #13908 )
...
* Use a new approach to make automatic-crate-publishing uninterruptible
It's not neccessary to dynamically change the `interruptible` setting
for *all* jobs as the old approach does; gitlab already considers a
pipeline uninterruptible as soon as a single uninterruptible job has
started (cf https://docs.gitlab.com/ee/ci/yaml/#interruptible ).
IMO this approach is more readable, as it avoids dynamically loading the
.defaults section from different files based on import conditions; the
logic is now shorter and entirely contained in the main .gitlab-ci.yml.
* Make triggered multi-project pipelines uninterruptible
2023-04-13 20:17:12 +02:00
Mira Ressel
3da3d0cc09
Disable timestamping for the crate publishing jobs ( #13910 )
2023-04-13 19:14:55 +02:00