- Jan 30, 2022
-
-
ordian authored
-
ordian authored
-
Oliver Tale-Yazdi authored
* Don't merge this Signed-off-by: Oliver Tale-Yazdi <[email protected]> * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_balances --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_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ * Add baseline benches Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Revert "Don't merge this" This reverts commit d0fcc4f9cf83492862618c3b254cb6589f1b1831. * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_benchmarking::baseline --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/frame_benchmarking_baseline.rs * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_benchmarking::baseline --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/frame_benchmarking_baseline.rs * Add weight modules Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Apply suggestions from code review Co-authored-by: Parity Bot <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>
-
- Jan 28, 2022
-
-
Bernhard Schuster authored
* fixup * fmt * fix tests
-
Lldenaurois authored
* Move PersistedValidationData check into * Address feedback * Remove incorrect comment * Update runtime/parachains/src/inclusion/mod.rs * fmt * Add logging Co-authored-by: Robert Habermeier <[email protected]> Co-authored-by: Andronik <[email protected]>
-
- Jan 27, 2022
-
-
Robert Klotzner authored
* Fix incomplete sorting. * fmt. * Better test. * Update runtime/parachains/src/disputes.rs Co-authored-by: Bastian Köcher <[email protected]> * chore fmt * simplify the sorting for two items * add test for assure duplicates are detected * fixup tests Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bernhard Schuster <[email protected]>
-
Georges authored
* Adding `GovernanceFallback` after changes to substrate * Update Substrate * Update Substrate again Co-authored-by: Bastian Köcher <[email protected]>
-
- Jan 26, 2022
-
-
sandreim authored
* Rename/refactor around get_session_index Signed-off-by: Andrei Sandu <[email protected]> * choose proper head for fetching session Signed-off-by: Andrei Sandu <[email protected]> * revert rename Signed-off-by: Andrei Sandu <[email protected]> * fix comments Signed-off-by: Andrei Sandu <[email protected]> * renaming and more comments Signed-off-by: Andrei Sandu <[email protected]> * review feedback Signed-off-by: Andrei Sandu <[email protected]> * Run Fetch task in correct session Signed-off-by: Andrei Sandu <[email protected]> * Log warning when ancestors unavailable Signed-off-by: Andrei Sandu <[email protected]> * Fixes Signed-off-by: Andrei Sandu <[email protected]> * fix Signed-off-by: Andrei Sandu <[email protected]>
-
sandreim authored
* Dont error in finality_target_with_longest_chain Signed-off-by: Andrei Sandu <[email protected]> * fix Signed-off-by: Andrei Sandu <[email protected]> * Add error flag Signed-off-by: Andrei Sandu <[email protected]> * Add error flag in dispute-coordinator Make sure to send errors to subsystems requesting data depending on missing session info Signed-off-by: Andrei Sandu <[email protected]> * Scrape ancestors Signed-off-by: Andrei Sandu <[email protected]> * fmt Signed-off-by: Andrei Sandu <[email protected]> * fix Signed-off-by: Andrei Sandu <[email protected]> * Fix naming Signed-off-by: Andrei Sandu <[email protected]> * review feedback Signed-off-by: Andrei Sandu <[email protected]> * fmt Signed-off-by: Andrei Sandu <[email protected]> *
💬 fixes Signed-off-by: Andrei Sandu <[email protected]> * consume Signed-off-by: Andrei Sandu <[email protected]> * fix tests Signed-off-by: Andrei Sandu <[email protected]> * typo Signed-off-by: Andrei Sandu <[email protected]> * review fixes Signed-off-by: Andrei Sandu <[email protected]> * Bump scraped blocks LRU capacity Signed-off-by: Andrei Sandu <[email protected]> * 🧯🔥 Signed-off-by: Andrei Sandu <[email protected]> * remove prints Signed-off-by: Andrei Sandu <[email protected]> * Increase scraped blocks cache size Signed-off-by: Andrei Sandu <[email protected]> * more review fixes Signed-off-by: Andrei Sandu <[email protected]> * another fix Signed-off-by: Andrei Sandu <[email protected]> * fix target_ancestor Signed-off-by: Andrei Sandu <[email protected]> * Scrape up to max finalized block Signed-off-by: Andrei Sandu <[email protected]> * undo comment change Signed-off-by: Andrei Sandu <[email protected]> * Limit ancestry lookup to last finalized block or max finality lag Signed-off-by: Andrei Sandu <[email protected]> * debug damage Signed-off-by: Andrei Sandu <[email protected]> -
Bastian Köcher authored
-
asynchronous rob authored
-
Chris Sosnin authored
* availability-distribution: look for leaf ancestors * Re-use subsystem-util * Rework ancestry tasks scheduling * Requester tests * Improve readability for ancestors lookup
-
- Jan 25, 2022
-
-
Georges authored
* Fixing polkadot after subtrate changes `MAX_NOMINATIONS` was changed to `MaxNominations` * Fixing some more places * Apply suggestions from code review * update lockfile for {"substrate"} Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: parity-processbot <>
-
Chevdor authored
* Add codeden-units=1 ref #4311 * opt-level to 3 * Fix opt-level * Refactor apt-level into the release profile
-
Alexander Samusev authored
-
Qinxuan Chen authored
* Companion for substrate#10632 Signed-off-by: koushiro <[email protected]> * cargo format Signed-off-by: koushiro <[email protected]> * Fix bags-list Signed-off-by: koushiro <[email protected]> * Update Substrate * Fix Signed-off-by: koushiro <[email protected]> * Fix bridges test * FMT Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Jan 24, 2022
-
-
Alexander Samusev authored
* [ci] WIP: pipeline chores * fix vault * fix secrets
-
Chevdor authored
* Add templates * Add folder for local storage of the digests * Add first draft of the changelog scripts * Enable Audits in the change template * Fixes for Polkadot * Fix templating issue in case there is no high prio change * Fix Ruby setup * Remove shell * Fix chain names * Fix ENV * Fix how to get runtime * Fix runtime_dir * Fix context location * Pin changelogerator to a specific version
-
- Jan 21, 2022
-
-
Bastian Köcher authored
* Companion for Substrate#10655 https://github.com/paritytech/substrate/pull/10655 This removes the last usages of `Default` in conjunction with `AccountId` * More fixes * More of them! * FMT * Update Substrate
-
Oliver Tale-Yazdi authored
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Bastian Köcher authored
We use the `Compiled` wasm execution and for that the `wasmtime` needs to be enabled.
-
Kian Paimani authored
* wip template for hrmp benchmarks * add all of the benchmarks, first draft * File was not saved :/ * cargo +nightly fmt * Use configs * add configs * Fix rococo * Final touches * revert fmt changes, one last time * Fix wrappings * Fix a bunch of tests * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_hrmp.rs * add to westend * actually use everything * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_hrmp.rs * Update runtime/parachains/src/hrmp.rs Co-authored-by: Keith Yeung <[email protected]> * use real weight in wnd * reorg * minor cleanup * weigh some of the internal stuff as well * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_hrmp.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_hrmp.rs * add files * Master.into() * add validation * fmt * fmt * final fixes * all runtimes build * undo formatting * Update runtime/parachains/src/hrmp.rs Co-authored-by: Zeke Mostov <[email protected]> * non-controversial changes * do it the parachain-way: use const instead of type configs for simplicity. * borrow assert_storage_consistency_exhaustive * move assert_storage_consistency_exhaustive to Pallet, so it can be reused for benchmarks as well. * fix typo Co-authored-by: Parity Bot <[email protected]> Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Sergey Shulepov <[email protected]> Co-authored-by: Zeke Mostov <[email protected]>
-
Keith Yeung authored
* Refactor ParentIsDefault to ParentIsAllZeroes * Remove Default bound on all AccountId types under the xcm directory * Change to ParentIs<A: Get<AccountId>, AccountId> * Provide a better account for ParentIs * Fixes * Fixes * Fixes * Fixes * Update xcm/xcm-builder/src/currency_adapter.rs Co-authored-by: Bastian Köcher <[email protected]> * Use preset account ID value for parent MultiLocations Co-authored-by: Bastian Köcher <[email protected]>
-
- Jan 20, 2022
-
-
Oliver Tale-Yazdi authored
* Add `without_storage_info` The MaxEncodedLen trait is now enforced by default in Substrate. All pallets missing an implementation need to be marked with `without_storage_info` now. Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove `generate_storage_info` Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add more `without_storage_info` Signed-off-by: Oliver Tale-Yazdi <[email protected]> * update lockfile for {"substrate"} Co-authored-by: parity-processbot <>
-
Bernhard Schuster authored
* fix miscalculation of remaining weight * rename a var * move out enforcing filtering by dropping inherents * prepare for dispute statement validity check being split off * refactor * refactor, only check disputes we actually want to include * more refactor and documentation * refactor and minimize inherent checks * chore: warnings * fix a few tests * fix dedup regression * fix * more asserts in tests * remove some asserts * chore: fmt * skip signatures checks, some more * undo unwatend changes * Update runtime/parachains/src/paras_inherent/mod.rs Co-authored-by: sandreim <[email protected]> * cleanups, checking CheckedDisputeStatments makes no sense * integrity, if called create_inherent_inner, it shall do the checks, and not rely on enter_inner * review comments * use from impl rather than into * remove outdated comment * adjust tests accordingly * assure no weight is lost * address review comments * remove unused import * split error into two and document * use assurance, O(n) * Revert "adjust tests accordingly" This reverts commit 3cc9a3c449f82db38cea22c48f4a21876603374b. * fix comment * fix sorting * comment Co-authored-by: sandreim <[email protected]>
-
Javier Viola authored
-
- Jan 19, 2022
-
-
Gavin Wood authored
* Mainnets have upper bound on treasury bond required * Update runtime/common/src/impls.rs * Update runtime/polkadot/src/lib.rs Co-authored-by: Keith Yeung <[email protected]> * Bump * Update Substrate Co-authored-by: RRTTI <[email protected]> Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Robert Klotzner authored
-
- Jan 18, 2022
-
-
Sergey Pepyakin authored
* pvf-checker-subsystem: metrics This commits adds metrics to the PVF pre-checking subsystem. * Apply suggestions from code review Co-authored-by: sandreim <[email protected]> Co-authored-by: sandreim <[email protected]>
-
Alexander Theißen authored
* Make `pallet_xcm::execute` supply the proper weight credit * Use weight correction Co-authored-by: Shawn Tabrizi <[email protected]>
-
Bastian Köcher authored
It also moves some simple scripts directly into the .gitlab.yaml file.
-
- Jan 17, 2022
-
-
zqhxuyuan authored
-
Sergey Pepyakin authored
if the PVF pre-checking is disabled the runtime dispatchable will reject any attempts of submission. This is also concern the unsigned tx validation. Right now, the `include_pvf_check_statement` dispatchable is effectively uncallable because of the weight set to the maximum value. If we were to benchmark it, it would become includable in a block, but since there will be no active votes, the dispatchable won't do anything. However, it will execute some code, like signature validation and querying some storage entries. To be completely safe, we can bail out early if the `pvf_checking_enabled` config is disabled. That's what this PR does.
-
Zeke Mostov authored
* Change EraIndex import path: companion #10671 * update lockfile for {"substrate"} Co-authored-by: parity-processbot <>
-
- Jan 15, 2022
-
-
ordian authored
-
ordian authored
-
Robert Klotzner authored
-
- Jan 13, 2022
-
-
Alexander Popiak authored
* add fast-runtime feature for reduced session times * make democracy periods fast on fast-runtime * propagate fast-runtime feature through cargo.toml files * add fast motion and term durations to Kusama * Update runtime/westend/Cargo.toml Co-authored-by: Kian Paimani <[email protected]> * set session time to 2 minutes to avoid block production issues * formatting * update Substrate * set democracy fast periods back to 1min * set launch period and enactment period to 1 block in fast-runtime * remove unnecessary westend period configs * add prod_or_test macro to allow specifying prod, test and env values for parameter types * move prod_or_test macro into common module and use it consistently * rename macro to prod_or_fast * cargo +nightly fmt * bump impl_versions * newline Co-authored-by: Kian Paimani <[email protected]> * add note that env variable is evaluated at compile time * newline Co-authored-by: Kian Paimani <[email protected]> * newline Co-authored-by: Kian Paimani <[email protected]> * cargo fmt * impl_version: 0 * impl_version: 0 * use prod_or_fast macro for LeasePeriod and LeaseOffset * use prod_or_fast macro in WND and ROC constants Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Giles Cope <[email protected]>
-
Sergey Pepyakin authored
In this PR, paras module emit runtime events on certain PVF pre-checking related conditions. Specifically, there are 3 new events in the paras module: 1. PvfCheckStarted 2. PvfCheckAccepted 3. PvfCheckRejected All of those have identifiers for the parachain that triggered the PVF pre-checking and the validation code that goes through the pre-checking. The mechanics of those are as follows. Each time a new PVF is added, be it due to onboarding or upgrading, the `PvfCheckStarted` will be triggered. If another parachain triggers a pre-checking process for the validation code which is already being pre-checked, another `PvfCheckStarted` event will be triggered with the corresponding para id. When the PVF pre-checking voting for a PVF was finished, several `PvfCheckAccepted/Rejected` events will be triggered: one for each para id that was subscribed to this check (i.e. was a "cause" for it). If the PVF pre-checking is disabled, then one can still expect these events to be fired. Since insta PVF approval is syncronous, the `PvfCheckStarted` will be followed by the `PvfCheckAccepted` with the same validation code and para id. If somebody is interested in following validation code changes for a PVF of a parachain, they would need to subscribe to those events. I did not supply the topics for the events, since I am not sure if that's needed or will be used, but they can be added later if needed.
-
sandreim authored
* Check authority status on active leaves update Signed-off-by: Andrei Sandu <[email protected]> * cargo changes Signed-off-by: Andrei Sandu <[email protected]> * Fix tests Signed-off-by: Andrei Sandu <[email protected]> * Add metric for authority status Signed-off-by: Andrei Sandu <[email protected]> * Revert "Fix tests" This reverts commit 5bd56bb367ec0b01ecca04498b3974ab67bf3189. * Revert "cargo changes" This reverts commit ffea18fe3ca12b27e6471ad9f44592799ec90956. * Revert "Check authority status on active leaves update" This reverts commit 55a30ac81bf32a72e0b79ca2e7bb612344a5c43d. * Test fixups Signed-off-by: Andrei Sandu <[email protected]> * fix Signed-off-by: Andrei Sandu <[email protected]> * update Signed-off-by: Andrei Sandu <[email protected]> * undo damage Signed-off-by: Andrei Sandu <[email protected]> * dont update status on runtime errors Signed-off-by: Andrei Sandu <[email protected]> * Fix tests Signed-off-by: Andrei Sandu <[email protected]> * fix inconsistency Signed-off-by: Andrei Sandu <[email protected]> * Review feedback Signed-off-by: Andrei Sandu <[email protected]> * Dont derive primitive Default Signed-off-by: Andrei Sandu <[email protected]> * add dummy_session_info helper Signed-off-by: Andrei Sandu <[email protected]> * unset parachain validator status if no longer authority Signed-off-by: Andrei Sandu <[email protected]> * update Signed-off-by: Andrei Sandu <[email protected]> * damn Signed-off-by: Andrei Sandu <[email protected]> *
🤦 Signed-off-by: Andrei Sandu <[email protected]>
-