Chris Sosnin
c9316799ea
Remove Job trait ( #5600 )
2022-05-26 14:26:51 -05:00
Sergejs Kostjucenko
37db8aec2d
change ci rule to run benchmarks ( #1301 )
2022-05-26 16:06:48 +03:00
Alexander Theißen
bcc7ccb594
contracts: Update bootnodes ( #1294 )
2022-05-26 10:57:40 +00:00
Davide Galassi
ea469886f8
Test for the fork-tree post-order DFS traversal requirement ( #11521 )
...
* Test for the fork-tree post-order DFS traversal requirement
* Fixed typo
2022-05-25 20:24:33 +00:00
Kian Paimani
dc4a455911
remove pallet-nicks from everywhere ( #5587 )
...
* remove pallet-nicks from everywhere
* Update Cargo.lock
* Update Cargo.lock
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-25 15:25:43 +00:00
Egor_P
9e6d216e26
deleted unnecessary repo checkout to fix fetch binary step ( #1296 )
...
* deleted unnecessary repo checkout to fix fetch binary step
* Update .github/workflows/extrinsic-ordering-check-from-bin.yml
Co-authored-by: Mara Robin B. <mara@broda.me >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Mara Robin B. <mara@broda.me >
2022-05-25 14:46:37 +00:00
Squirrel
ba4975a690
renamed to align with cumulus ( #5570 )
2022-05-25 11:46:16 +00:00
Nazar Mokrynskyi
c090fb4c2e
Companion for #11415 (WeightToFee) ( #5525 )
...
* Companion for https://github.com/paritytech/substrate/pull/11415
* Rename `WeightToFee::calc()` to `WeightToFee::wight_to_fee()`
* Fix typo
* Fix compile errors
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-05-25 10:06:01 +02:00
Davide Galassi
6b9904c1bf
Fix node lookup on fork-tree after a warp-sync ( #11476 )
...
* Fix node lookup on fork-tree after a warp-sync
After a warp-sync, the error condition was triggered by the absence
of the parent node of the first imported block.
The previous lookup implementation was traversing the tree using a
recursive **post-order** DFS, this technique doesn't trigger the issue.
In the last iterative implementation we were using a BFS instead.
* Added internal doc warning
* Small optimization
* Specify post-order DFS in the comment
2022-05-25 07:40:37 +00:00
Nazar Mokrynskyi
0c25a2ee40
Introduce WeightToFee trait instead of WeightToFeePolynomial and make WeightToFeePolynomial implement it instead ( #11415 )
...
* Introduce `WeightToFee` trait instead of `WeightToFeePolynomial` and make `WeightToFeePolynomial` implement it instead
* Rename `WeightToFee::calc()` to `WeightToFee::wight_to_fee()`
* Fix typo
2022-05-25 05:32:11 +00:00
Oliver Tale-Yazdi
29474f9893
Document benchmarking CLI ( #11246 )
...
* Decrese default repeats
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add benchmarking READMEs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update README
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-25 03:47:21 +00:00
Davide Galassi
35af8fd726
Fix Babe revert when last finalized block is a leaf ( #11500 )
...
* Fix Babe revert when a leaf is the last finalized block
Without this fix the last finalized block weight data is wrongly removed
on revert scenario where the last finalized block is a leaf.
* Remove redundant check
* Added test to exercise the fix
* Rename test
* Give variables better names
2022-05-24 17:24:55 +00:00
Niklas Adolfsson
69aa11f680
fix: --feature fast-runtime on westend ( #5585 )
...
The westend runtime was missing the fast runtime for `EpochDuration`
which caused the epoch be 1 hour which isn't fast.
This PR changes the `EpochDuration` to 2 minutes when `--fast-runtime`
is enabled, the same as polkadot and kusama.
2022-05-24 15:24:43 +00:00
Achim Schneider
f744a1a01b
Contracts pallet: removal on idle ( #11202 )
...
* on_initialize -> on_idle
* use remaining_weight info
* no weight_limit for on_idle
* call on_idle in tests
* attempt to fix tests
* run on_initiaize when queue full
* add on_idle to weight info
* add on_idle weight info to on_idle hook
* add basic test for on_initialize with full queue
* disbale check for all keys gone in full queue, full block test
* queue_deth as usize, add comment
* comment was removed by accident
* Update frame/contracts/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* cargo +nightly fmt
* update lazy_removal_does_no_run_on_full_queue_and_full_block
* remove changes in weights.rs
* weights on_idle -> on_process_deletion_queue_batch
* use block number for on_idle
* use BlockNumber for on_initialize
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --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
* Update frame/contracts/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* remove outcommented code
* add check that queue still full for test
* cargo fmt
* cargo +nightly fmt
* Update frame/contracts/src/benchmarking/mod.rs
Co-authored-by: Alexander Gryaznov <hi@agryaznov.com >
* fix weights.rs
* add lazy_removal_does_no_run_on_low_remaining_weight test
* Apply suggestions from code review
Co-authored-by: Alexander Gryaznov <hi@agryaznov.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Alexander Gryaznov <hi@agryaznov.com >
2022-05-24 14:17:23 +00:00
Squirrel
545dfe327d
sudo was removed but we were still pulling in the crate. ( #1289 )
2022-05-24 12:13:31 +00:00
Bernhard Schuster
032d623e8c
orchestra license headers ( #5588 )
2022-05-24 13:10:03 +02:00
joe petrowski
97a97965b6
Runtime Documentation ( #1282 )
...
* add docs to parachain runtimes
* update and add top readme
* clarify docs
* review plus licenses
* Update parachains/README.md
* Update parachains/runtimes/assets/README.md
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
* Update parachains/runtimes/assets/README.md
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-05-24 12:58:39 +02:00
Sergejs Kostjucenko
6198a5fb06
add rule to the ci job ( #11511 )
2022-05-24 13:10:13 +03:00
Bernhard Schuster
fd51ecbe70
prepare orchestra crate publishing ( #5579 )
2022-05-24 11:06:47 +02:00
Kian Paimani
494167a05b
Optimize offchain worker memory usage a bit. ( #11454 )
...
* add missing events to elections fallback
* Merged
* add some logs and stuff
* undo a bunch of things
* undo lock file
* remove unused err
* fix build
2022-05-24 06:23:05 +00:00
Koute
4f393171d7
Adjust maximum memory pages hard limit for the pooling instantiation strategy ( #11482 )
...
* Run `sc-executor-wasmtime` unit tests for all instantiation strategies
* Adjust maximum memory pages hard limit for the pooling instantiation strategy
2022-05-24 05:37:04 +00:00
Chris Sosnin
d0453cf24d
Migrate provisioner subsystem ( #5568 )
2022-05-23 14:43:58 -05:00
Shawn Tabrizi
d9f33dc7e9
Create Script to Run All Benchmarks ( #11493 )
...
* Create run_all_benchmarks.sh
* Update run_all_benchmarks.sh
* Update run_all_benchmarks.sh
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update scripts/run_all_benchmarks.sh
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add default for $1
* Typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update run_all_benchmarks.sh
* new weights on benchmarking machine
* prefer `--chain=dev`
* fix compile
* fix command
* fmt
* dont use square brackets
* Extend doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove +nightly
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add error file an run execute everything optimistically
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: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-23 16:56:42 +00:00
Keith Yeung
8d3f692e0c
Introduce #[pallet::call_index] attribute to dispatchables ( #11381 )
...
* Introduce #[pallet::call_index] attribute to dispatchables
* cargo fmt
* Add more docs and prevent duplicates of call indices
* Add UI test for conflicting call indices
* cargo fmt
Co-authored-by: parity-processbot <>
2022-05-23 16:47:36 +00:00
Chevdor
86e777d646
Node bump to v0.9.220 ( #1284 )
...
* Node bump to v0.9.220
* Runtime version bump to 922 (#1283 )
* Runtime version bump to 922
* Switch to 9220
* Update cargo.lock
2022-05-23 14:03:39 +00:00
João Paulo Silva de Souza
c92fb61e44
use API for pr-custom-review ( #1279 )
2022-05-23 15:14:35 +02:00
João Paulo Silva de Souza
1ccd68dd15
use API for pr-custom-review ( #5576 )
2022-05-23 15:14:28 +02:00
João Paulo Silva de Souza
3122c4fb3c
Use API for pr-custom-review ( #11487 )
...
* use API for pr-custom-review
* bump action tag
* temporary: disable draft skip
* temporary: use staging
* try it with the prod instance
* revert draft skip
2022-05-23 15:14:20 +02:00
Chevdor
c2abd7bde5
Runtime version bump to 922 ( #1283 )
...
* Runtime version bump to 922
* Switch to 9220
2022-05-23 14:37:20 +02:00
Shawn Tabrizi
c980c39026
Fix State Trie Migration Benchmarks ( #11502 )
...
* enable signed migrations in benchmarks
* T instead of Test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove 'mut'
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-05-23 10:10:23 +00:00
Squirrel
c7ef5f6a6b
Use named events in cumulus pallets ( #1260 )
...
* Use named events
* For now standardise on message_id
* cargo fmt
* reverting xcm changes
* remove superfluous comments
* renaming
* updating benches
2022-05-23 08:23:27 +00:00
Bastian Köcher
7ff7457f4b
Make --dev listen by default on /ip4/0.0.0.0/tcp/30333 ( #11492 )
...
If `--validator` is passed we also listen on this address and as `--dev` is a shortcut for multiple
CLI args, including `--validator`, we should make it consistent.
2022-05-22 09:19:07 +02:00
Qinxuan Chen
12221cb534
Companion for polkadot#5569 ( #1281 )
...
* Companion for polkadot#5569
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-05-21 09:14:02 +00:00
Niklas Adolfsson
c75474f7b8
rpc servers CLI: add --max--subscriptions--per--connection + fix a few bugs ( #11461 )
...
* cli: fix RPC CLI nits
* remove needless lines
* cargo fmt
* Update client/service/src/lib.rs
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: James Wilson <james@jsdw.me >
2022-05-21 08:45:57 +00:00
Qinxuan Chen
e4f6f8d76a
Companion for substrate#11469 ( #5569 )
...
* Comanion for substrate#11469
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove extra Rpc naming in the structs
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update Substrate
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-05-21 08:37:55 +00:00
Qinxuan Chen
5497069d54
Unify rpc api and implementation name ( #11469 )
...
* Unify rpc api and implementation name
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* MauanlSeal ==> ManualSealRpc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove extra Rpc naming in the structs
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix merge
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-21 08:13:09 +02:00
Bastian Köcher
dcb8a8504e
InMemoryBackend: Make it generic over the key hasher ( #11488 )
...
* InMemoryBackend: Make it generic over the key hasher
* Update primitives/state-machine/src/in_memory_backend.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Update primitives/state-machine/src/in_memory_backend.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* FMT
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
2022-05-21 07:24:24 +02:00
Bisola Olasehinde
5409510510
Migrate brigdes pallet to named events ( #5575 )
...
* bridges-dispatch
* bridges-messages
* bridges-token-swap
2022-05-20 21:11:59 +00:00
Alexandru Vasile
87de1e7e0d
RPC: Mark storage methods as blocking ( #11459 )
...
* client/api: Make `storage_keys` blocking
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* client/api: Ensure `state_*` RPC methods are blocking
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* client/rpc: Ensure `childstate_*` RPC methods are blocking
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* client/rpc: `ChainApi` make RPC methods sync
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove unused async-traits
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* client/rpc-api: Make chain RPC methods blocking
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Add `blocking` to `state_getKeysPaged` RPC call
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Fix build and warning
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Remove `async_trait` tidyup
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-20 19:16:35 +00:00
dependabot[bot]
909f65d0cd
Bump actions/upload-artifact from 2 to 3 ( #5547 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
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>
2022-05-20 17:39:30 +03:00
dependabot[bot]
6691f8ec29
Bump docker/build-push-action from 2 to 3 ( #5548 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
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>
2022-05-20 17:39:17 +03:00
dependabot[bot]
229b289b5d
Bump docker/login-action from 1 to 2 ( #5550 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/login-action
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>
2022-05-20 17:35:47 +03:00
dependabot[bot]
4a71017dd3
Bump gaurav-nelson/github-action-markdown-link-check from 1.0.9 to 1.0.14 ( #11464 )
...
* Bump gaurav-nelson/github-action-markdown-link-check
Bumps [gaurav-nelson/github-action-markdown-link-check](https://github.com/gaurav-nelson/github-action-markdown-link-check ) from 1.0.9 to 1.0.14.
- [Release notes](https://github.com/gaurav-nelson/github-action-markdown-link-check/releases )
- [Commits](https://github.com/gaurav-nelson/github-action-markdown-link-check/compare/7481451f70251762f149d69596e3e276ebf2b236...58f84fd654812d0d8da4e4d4a559eda087daf8ce )
---
updated-dependencies:
- dependency-name: gaurav-nelson/github-action-markdown-link-check
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update .github/workflows/md-link-check.yml
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2022-05-20 16:22:01 +02:00
dependabot[bot]
5db6491add
Bump actions/upload-artifact from 2 to 3 ( #1271 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
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>
2022-05-20 16:20:52 +02:00
dependabot[bot]
441fc17847
Bump actions/download-artifact from 2 to 3 ( #5574 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
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>
2022-05-20 16:20:30 +02:00
dependabot[bot]
136127b799
Bump docker/login-action from 1 to 2 ( #1272 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: docker/login-action
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>
2022-05-20 16:11:37 +03:00
dependabot[bot]
ac9ef74463
Bump actions/download-artifact from 2 to 3 ( #1273 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
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>
2022-05-20 14:52:54 +02:00
dependabot[bot]
fc7959a871
Bump actions/cache from 2 to 3 ( #5549 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
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>
2022-05-20 15:49:54 +03:00
dependabot[bot]
6c020492f3
Bump actions/cache from 2 to 3 ( #1274 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
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>
2022-05-20 15:49:08 +03:00
dependabot[bot]
7ce079a6fd
Bump actions/checkout from 2 to 3 ( #11463 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 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/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
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>
2022-05-20 15:48:27 +03:00