Mira Ressel
ed227b9bbe
ci: add new test-linux-oldkernel-stable job ( #7371 )
...
closes paritytech/ci_cd#811
2023-06-15 10:30:37 +02:00
Branislav Kontur
4057ef1554
Fix for pallet_assets::create benchmark ( #14384 )
...
* Fix for `pallet_assets::create` benchmark
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-assets
---------
Co-authored-by: command-bot <>
2023-06-14 20:03:37 +00:00
Michal Kucharczyk
52a0910c71
construct_runtime: support for expanding the macro code (#14379 )
...
* construct_runtime: support for expanding the macro code
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/support/procedural/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* fmt added
* fmt removed
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-14 18:49:48 +00:00
kostekIV
e9bb5e737a
Expose ExtraFlags struct ( #14376 )
2023-06-14 16:44:47 +00:00
Andrei Sandu
edfbbc8c51
adjust buckets ( #7368 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2023-06-14 15:02:53 +00:00
Guillaume Yu Thiolliere
7db4d74c43
Restructure macro-related exports into private mods for frame ( #14375 )
...
* minor refactor
* Update frame/election-provider-support/src/lib.rs
* Update frame/election-provider-support/solution-type/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: command-bot <>
2023-06-14 12:44:01 +00:00
Guillaume Yu Thiolliere
c519c78809
minor refactor ( #2733 )
2023-06-14 12:43:41 +00:00
s0me0ne-unkn0wn
21897336d7
Hotfix for #7360 ( #7365 )
...
* CI job hotfix
* Instruct `cargo` to build all the binaries
2023-06-14 14:43:32 +02:00
Mira Ressel
b78473d28a
cargo-hfuzz ci: specify manifest patches via cargo --config ( #14372 )
...
This is less brittle than locally editing Cargo.toml, which breaks when
our devs submit PRs such as #13992 that also temporarily add a patch
section.
2023-06-14 13:54:58 +02:00
Branislav Kontur
2dbba10f6e
Add TransactionPaymentCallApi to Bridge Hubs ( #2729 )
2023-06-14 11:53:29 +00:00
s0me0ne-unkn0wn
ce76f6d373
Patch CI for split out worker binaries ( #7360 )
2023-06-14 09:55:41 +00:00
eskimor
596a9ccd02
Unify code paths of create_inherent and enter ( #7137 )
...
* Remove redundant enter call.
* Remove optionality in dispute signature checking
* Make enter_inner and create_inherent the same.
* Remove redundant metric.
* Unification: enter and create_inherent.
* Remove `enter_inner` function.
* Remove dead code.
* Remove redundant import.
* Remove dead code in disputes.
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::paras_inherent
* ".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parachains::paras_inherent
* ".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parachains::paras_inherent
* Merge fix.
* Fix tests.
* Remove obsolete comment.
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::paras_inherent
* ".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parachains::paras_inherent
* ".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parachains::paras_inherent
* Review remarks, fixes.
* Guide updates.
* Fmt.
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::paras_inherent
---------
Co-authored-by: eskimor <eskimor@no-such-url.com >
Co-authored-by: command-bot <>
2023-06-14 10:57:06 +02:00
Bastian Köcher
1eb3b31ad0
sc-executor-wasmtime: Do not use absolute path to Cargo.toml in test ( #14370 )
...
* sc-executor-wasmtime: Do not use absolute path to `Cargo.toml` in test
As the test is executed inside the workspace, `cargo metadata` will automatically detect the correct
`Cargo.toml`. This is required for the mono repo.
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-06-13 21:14:53 +02:00
Oliver Tale-Yazdi
fda776951d
benchmark pallet: Error if files are overwritten twice ( #14352 )
...
* benchmark pallet: Error if files are overwritten twice
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix error message
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-13 16:51:18 +00:00
Oliver Tale-Yazdi
6a4063917d
Co #14338 : pallet-glutton: over-unity consumption ( #2730 )
...
* Fix types
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix import
* ".git/.scripts/commands/fmt/fmt.sh"
* Fix more
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Actually fix stuff
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update glutton genesis script
* Update Substrate and Polkadot
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: NachoPal <ignacio.palacios.santos@gmail.com >
Co-authored-by: command-bot <>
2023-06-13 16:37:47 +00:00
Liam Aharon
72046c2830
migration(elections-phragmen): unreserve deposits and clear locks ( #14218 )
...
* pre_upgrade hook wip
* working pre_upgrade
* simplify code
* cleanup and document
* return reads from get_account_deposited_and_staked_sums
* improve comment
* on_runtime_upgrade comment
* post upgrade comment
* use saturating_add
* clippy
* clean up balances
* add tests
* fix comment
* oops
* actually fix comment
* fix std build
* address pr comments
* remove redundant comment
* update comment
* add comment
* oliver comments from tips pallet pr
* lint
* remove need for do_pre/do_post runtime functions
* generic dbweight
* Update frame/elections-phragmen/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/elections-phragmen/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* pr comments
* remove useless check
* feature gate log target
* lint
* Update frame/elections-phragmen/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add log for unexpected amounts
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-13 16:07:13 +00:00
Liam Aharon
93dea08420
migration(democracy): unreserve deposits and clear locks ( #14226 )
...
* unlock and unreserve all migration
* log total amount to unlock
* clippy
* clippy
* simplify balance types
* add tests
* fix comment
* fix std features
* remove redundant dev-dep
* address comments
* remove redundant std
* estimate weights
* fix comments
* fix tests
* clippy
* track democracy bugged deposits
* improve pre_migration logs
* oliver comments from tips pr
* run pre and post hooks in tests
* flexible dbweight type
* Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* docs
* Update frame/democracy/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add log target
* fix visibility
* lint
* use log target
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-06-13 16:06:35 +00:00
Oliver Tale-Yazdi
3b6d31f03d
pallet-glutton: over-unity consumption (#14338 )
...
* pallet-glutton: over-unity consumption
* Add hard limit
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Highlight warning
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix docs
* Review test fixes
Co-authored-by: Guillaume Yu Thiolliere <gui.thiolliere@gmail.com >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-glutton
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-glutton
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Guillaume Yu Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: command-bot <>
2023-06-13 15:57:04 +00:00
Mara Robin B
e71c541ede
sync master with 0.9.43 ( #7358 )
...
* sync workspace version with 0.9.43
* sync spec and tx ver with 0.9.43
* 0943 migrations
2023-06-13 14:30:05 +00:00
Ankan
2c7166eb9c
Take into account proof size for transaction payment and priority ( #13958 )
...
* use both proof size and weight
* old tests pass, todo: add tests for weight proof size
* refactor priority calculation
* refactor
* normalize dimensions
* refactor
* update comments
* use higher resolution
* test multiplier can grow
* restore ref time test cases
* fix hacky test
* fmt
* update tests
* revert to original error rate
* update targetedFeeAdjustment doc
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* import defensive
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-13 15:53:38 +02:00
Jegor Sidorenko
d767d748d3
Use Incrementable from frame_support::traits ( #14367 )
...
* Use Incrementable from frame_support::traits
* Chore
2023-06-13 13:46:19 +00:00
dependabot[bot]
11cf3e0b10
Bump hyper-rustls from 0.23.2 to 0.24.0 ( #14233 )
...
Bumps [hyper-rustls](https://github.com/ctz/hyper-rustls ) from 0.23.2 to 0.24.0.
- [Commits](https://github.com/ctz/hyper-rustls/compare/v/0.23.2...v/0.24.0 )
---
updated-dependencies:
- dependency-name: hyper-rustls
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>
Co-authored-by: parity-processbot <>
2023-06-13 13:27:47 +00:00
dependabot[bot]
b11e78bc4b
build(deps): bump expander from 1.0.0 to 2.0.0 ( #14361 )
...
Bumps [expander](https://github.com/drahnr/expander ) from 1.0.0 to 2.0.0.
- [Release notes](https://github.com/drahnr/expander/releases )
- [Commits](https://github.com/drahnr/expander/compare/v1.0.0...v2.0.0 )
---
updated-dependencies:
- dependency-name: expander
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-13 12:37:18 +00:00
Mara Robin B
958cf435b1
update weights ( #7298 )
...
* polkadot: update weights
* westend: update weights
* kusama: update weights
* rococo: update weights
2023-06-13 13:54:10 +02:00
dependabot[bot]
49815cee3c
Bump log from 0.4.18 to 0.4.19 ( #2728 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.18 to 0.4.19.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.18...0.4.19 )
---
updated-dependencies:
- dependency-name: log
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-06-13 12:38:47 +02:00
Sacha Lansky
ee48773988
PR template improvements ( #14148 )
...
* Minor edits to CONTRIBUTING
* Update PULL_REQUEST_TEMPLATE
* Add Closes for GH semantic linking
* Update docs/PULL_REQUEST_TEMPLATE.md
* Update docs/PULL_REQUEST_TEMPLATE.md
* Apply suggestions from code review
* Update docs/PULL_REQUEST_TEMPLATE.md
---------
Co-authored-by: parity-processbot <>
2023-06-13 08:21:37 +00:00
Sacha Lansky
b08a58f8e5
Improvements to node template README ( #14181 )
...
* Update README.md
* Update bin/node-template/README.md
2023-06-13 08:20:17 +00:00
Alexander Kalankhodzhaev
a5b459e97d
Reimport WeightInfo ( #14358 )
2023-06-13 10:02:05 +02:00
Squirrel
cadc92b893
fix new warning in nightly ( #14334 )
...
* fix new warning
* Too soon
* Explicitly import
2023-06-13 09:36:54 +02:00
Abhijit Roy
4ba78088d3
Update Pallet placeholder struct as per FRAME v2 ( #14348 )
...
* Update Pallet placeholder struct as per FRAME v3
* ".git/.scripts/commands/fmt/fmt.sh"
* Update lib.rs
Removed the unused import
---------
Co-authored-by: command-bot <>
2023-06-12 15:22:05 +00:00
dependabot[bot]
3465e692b4
build(deps): bump comfy-table from 6.2.0 to 7.0.0 ( #14333 )
...
Bumps [comfy-table](https://github.com/nukesor/comfy-table ) from 6.2.0 to 7.0.0.
- [Release notes](https://github.com/nukesor/comfy-table/releases )
- [Changelog](https://github.com/Nukesor/comfy-table/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nukesor/comfy-table/compare/v6.2.0...v7.0.0 )
---
updated-dependencies:
- dependency-name: comfy-table
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-12 14:25:26 +02:00
dependabot[bot]
f58151abec
Bump proc-macro2 from 1.0.59 to 1.0.60 ( #2718 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.59 to 1.0.60.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.59...1.0.60 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-06-12 14:07:02 +02:00
dependabot[bot]
5a66d7a2f3
Bump actions/checkout from 3.5.2 to 3.5.3 ( #2723 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.2 to 3.5.3.
- [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/8e5e7e5ab8b370d6c329ec480221332ada57f0ab...c85c95e3d7251135ab7dc9ce3241c5835cc595a9 )
---
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-06-12 12:04:12 +00:00
eskimor
f27d4b5bfe
Companion for https://github.com/paritytech/polkadot/pull/7341 ( #2726 )
...
* Companion to enabling past session slashing on production.
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: eskimor <eskimor@no-such-url.com >
Co-authored-by: parity-processbot <>
2023-06-12 11:58:37 +00:00
eskimor
4527f24735
Move vstaging to production ( #7341 )
...
* Move vstaging to production (and thus past session slashing).
WIP: test-runtime still needs to be fixed.
* Fix test-runtime.
---------
Co-authored-by: eskimor <eskimor@no-such-url.com >
2023-06-12 11:15:37 +00:00
Gavin Wood
9716c8a1cb
Frame: Give Referendum SubmitOrigin argument ( #14326 )
...
* Referedum's SubmitOrigin should have an arg
* Fixes
* Nits and two extra utils
* Fixes
* Fixes
2023-06-12 09:10:19 +01:00
Squirrel
d90173e438
fix nightly warnings ( #7347 )
2023-06-11 19:58:42 +00:00
Oliver Tale-Yazdi
23adb35183
para scheduler: fix division ( #7339 )
...
* para scheduler: fix division
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update runtime/parachains/src/scheduler.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
2023-06-11 06:28:19 +00:00
dependabot[bot]
d86d676ce8
Bump clap from 4.3.2 to 4.3.3 ( #2724 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.2...v4.3.3 )
---
updated-dependencies:
- dependency-name: clap
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-06-10 11:32:04 +00:00
asynchronous rob
08d0acf10e
Update all uses of pallet-aura to disallow multiple blocks per slot ( #2707 )
...
* Update all uses of pallet-aura to disallow multiple blocks per slot
* use ConstBool
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-06-09 21:47:35 +00:00
asynchronous rob
62f37e105c
pallet-aura: Allow multiple blocks per slot ( #14024 )
...
* pallet-aura: Allow multiple blocks per slot
* run fmt
* rework as associated type
* fix fallout
* fmt
* use constbool
* fmt
2023-06-09 21:04:37 +00:00
Arkadiy Paronyan
881fd1e0dc
Fix RPC error code conflict ( #14315 )
...
* Base error code module
* Base error code module
* fmt
2023-06-09 18:24:49 +02:00
Squirrel
acda676805
fix new nightly warning ( #2721 )
2023-06-09 15:50:13 +00:00
dependabot[bot]
206a4a4810
Bump serde from 1.0.163 to 1.0.164 ( #2719 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164 )
---
updated-dependencies:
- dependency-name: serde
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-06-09 14:18:19 +00:00
Sergejs Kostjucenko
ee895b3986
fix gha set-output command ( #14312 )
2023-06-09 16:17:35 +03:00
Squirrel
41735589ee
it's always false... ( #13330 )
2023-06-09 12:11:25 +00:00
Juan
4afbff9763
Add Migrations to contracts config ( #2701 )
...
* add Migrations to contracts config
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-06-09 11:46:10 +00:00
Juan
112a0e7352
Move type Migrations to Config ( #14309 )
...
* move migrate sequence to config
* remove commented out code
* Update frame/contracts/src/lib.rs
Co-authored-by: PG Herveou <pgherveou@gmail.com >
* remove Migrations generic
* make runtime use noop migrations
* restrict is_upgrade_supported
* undo is_upgrade_supported change
* Update bin/node/runtime/src/lib.rs
Co-authored-by: PG Herveou <pgherveou@gmail.com >
* add rust doc example for `Migrations`
* feature gate NoopMigration
* fix example code
* improve example
---------
Co-authored-by: PG Herveou <pgherveou@gmail.com >
2023-06-09 11:04:31 +00:00
Squirrel
356620ba5c
tweak to integration tests ( #2713 )
...
* ump.ExecutedUpward -> messageQueue.Processed
* update lock file because
* use one line format
2023-06-09 10:36:59 +00:00
dependabot[bot]
ea3a668558
Bump docker/login-action from 2.1.0 to 2.2.0 ( #2705 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/f4ef78c080cd8ba55a85445d5b36e214a81df20a...465a07811f14bebb1938fbed4728c6a1ff8901fc )
---
updated-dependencies:
- dependency-name: docker/login-action
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-06-09 09:43:06 +00:00