Gavin Wood
9107ae41fd
Introduce EnsureOrigin::try_successul_origin ( #11558 )
...
* Introduce `EnsureOrigin::try_successul_origin`
* Formatting
* Fixes
* Add Morph
* Fixes
* Formatting
2022-05-31 19:12:07 +01:00
Vlad
adf0773f9d
Fix CI after rusty-cachier introduction ( #11556 )
...
* Fix CI after `rusty-cachier` introduction
* Replace anchor with `extends`
2022-05-31 19:07:49 +02:00
Vlad
f0401c56ae
Add rusty-cachier notify job ( #11554 )
...
* Add `rusty-cachier notify` job
* Add comments
2022-05-31 18:46:38 +02:00
Oliver Tale-Yazdi
442602ce3f
Clean up #[transactional] ( #11546 )
...
* Deprecate #[transactional] attribute
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove #[transactional] from nomination pools
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fix
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fix NOOP test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Suppress warnings
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-31 16:45:07 +00:00
Vlad
c91c1c793e
Introduce rusty-cachier ( #11462 )
...
* Introduce `rusty-cachier`
* Return LF at the end of file
* Use `entrypoint` to `unshare(1)` into a new mount namespace
* Use `rusty-cachier`-provided absolute path for `CARGO_TARGET_DIR` everywhere
* Debug single `build-rustdoc` job
* CI: debug
* CI: debug
* CI: debug
* `unshare(1)` is no longer needed
* CI: remove debug
* Revert "Debug single `build-rustdoc` job"
* Formatiing
* Update scripts/ci/gitlab/pipeline/build.yml
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2022-05-31 17:10:04 +02:00
mikolaichuk
c193fa9a60
change impl FnOnce() to generic type + trait bound ( #11534 )
...
* change impl FnOnce() to generic type + trait bound
with_transaction() function can not be used with explicit generic arguments because of this issue: https://github.com/rust-lang/rust/issues/83701
* make the same changes elsewhere
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-05-31 13:34:41 +00:00
Gavin Wood
7808b0c349
Several tweaks needed for Governance 2.0 ( #11124 )
...
* Add stepped curve for referenda
* Treasury SpendOrigin
* Add tests
* Better Origin Or-gating
* Reciprocal curve
* Tests for reciprical and rounding in PerThings
* Tweaks and new quad curve
* Const derivation of reciprocal curve parameters
* Remove some unneeded code
* Actually useful linear curve
* Fixes
* Provisional curves
* Rejig 'turnout' as 'support'
* Use TypedGet
* Fixes
* Enable curve's ceil to be configured
* Formatting
* Fixes
* Fixes
* Fixes
* Remove EnsureOneOf
* Fixes
* Fixes
* Fixes
* Formatting
* Fixes
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Grumbles
* Formatting
* Fixes
* APIs of VoteTally should include class
* Fixes
* Fix overlay prefix removal result
* Second part of the overlay prefix removal fix.
* Formatting
* Fixes
* Add some tests and make clear rounding algo
* Fixes
* Formatting
* Revert questionable fix
* Introduce test for kill_prefix
* Fixes
* Formatting
* Fixes
* Fix possible overflow
* Docs
* Add benchmark test
* Formatting
* Update frame/referenda/src/types.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Docs
* Fixes
* Use latest API in tests
* Formatting
* Whitespace
* Use latest API in tests
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-05-31 11:12:34 +01:00
yjh
c808340d9a
sp-core: impl serde for some offchain types ( #11512 )
...
* sp-core: impl serde for some offchain types
* Update primitives/core/src/offchain/mod.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove serde impls from OpaqueNetworkState/OpaqueMultiaddr
* derive default
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-31 09:25:52 +02:00
Gavin Wood
96809dcac7
Use loops rather than backend for compatibility. ( #11542 )
...
* Use `loops` rather than `backend` for compatibility.
* Move over other converters
2022-05-30 16:07:00 +01:00
Gavin Wood
ecbd65fb95
Safe and sane multi-item storage removal ( #11490 )
...
* Fix overlay prefix removal result
* Second part of the overlay prefix removal fix.
* Report only items deleted from storage in clear_prefix
* Fix kill_prefix
* Formatting
* Remove unused code
* Fixes
* Fixes
* Introduce clear_prefix host function v3
* Formatting
* Use v2 for now
* Fixes
* Formatting
* Docs
* Child prefix removal should also hide v3 for now
* Fixes
* Fixes
* Formatting
* Fixes
* apply_to_keys_whle takes start_at
* apply_to_keys_whle takes start_at
* apply_to_keys_whle takes start_at
* Cursor API; force limits
* Use unsafe deprecated functions
* Formatting
* Fixes
* Grumbles
* Fixes
* Docs
* Some nitpicks 🙈
* Update primitives/externalities/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Formatting
* Fixes
* cargo fmt
* Fixes
* Update primitives/io/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Formatting
* Fixes
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-05-29 12:56:26 +01:00
Alexander Gryaznov
189a310e4c
fix broken links ( #11536 )
2022-05-29 08:28:03 +00:00
Sergej Sakac
ccbab1beea
Fixed pruning docs ( #11519 )
2022-05-28 11:55:51 +02:00
Davide Galassi
678fd0f52f
Fork-Tree import requires post-order DFS traversal ( #11531 )
...
* Fork-tree insert requires post-order dfs traversal
* Add dedicated test for methods requireing post-order traversal
2022-05-27 13:29:31 +02:00
Denis Pisarev
182b775b94
CI: github no longer checks whitelisted actions this way ( #11507 )
...
* CI: github no longer checks whitelisted actions this way
* CI: actually this one is needed and no one knows it's related to a Markdown Link Check
2022-05-27 10:44:57 +02:00
Shawn Tabrizi
8e7adaf283
Storage Layer for All FRAME Extrinsics ( #11431 )
...
* add new trait
* implement DispatchableWithStorageLayer
* at least one transactional
* all dispatch is at least transactional
* storage_layer api
* add test
* storage layer tests
* deprecate transactional tag
* i guess no reason to deprecate
* remove transactional from batch_all
* update tests
* extend trait
* 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_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* 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_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* 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_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix copy paste name
* 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_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Create run_all_benchmarks.sh
* uncomment build
* update number of steps and repeats
* add skip build
* Update run_all_benchmarks.sh
* Update run_all_benchmarks.sh
* new benchmarks
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/test/tests/storage_layers.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/test/tests/storage_layers.rs
* weights
* Update dispatch.rs
* doc link
* decl_macro support
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-05-26 19:28:32 +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
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
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
Sergejs Kostjucenko
6198a5fb06
add rule to the ci job ( #11511 )
2022-05-24 13:10:13 +03: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
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
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
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
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
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
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
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]
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]
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
Alexander Gryaznov
c0fb033206
Stabilize ecdsa_ functions ( #11486 )
2022-05-20 11:20:41 +00:00
Shawn Tabrizi
927019a734
Add Score to Bags List ( #11357 )
...
* Add Score to Bags List
* fix ordering
* make compile
* in progress migration
* make migration compile
* remove old check
* remove runtime specific migration
* fix warning
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* improve migration
* fix
* fix merge
* fmt
* Update migrations.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-05-19 16:40:31 +00:00
Jegor Sidorenko
807a95230b
Fix renaming artifacts ( #11455 )
2022-05-19 13:39:43 +00:00
Kian Paimani
20ef36f1b2
add missing events to elections fallback ( #11436 )
...
* add missing events to elections fallback
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* add test
* fix
* fmt
* Update frame/support/src/storage/types/nmap.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-19 11:54:40 +00:00
kostekIV
ba1f31d040
Make fields of EraRewardPoints public ( #11422 )
2022-05-19 11:10:49 +02:00
Koute
dd854c16e2
Switch to pooling copy-on-write instantiation strategy for WASM ( #11232 )
...
* Switch to pooling copy-on-write instantiation strategy for WASM
* Fix benchmark compilation
* Fix `cargo fmt`
* Fix compilation of another benchmark I've missed
* Cleanups according to review comments
* Move `max_memory_size` to `Semantics`
* Set `memory_guaranteed_dense_image_size` to `max_memory_size`
* Rename `wasm_instantiation_strategy` to `wasmtime_instantiation_strategy`
* Update the doc-comments regarding the instantiation strategy
* Extend the integration tests to test every instantiation strategy
* Don't drop the temporary directory until the runtime is dropped in benchmarks
* Don't drop the temporary directory until the runtime is dropped in tests
2022-05-19 07:32:53 +00:00
Alexander Theißen
b3b7b4ddc7
contracts: Add set_code root dispatchable ( #11451 )
...
* Add `set_code` dispatchable
* 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
Co-authored-by: Parity Bot <admin@parity.io >
2022-05-18 23:50:22 +00:00
Sergejs Kostjucenko
bd225c7938
add GHA support to dependabot ( #11448 )
...
* add GHA support to dependabot
* fix formatting
* add labels
* add label
2022-05-19 00:26:44 +03:00
Bastian Köcher
516a8fa433
trie: Optimize keys function ( #11457 )
...
* trie: Optimize `keys` function
Instead of iterating the entire state and collecting all keys that match the given prefix, we can
directly use the optimized prefix iterator.
* Add a test
2022-05-18 21:20:47 +02:00
João Paulo Silva de Souza
9dd9a98eff
disable check-dependent-cumulus ( #11450 )
2022-05-18 11:35:15 +00:00
Jegor Sidorenko
236cc98be2
Allow to set the max supply for collection ( #11441 )
...
* Allow to set the max supply for collection
* Update error
* Add weights info
* 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_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Update frame/uniques/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-05-18 11:23:44 +00:00
Alexander Samusev
ce77cb1735
[ci] Adjust job order in pipeline test stage with Gitlab DAG ( #11442 )
...
* [Do Not Merge] Test gitlab DAG in pipeline
* add jobs for pipeline cancel
* add check-tracing to cancel-pipeline
2022-05-18 13:14:25 +02:00
Nathan Whitaker
3502bc5c1d
Return a successful response on repeated small block request ( #11429 )
2022-05-18 09:42:53 +02:00
Alexander Theißen
ef46d84aed
contracts: Get rid of #[pallet::without_storage_info] ( #11414 )
...
* Implement `MaxEncodeLen` for pallet-contracts storage
* Remove redundant debug println
* Move code len check to PrefabWasmModule::from_code
2022-05-18 07:40:53 +00:00
Qinxuan Chen
fe4acb7924
Prune some duplicated dependencies in the dep graph ( #11433 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2022-05-18 07:23:15 +00:00