Kian Paimani
be4b5fad47
companion for fast unstake batching ( #6253 )
...
* update
* add migrations
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-11-08 16:57:57 +00:00
Kian Paimani
fb40925ebe
Update polkadot inflation to take into account auctions ( #5872 )
...
* Update polkadot inflation to take into account auctions
* a possible solution -- but needs a rather untrivial data seeding
* some additional comments
* Use LOWEST_PUBLIC_ID as a guide to filter out system/common good para ids
* Fixes
* move tests
* fix
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-11-08 08:04:46 +00:00
Michal Kucharczyk
8057d45a67
BlockId removal: &Hash to Hash ( #6246 )
...
* BlockId removal: &Hash to Hash
It changes &Block::Hash argument to Block::Hash.
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* missing file corrected
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-11-07 22:21:06 +00:00
Xiliang Chen
e3054b6149
cleanup deps ( #6242 )
2022-11-07 12:09:33 +01:00
Oliver Tale-Yazdi
f8c3a658b2
Co #12085 : Update k256 ( #6238 )
...
* Typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update Cargo.lock
* update lockfile for {"substrate"}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: parity-processbot <>
2022-11-05 12:25:55 +00:00
Michal Kucharczyk
a87b2e5241
BlockId removal: refactor: Backend::block_indexed_body ( #6233 )
...
* BlockId removal: refactor: Backend::block_indexed_body
It changes the arguments of `Backend::block_indexed_body` method from: `BlockId<Block>` to: `&Block::Hash`
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-11-03 19:32:32 +00:00
Michal Kucharczyk
a4a5fa8523
BlockId removal: refactor: Backend::justifications ( #6229 )
...
* BlockId removal: refactor: Backend::justifications
It changes the arguments of `Backend::justifications` method from: `BlockId<Block>` to: `&Block::Hash`
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* formatting
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-11-02 22:59:27 +00:00
alexgparity
6d83525b50
Replace parachain/parathread boolean by enum ( #6198 )
...
* Replace parachain/parathread boolean by enum
* Address PR comments
* Update dependencies
* ParaType -> ParaKind
* Swap enum field order to avoid migration
* Rename paratype field to parakind
* Manual en-/decocing of Parakind
* Manual TypeInfo for ParaKind
* rename field back to parachain
* minor
* Update runtime/parachains/src/paras/mod.rs
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* Manual serde Serialize and Deserialize for ParaKind
* cargo fmt
* Update runtime/parachains/src/paras/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Add test for serde_json encoding/decoding
* Move serde_json dep to dev-deps
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
Co-authored-by: Andronik <write@reusable.software >
2022-11-01 18:34:16 +01:00
Michal Kucharczyk
be70e4456c
BlockId removal: refactor: BlockBackend::block_body ( #6223 )
...
* BlockId removal: refactor: BlockBackend::block_body
It changes the arguments of `BlockBackend::block_body` method from: `BlockId<Block>` to: `&Block::Hash`
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-11-01 17:22:46 +00:00
Alexander Theißen
e8299e5d7d
Companion for update wasm-opt ( #6209 )
...
* Update cc
* Update regex
* Update thiserror
* Update anyhow
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-30 16:50:30 +01:00
Roman Useinov
b394af891f
[Companion] StakingInterface adjustments ( #6199 )
...
* [Companion] StakingInterface adjustments
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-29 16:02:33 +02:00
Oliver Tale-Yazdi
586fa42c0b
Co #12558 : Update pallet-multisig benches ( #6188 )
...
* Typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add multisig weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update multisig weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-10-27 00:02:46 +02:00
Shawn Tabrizi
d40b31791d
Companion for #12457 (Bounded Multisig) ( #6172 )
...
* u16 -> u32
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-25 19:22:29 +00:00
Mara Robin B
f8cc39a761
sync versions with current release (0.9.31) ( #6176 )
...
* Bump spec_version to 9310
* bump transaction_version (0.9.31) (#6171 )
* Bump transaction_version for polkadot
* Bump transaction_version for kusama
* Bump transaction_version for rococo
* Bump transaction_version for westend
* Bump transaction_version for polkadot
* Bump transaction_version for kusama
* Bump transaction_version for rococo
* Bump transaction_version for westend
* Bump crate versions (0.9.31)
2022-10-22 00:08:53 -04:00
Kian Paimani
5c0cb331bb
try and fix build ( #6170 )
2022-10-20 16:23:13 +00:00
Kian Paimani
7e3ac821e9
Companion for EPM duplicate submissions ( #6115 )
...
* make it work
* add migration
* fix
* Update utils/staking-miner/src/opts.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* Update utils/staking-miner/src/monitor.rs
* small tweaks
* Update utils/staking-miner/src/opts.rs
Co-authored-by: Bastian Köcher <info@kchr.de >
* fmt
* fix print'
* fmt
* update lockfile for {"substrate"}
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: parity-processbot <>
2022-10-19 20:45:23 +00:00
Niklas Adolfsson
400ee474a5
companion for #12212 ( #6162 )
...
* companion for #12212
* cargo fmt
* fix build
* update Cargo.lock
* update Cargo.lock
2022-10-18 20:09:37 +02:00
Sebastian Kunert
9e690fe1b6
Bump substrate ( #6164 )
2022-10-18 17:13:28 +00:00
Michal Kucharczyk
699cc55d7b
BlockId removal: refactor: StorageProvider ( #6160 )
...
* BlockId removal: refactor: StorageProvider
It changes the arguments of `Backend::StorageProvider` trait from:
block: `BlockId<Block>` to: hash: `&Block::Hash`
* Update node/client/src/lib.rs
Co-authored-by: Bastian Köcher <info@kchr.de >
* update lockfile for {"substrate"}
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: parity-processbot <>
2022-10-18 14:01:26 +00:00
Sebastian Kunert
99f705537b
Update clap to version 4 ( #6128 )
...
* Move clap to 4.0.9
* Remove "deprecated" feature flag
* Convert to default_value_t
* update lockfile for {"substrate"}
* Add group(skip) to avoid naming conflict
* More group(skip)
Co-authored-by: parity-processbot <>
2022-10-18 09:02:41 +00:00
code-terror
151d4a97bb
Fix fuzzing builds xcm-fuzz and erasure-coding fuzzer ( #6153 )
...
* fix fuzzing builds
* change Cargo.lock
* change honggfuzz
Co-authored-by: commented-line <venkatamaturi98@gmail.com >
2022-10-16 21:21:08 +00:00
Michal Kucharczyk
a8b79a3b48
BlockId removal refactor: Backend::state_at ( #6149 )
...
* BlockId removal refactor: Backend::state_at
* formatting
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-14 10:37:17 +00:00
Sergej Sakac
0cc0867c45
pallet-mmr: RPC and Runtime APIs work with block numbers ( #6072 )
...
* pallet-mmr: RPC API works with block numbers
* small fix
* update
* change types
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-13 11:04:00 +00:00
Mattia L.V. Bradascio
b3532393b8
Malus: add disputed block percentage ( #6100 )
...
* Malus: add disputed block percentage
* Bump clap to support value_parser with range
* Add rand crate and use Bernoulli and Distribution
* Add conditional logic based on sampled value from Bernoulli distribution
* Add SuggestGarbageCandidateOptions struct
* Cleanup tests
* * Replace unwrap with expect and meaningful error message
* * Remove Inner
* Remove intercept_outgoing
* * Rename sampled variable
* Move info! logs to include candidate hash of malicious candidate
* * Add percentage option to dispute_ancestor
* * Support static probability for `ReplaceValidationResult` proxy
* Update some comments and docs
* * Add `--percentage` to `back-garbage-candidate` variant
* Rename structs for consistency
* * Add probabilistic behavior to `dispute-ancestor` variant
* Add probabilistic behavior to `back-garbage-candidate` variant
* Rename structs in dispute variant
* * More descriptive comments
* * cargo +nightly fmt --all
* * Move Bernoulli distributrion to ReplaceValidationResult constructor
* Rename random_bool to behave_maliciously
* * Remove dangling comment
* * Consistent log
* * Add logs based on sampled value
* * Cargo +nightly fmt --all
* * Remove unused percentage attributed after moving Bernoulli to constructor
* Squashed commit of the following:
commit e4361b6d80
Author: Chris Sosnin <48099298+slumber@users.noreply.github.com >
Date: Mon Oct 10 10:06:44 2022 +0400
Fix flaky test (#6131 )
* Split test + decrease test timeout
* fmt
* spellcheck
commit f614752c22
Author: girazoki <gorka.irazoki@gmail.com >
Date: Mon Oct 10 06:39:30 2022 +0200
Add event to asset claim (#6029 )
commit 71197818a4
Author: Leszek Wiesner <leszek@jsgenesis.com >
Date: Mon Oct 10 00:23:54 2022 +0200
Companion for 12109 (#5929 )
* Update following `pallet-vesting` configurable `WithdrawReasons`
* Update lib.rs
* Update lib.rs
* Update lib.rs
* update lockfile for {"substrate"}
* fix warning
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
commit 607350449c
Author: Bastian Köcher <info@kchr.de >
Date: Fri Oct 7 13:40:40 2022 +0200
Companion for upgrading pin-project (#6118 )
* Companion for upgrading pin-project
This will remove some warnings with the latest rustc nightly/stable.
https://github.com/paritytech/substrate/pull/12426
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
commit c8151aed3c
Author: Sergej Sakac <73715684+Szegoo@users.noreply.github.com >
Date: Thu Oct 6 19:20:58 2022 +0200
Maximum value for `MultiplierUpdate` (#6021 )
* update multiplier
* fix
* update lockfile for {"substrate"}
* fmt
* fix typo
Co-authored-by: parity-processbot <>
commit 8d1c16dc0d
Author: Adrian Catangiu <adrian@parity.io >
Date: Thu Oct 6 12:58:39 2022 +0300
service: use MmrRootProvider as custom BEEFY payload provider (companion for 12428) (#6112 )
* service: use MmrRootProvider as custom BEEFY payload provider
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
commit 910e21847f
Author: Branislav Kontur <bkontur@gmail.com >
Date: Thu Oct 6 10:03:34 2022 +0200
Skip `unexpected metric type`
* Dump more info for `unexpected metric type`
* Skip `unexpected metric type`
commit af6a5cd96a
Author: Andronik <write@reusable.software >
Date: Thu Oct 6 00:36:51 2022 +0200
update kvdb & co (#6111 )
* toml changes
* REVERTME: patch
* adapt parachains db interface
* fix Cargo.toml patch after master rebase
* fix av-store
* fix chain-selection
* fix parachains-db?
* Revert "fix Cargo.toml patch after master rebase"
This reverts commit 3afcbf033c86027b3f2b909d83ec703591bdd287.
* Revert "REVERTME: patch"
This reverts commit 464b717cf4142d3d09c3d77b83700b632d8c5f54.
* Use `Ok` imported from prelude
Co-authored-by: Bastian Köcher <info@kchr.de >
* update lockfile for {"substrate"}
* Revert "update lockfile for {"substrate"}"
This reverts commit fdc623de226f7645741b86c4b1a7d030fed2172d.
* cargo update -p sp-io
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: parity-processbot <>
commit 9a3cf4cd1f
Author: Gavin Wood <gavin@parity.io >
Date: Wed Oct 5 22:17:59 2022 +0100
Companion for #11649 : Bound uses of `Call` (#5729 )
* Fixes
* Clear out old weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Resolve merges
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix weight traits
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* polkadot runtime: Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* rococo runtime: update pallet configs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add preimage migration
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add all migrations
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Democracy is not on Westend
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* [Migration] Refund stored multisig calls (#6075 )
* Add Preimages to referenda config
Needed since Gov V2 just merged.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add multisig migration to Westend+Rococo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix Executive syntax
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Bump Substrate
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: parity-processbot <>
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
commit 4aea71a95f
Author: Alexander Theißen <alex.theissen@me.com >
Date: Wed Oct 5 15:15:07 2022 +0200
Pass through `runtime-benchmark` feature (#6110 )
commit 42c043d7f4
Author: Keith Yeung <kungfukeith11@gmail.com >
Date: Wed Oct 5 17:47:15 2022 +0800
Properly migrate weights to v2 (#6091 )
* Create migration for config pallet
* Use XcmWeight in XCM pallet extrinsics
* Link to PR in doc comment
* cargo fmt
* Fix tests
* Fix tests
* Remove unused import
* Update runtime/parachains/src/configuration/migration.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add missing on_runtime_upgrade implementation
* Use new migration API
* cargo fmt
* Fix log message
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
commit b13e07bc47
Author: Chris Sosnin <48099298+slumber@users.noreply.github.com >
Date: Wed Oct 5 11:48:50 2022 +0400
Buffered connection management for collator-protocol (#6022 )
* Extract metrics into a separate module
* Introduce validators buffer
* Integrate buffer into the subsystem
* Only reconnect on new advertisements
* Test
* comma
* doc comment
* Make capacity buffer compile time non-zero
* Add doc comments
* nits
* remove derives
* review
* better naming
* check timeout
* Extract interval stream into lib
* Ensure collator disconnects after timeout
* spellcheck
* rename buf
* Remove double interval
* Add a log on timeout
* Cleanup buffer on timeout
commit e0e836671f
Author: Robert Klotzner <eskimor@users.noreply.github.com >
Date: Tue Oct 4 18:47:52 2022 +0200
Add unknown words (#6105 )
commit 938bc96a2c
Author: Robert Klotzner <eskimor@users.noreply.github.com >
Date: Tue Oct 4 18:02:05 2022 +0200
Batch vote import in dispute-distribution (#5894 )
* Start work on batching in dispute-distribution.
* Guide work.
* More guide changes. Still very much WIP.
* Finish guide changes.
* Clarification
* Adjust argument about slashing.
* WIP: Add constants to receiver.
* Maintain order of disputes.
* dispute-distribuion sender Rate limit.
* Cleanup
* WIP: dispute-distribution receiver.
- [ ] Rate limiting
- [ ] Batching
* WIP: Batching.
* fmt
* Update `PeerQueues` to maintain more invariants.
* WIP: Batching.
* Small cleanup
* Batching logic.
* Some integration work.
* Finish.
Missing: Tests
* Typo.
* Docs.
* Report missing metric.
* Doc pass.
* Tests for waiting_queue.
* Speed up some crypto by 10x.
* Fix redundant import.
* Add some tracing.
* Better sender rate limit
* Some tests.
* Tests
* Add logging to rate limiter
* Update roadmap/implementers-guide/src/node/disputes/dispute-distribution.md
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update roadmap/implementers-guide/src/node/disputes/dispute-distribution.md
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update node/network/dispute-distribution/src/receiver/mod.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Review feedback.
* Also log peer in log messages.
* Fix indentation.
* waker -> timer
* Guide improvement.
* Remove obsolete comment.
* waker -> timer
* Fix spell complaints.
* Fix Cargo.lock
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
commit a64cc4a860
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue Oct 4 11:28:21 2022 +0000
Bump lru from 0.7.8 to 0.8.0 (#6060 )
* Bump lru from 0.7.8 to 0.8.0
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.8 to 0.8.0.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.8...0.8.0 )
---
updated-dependencies:
- dependency-name: lru
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Change `LruCache` paramerter to `NonZeroUsize`
* Change type of `session_cache_lru_size` to `NonZeroUsize`
* Add expects instead of unwrap
Co-authored-by: Bastian Köcher <info@kchr.de >
* Use match to get rid of expects
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
commit 7114a8cfca
Author: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
Date: Tue Oct 4 13:36:42 2022 +0300
Keep sessions in window for the full unfinalized chain (#6054 )
* Impl dynamic window size. Keep sessions for unfinalized chain
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Stretch also in contructor plus tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix approval-voting tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* grunting: dispute coordinator tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
commit ab8f04f827
Author: Serban Iorga <serban@parity.io >
Date: Tue Oct 4 12:25:48 2022 +0300
Companion for BEEFY: Simplify hashing for pallet-beefy-mmr (#6098 )
* beefy-mmr: Simplify hashing
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
* Revert "Squashed commit of the following:"
This reverts commit 5001fa5d1dcd366029d156f81c40b99ca29d8f77.
* Companion for BEEFY: Simplify hashing for pallet-beefy-mmr (#6098 )
* beefy-mmr: Simplify hashing
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
* Keep sessions in window for the full unfinalized chain (#6054 )
* Impl dynamic window size. Keep sessions for unfinalized chain
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Stretch also in contructor plus tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* review feedback
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* fix approval-voting tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* grunting: dispute coordinator tests
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Bump lru from 0.7.8 to 0.8.0 (#6060 )
* Bump lru from 0.7.8 to 0.8.0
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.8 to 0.8.0.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.8...0.8.0 )
---
updated-dependencies:
- dependency-name: lru
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Change `LruCache` paramerter to `NonZeroUsize`
* Change type of `session_cache_lru_size` to `NonZeroUsize`
* Add expects instead of unwrap
Co-authored-by: Bastian Köcher <info@kchr.de >
* Use match to get rid of expects
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
* Batch vote import in dispute-distribution (#5894 )
* Start work on batching in dispute-distribution.
* Guide work.
* More guide changes. Still very much WIP.
* Finish guide changes.
* Clarification
* Adjust argument about slashing.
* WIP: Add constants to receiver.
* Maintain order of disputes.
* dispute-distribuion sender Rate limit.
* Cleanup
* WIP: dispute-distribution receiver.
- [ ] Rate limiting
- [ ] Batching
* WIP: Batching.
* fmt
* Update `PeerQueues` to maintain more invariants.
* WIP: Batching.
* Small cleanup
* Batching logic.
* Some integration work.
* Finish.
Missing: Tests
* Typo.
* Docs.
* Report missing metric.
* Doc pass.
* Tests for waiting_queue.
* Speed up some crypto by 10x.
* Fix redundant import.
* Add some tracing.
* Better sender rate limit
* Some tests.
* Tests
* Add logging to rate limiter
* Update roadmap/implementers-guide/src/node/disputes/dispute-distribution.md
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update roadmap/implementers-guide/src/node/disputes/dispute-distribution.md
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update node/network/dispute-distribution/src/receiver/mod.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Review feedback.
* Also log peer in log messages.
* Fix indentation.
* waker -> timer
* Guide improvement.
* Remove obsolete comment.
* waker -> timer
* Fix spell complaints.
* Fix Cargo.lock
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Add unknown words (#6105 )
* Buffered connection management for collator-protocol (#6022 )
* Extract metrics into a separate module
* Introduce validators buffer
* Integrate buffer into the subsystem
* Only reconnect on new advertisements
* Test
* comma
* doc comment
* Make capacity buffer compile time non-zero
* Add doc comments
* nits
* remove derives
* review
* better naming
* check timeout
* Extract interval stream into lib
* Ensure collator disconnects after timeout
* spellcheck
* rename buf
* Remove double interval
* Add a log on timeout
* Cleanup buffer on timeout
* Properly migrate weights to v2 (#6091 )
* Create migration for config pallet
* Use XcmWeight in XCM pallet extrinsics
* Link to PR in doc comment
* cargo fmt
* Fix tests
* Fix tests
* Remove unused import
* Update runtime/parachains/src/configuration/migration.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add missing on_runtime_upgrade implementation
* Use new migration API
* cargo fmt
* Fix log message
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Pass through `runtime-benchmark` feature (#6110 )
* Companion for #11649 : Bound uses of `Call` (#5729 )
* Fixes
* Clear out old weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Resolve merges
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix weight traits
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* polkadot runtime: Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* rococo runtime: update pallet configs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add preimage migration
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add all migrations
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Democracy is not on Westend
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* [Migration] Refund stored multisig calls (#6075 )
* Add Preimages to referenda config
Needed since Gov V2 just merged.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add multisig migration to Westend+Rococo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix Executive syntax
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Bump Substrate
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: parity-processbot <>
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
* update kvdb & co (#6111 )
* toml changes
* REVERTME: patch
* adapt parachains db interface
* fix Cargo.toml patch after master rebase
* fix av-store
* fix chain-selection
* fix parachains-db?
* Revert "fix Cargo.toml patch after master rebase"
This reverts commit 3afcbf033c86027b3f2b909d83ec703591bdd287.
* Revert "REVERTME: patch"
This reverts commit 464b717cf4142d3d09c3d77b83700b632d8c5f54.
* Use `Ok` imported from prelude
Co-authored-by: Bastian Köcher <info@kchr.de >
* update lockfile for {"substrate"}
* Revert "update lockfile for {"substrate"}"
This reverts commit fdc623de226f7645741b86c4b1a7d030fed2172d.
* cargo update -p sp-io
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: parity-processbot <>
* Skip `unexpected metric type`
* Dump more info for `unexpected metric type`
* Skip `unexpected metric type`
* service: use MmrRootProvider as custom BEEFY payload provider (companion for 12428) (#6112 )
* service: use MmrRootProvider as custom BEEFY payload provider
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
* Maximum value for `MultiplierUpdate` (#6021 )
* update multiplier
* fix
* update lockfile for {"substrate"}
* fmt
* fix typo
Co-authored-by: parity-processbot <>
* Companion for upgrading pin-project (#6118 )
* Companion for upgrading pin-project
This will remove some warnings with the latest rustc nightly/stable.
https://github.com/paritytech/substrate/pull/12426
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
* Companion for 12109 (#5929 )
* Update following `pallet-vesting` configurable `WithdrawReasons`
* Update lib.rs
* Update lib.rs
* Update lib.rs
* update lockfile for {"substrate"}
* fix warning
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
* Add event to asset claim (#6029 )
* Fix flaky test (#6131 )
* Split test + decrease test timeout
* fmt
* spellcheck
* ci/guide: install mdbook-graphviz (#6119 )
* ci/guide: install mdbook-graphviz
* install graphviz in build-implementers-guide
* Update scripts/ci/gitlab/pipeline/build.yml
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
* Revert "Squashed commit of the following:"
This reverts commit 5001fa5d1dcd366029d156f81c40b99ca29d8f77.
* * Remove unused imports
* * cargo +nightly fmt --all
* Make tweaks based on PR comments
* unit test related to gum formatting
* cargo +nightly fmt --all
* Resolve merge conflicts
* cargo +nightly fmt --all
* Fix tests so they use cli rather than cmd
* CI unused import check fix
* Move info! log to startup
* make info log more comprehensible
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Serban Iorga <serban@parity.io >
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com >
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
Co-authored-by: Andronik <write@reusable.software >
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: Sergej Sakac <73715684+Szegoo@users.noreply.github.com >
Co-authored-by: Leszek Wiesner <leszek@jsgenesis.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: girazoki <gorka.irazoki@gmail.com >
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2022-10-13 09:48:48 +00:00
asynchronous rob
a7780e0797
refactor grid topology to expose more info to subsystems ( #6140 )
...
* refactor grid topology to expose more info to subsystems
* fix grid_topology test
* fix overseer test
* Update node/network/protocol/src/grid_topology.rs
Co-authored-by: Vsevolod Stakhov <vsevolod.stakhov@parity.io >
* Update node/network/protocol/src/grid_topology.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/protocol/src/grid_topology.rs
Co-authored-by: Andronik <write@reusable.software >
* fix bug in populating topology
* fmt
Co-authored-by: Vsevolod Stakhov <vsevolod.stakhov@parity.io >
Co-authored-by: Andronik <write@reusable.software >
2022-10-12 23:30:12 +00:00
Alexandru Vasile
bc9da4d5d0
Companion for #12328 ( #6058 )
...
* staking-miner: Adjust `TransactionStatus` update
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* update lockfile for {"substrate"}
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: parity-processbot <>
2022-10-11 09:28:00 +00:00
Aaro Altonen
4819d12711
Companion for paritytech/substrate#12441 ( #6117 )
...
* Companion for paritytech/substrate#12441
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-10 11:13:59 +00:00
Leszek Wiesner
71197818a4
Companion for 12109 ( #5929 )
...
* Update following `pallet-vesting` configurable `WithdrawReasons`
* Update lib.rs
* Update lib.rs
* Update lib.rs
* update lockfile for {"substrate"}
* fix warning
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-10-09 22:23:54 +00:00
Bastian Köcher
607350449c
Companion for upgrading pin-project ( #6118 )
...
* Companion for upgrading pin-project
This will remove some warnings with the latest rustc nightly/stable.
https://github.com/paritytech/substrate/pull/12426
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-07 13:40:40 +02:00
Sergej Sakac
c8151aed3c
Maximum value for MultiplierUpdate ( #6021 )
...
* update multiplier
* fix
* update lockfile for {"substrate"}
* fmt
* fix typo
Co-authored-by: parity-processbot <>
2022-10-06 19:20:58 +02:00
Adrian Catangiu
8d1c16dc0d
service: use MmrRootProvider as custom BEEFY payload provider (companion for 12428) ( #6112 )
...
* service: use MmrRootProvider as custom BEEFY payload provider
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-06 09:58:39 +00:00
Andronik
af6a5cd96a
update kvdb & co ( #6111 )
...
* toml changes
* REVERTME: patch
* adapt parachains db interface
* fix Cargo.toml patch after master rebase
* fix av-store
* fix chain-selection
* fix parachains-db?
* Revert "fix Cargo.toml patch after master rebase"
This reverts commit 3afcbf033c86027b3f2b909d83ec703591bdd287.
* Revert "REVERTME: patch"
This reverts commit 464b717cf4142d3d09c3d77b83700b632d8c5f54.
* Use `Ok` imported from prelude
Co-authored-by: Bastian Köcher <info@kchr.de >
* update lockfile for {"substrate"}
* Revert "update lockfile for {"substrate"}"
This reverts commit fdc623de226f7645741b86c4b1a7d030fed2172d.
* cargo update -p sp-io
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: parity-processbot <>
2022-10-05 22:36:51 +00:00
Gavin Wood
9a3cf4cd1f
Companion for #11649 : Bound uses of Call ( #5729 )
...
* Fixes
* Clear out old weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Resolve merges
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix weight traits
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* polkadot runtime: Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* rococo runtime: update pallet configs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add preimage migration
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add all migrations
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Democracy is not on Westend
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* [Migration] Refund stored multisig calls (#6075 )
* Add Preimages to referenda config
Needed since Gov V2 just merged.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add multisig migration to Westend+Rococo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix Executive syntax
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Bump Substrate
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: parity-processbot <>
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
2022-10-05 21:17:59 +00:00
Chris Sosnin
b13e07bc47
Buffered connection management for collator-protocol ( #6022 )
...
* Extract metrics into a separate module
* Introduce validators buffer
* Integrate buffer into the subsystem
* Only reconnect on new advertisements
* Test
* comma
* doc comment
* Make capacity buffer compile time non-zero
* Add doc comments
* nits
* remove derives
* review
* better naming
* check timeout
* Extract interval stream into lib
* Ensure collator disconnects after timeout
* spellcheck
* rename buf
* Remove double interval
* Add a log on timeout
* Cleanup buffer on timeout
2022-10-05 09:48:50 +02:00
Robert Klotzner
938bc96a2c
Batch vote import in dispute-distribution ( #5894 )
...
* Start work on batching in dispute-distribution.
* Guide work.
* More guide changes. Still very much WIP.
* Finish guide changes.
* Clarification
* Adjust argument about slashing.
* WIP: Add constants to receiver.
* Maintain order of disputes.
* dispute-distribuion sender Rate limit.
* Cleanup
* WIP: dispute-distribution receiver.
- [ ] Rate limiting
- [ ] Batching
* WIP: Batching.
* fmt
* Update `PeerQueues` to maintain more invariants.
* WIP: Batching.
* Small cleanup
* Batching logic.
* Some integration work.
* Finish.
Missing: Tests
* Typo.
* Docs.
* Report missing metric.
* Doc pass.
* Tests for waiting_queue.
* Speed up some crypto by 10x.
* Fix redundant import.
* Add some tracing.
* Better sender rate limit
* Some tests.
* Tests
* Add logging to rate limiter
* Update roadmap/implementers-guide/src/node/disputes/dispute-distribution.md
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update roadmap/implementers-guide/src/node/disputes/dispute-distribution.md
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update node/network/dispute-distribution/src/receiver/mod.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Review feedback.
* Also log peer in log messages.
* Fix indentation.
* waker -> timer
* Guide improvement.
* Remove obsolete comment.
* waker -> timer
* Fix spell complaints.
* Fix Cargo.lock
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
2022-10-04 18:02:05 +02:00
dependabot[bot]
a64cc4a860
Bump lru from 0.7.8 to 0.8.0 ( #6060 )
...
* Bump lru from 0.7.8 to 0.8.0
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.7.8 to 0.8.0.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.7.8...0.8.0 )
---
updated-dependencies:
- dependency-name: lru
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Change `LruCache` paramerter to `NonZeroUsize`
* Change type of `session_cache_lru_size` to `NonZeroUsize`
* Add expects instead of unwrap
Co-authored-by: Bastian Köcher <info@kchr.de >
* Use match to get rid of expects
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-10-04 11:28:21 +00:00
Serban Iorga
ab8f04f827
Companion for BEEFY: Simplify hashing for pallet-beefy-mmr ( #6098 )
...
* beefy-mmr: Simplify hashing
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-04 09:25:48 +00:00
Gavin Wood
5d2f81035f
Governance v2 (Kusama only) ( #5205 )
...
* First bits
* Create new origins
* Repot governance configs
* Tests for treasury spends
* Integrate treasury spend threshold origins
* Bump deps
* Add whitelist, configure treasury spend origins
* Add governance curves
* Enable curve's ceil to be configured
* Make compile
* Rest of new governance params
* Build fixes
* Fixes
* Fix warning
* Use new EnsureOrigin::try_successful_origin
* Some repotting
* Add files
* Ready for initial review
* Fixes
* Formatting
* Bump
* rename
* Derive MEL for Origin enum
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add benchmarks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
* Update Cargo.lock
* Update runtime/kusama/src/governance/origins.rs
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
* allow root to demote and promote, fixing benchmarks
* fix whitelist origin benchmarks
* typo
* cargo update -p sp-io
* add second referenda instance to benchmarks
* allow root to act as a 9th dan in track
* feature flag it
* cargo update -p sp-io
* fix merge
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
* allow root to create auction
* Update mod.rs
* more origin fixes
* root isnt needed actually
* cargo update -p sp-io
* allow root to cancel slash
* initial stuff
* make copy data from kusama
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
* Update Cargo.lock
* commit new weight files
* more files
* use weight files
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
* Update Cargo.lock
* Update to latest master
* Formatting
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_ranked_collective
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_conviction_voting
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_whitelist
* Rename Origin -> RuntimeOrigin
This was done in Substrate and is now needed here as well.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Tech Committee can promote to VI Dan
* Update runtime/kusama/src/governance/mod.rs
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
* Formatting
* Update runtime/kusama/src/governance/fellowship.rs
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
* Fixes
* Avoid updating extraneous deps
* Fix broken stuff
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_referenda
* Update runtime/kusama/src/governance/fellowship.rs
* Reorder EitherOf origins
Zero logic change to make the benchmarking work.
It uses the first successful origin which can only promote to rank 6.
By swapping the order we use Root which can always promote.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert param change and update doc
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 <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
2022-10-03 18:33:46 +02:00
Adrian Catangiu
32ccf86a43
Companion for substrate#12124: add BEEFY request response protocol ( #6035 )
...
* service: add BEEFY request response proto
* update lockfile for {"substrate"}
* update lockfile for substrate
2022-10-03 17:32:27 +03:00
Andrei Sandu
d7eaaeee65
Remove orchestra and metered channel ( #6086 )
...
* Use orchestra and metered channel from repo
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update node/subsystem-util/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* Update node/metrics/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* Update node/overseer/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* Update node/overseer/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* update cargo lock
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Co-authored-by: Andronik <write@reusable.software >
2022-10-03 12:26:23 +02:00
Serban Iorga
5458406927
Companion for pallet-mmr: generate historical proofs ( #6061 )
...
* BEEFY: generate historical proofs
Signed-off-by: Serban Iorga <serban@parity.io >
* cargo update -p sp-io
* Properly set max proof size for runtimes
* Properly set max proof size for mocks
* cargo fmt
* Set appropriate UMP service total proof size weight
* Disable zombienet-tests-parachains-disputes CI
* Add comment explaining weight math
* Use MAX_POV_SIZE for max proof size
* Cast to u64
* Remove comment
Signed-off-by: Serban Iorga <serban@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-10-02 10:42:24 +01:00
Kian Paimani
9196f32bc0
add fast-unstsake pallet to all runtimes ( #6050 )
...
* add fast-unstsake pallet to all runtimes
* ".git/.scripts/fmt.sh" 1
* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_fast_unstake
* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_fast_unstake
* fix up all the weight stuff
* update substrate
* update mistake in kusama
* add stub file
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Nitwit <47109040+BustaNit@users.noreply.github.com >
* Update runtime/westend/src/lib.rs
Co-authored-by: Nitwit <47109040+BustaNit@users.noreply.github.com >
* cargo update -p sp-io
* add signed extension as well
* Revert "add signed extension as well"
This reverts commit deb936fe5a9a13a62d02757045b1dfa40dccb190.
* cargo update -p sp-io
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_fast_unstake
* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_fast_unstake
* update sub
* integrate latest substrate changes
* ".git/.scripts/fmt.sh" 1
* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_fast_unstake
Co-authored-by: command-bot <>
Co-authored-by: Nitwit <47109040+BustaNit@users.noreply.github.com >
2022-09-28 09:39:38 +00:00
dependabot[bot]
1f4ec021f0
Bump bytes from 1.1.0 to 1.2.1 ( #6017 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.1.0...v1.2.1 )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-27 10:55:17 +02:00
Aaro Altonen
2a9800f20a
Companion for paritytech/substrate#12264 ( #5973 )
...
* Companion for paritytech/substrate#12198
* Use `ProtocolName` from sc-network-common
* Update node service
* Revert Cargo.lock changes
* Fix node service test
* cargo-fmt
* disable cancel-pipeline-test-linux-stable to check companion
* update lockfile for {"substrate"}
Co-authored-by: alvicsam <alvicsam@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-26 13:15:41 +00:00
ZhiYong
4262e80377
Companion for substrate#11983. ( #5992 )
...
* Companion for substrate#11983.
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-26 08:26:44 +00:00
Davide Galassi
fa2a7d1efa
Companion - Independence of Slot-based algorithms from Timestamp ( #5997 )
...
* Companion for substrate #12224
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-23 18:32:04 +00:00
Shawn Tabrizi
2b07b39911
Companion for #12283 (Anon -> Pure Proxy) ( #6038 )
...
* anon -> pure
* fn pure -> fn create_pure
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-22 15:13:43 +00:00
Ankan
8d8616d656
[Companion] Get rid of HistoryDepth storage ( #5996 )
...
* remove history depth from storage and add it as config for pallet staking
* add migration to v11 for staking pallet
* revert local substrate dependency patch
* remove history depth from storage and add it as config for pallet staking
* add migration to v11 for staking pallet
* revert local substrate dependency patch
* update substrate dependencies
* update cargo lock
* update to latest substrate
* revert all changes to Cargo.lock
* cargo update -p sp-io
* mark migration job as failable
Co-authored-by: kianenigma <kian@parity.io >
2022-09-21 15:24:14 +00:00
Sergej Sakac
937c4e76ae
Rename Origin ( #6020 )
...
* Rename Origin
* fmt
* fixes
* more fixes
* fix
* more fixing
* small fixes
* last touches
* update lockfile for {"substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-20 22:53:12 +00:00
Tsvetomir Dimitrov
6ae9720c36
Improved dispute votes import in provisioner ( #5567 )
...
* Add `DisputeState` to `DisputeCoordinatorMessage::RecentDisputes`
The new signature of the message is:
```
RecentDisputes(oneshot::Sender<Vec<(SessionIndex, CandidateHash, DisputeStatus)>>),
```
As part of the change also add `DispiteStatus` to
`polkadot_node_primitives`.
* Move dummy_signature() in primitives/test-helpers
* Enable staging runtime api on Rococo
* Implementation
* Move disputes to separate module
* Vote prioritisation
* Duplicates handling
* Double vote handling
* Unit tests
* Logs and metrics
* Code review feedback
* Fix ACTIVE/INACTIVE separation and update partition names
* Add `fn dispute_is_inactive` to node primitives and refactor `fn get_active_with_status()` logic
* Keep the 'old' logic if the staging api is not enabled
* Fix some comments in tests
* Add warning message if there are any inactive_unknown_onchain disputes
* Add file headers and remove `use super::*;` usage outside tests
* Adding doc comments
* Fix test methods names
* Fix staging api usage
* Fix `get_disputes` runtime function implementation
* Fix compilation error
* Fix arithmetic operations in tests
* Use smaller test data
* Rename `RuntimeApiRequest::StagingDisputes` to `RuntimeApiRequest::Disputes`
* Remove `staging-client` feature flag
* fmt
* Remove `vstaging` feature flag
* Some comments regarding the staging api
* Rename dispute selection modules in provisioner
with_staging_api -> prioritized_selection
without_staging_api -> random_selection
* Comments for staging api
* Comments
* Additional logging
* Code review feedback
process_selected_disputes -> into_multi_dispute_statement_set
typo
In trait VoteType: vote_value -> is_valid
* Code review feedback
* Fix metrics
* get_disputes -> disputes
* Get time only once during partitioning
* Fix partitioning
* Comments
* Reduce the number of hardcoded api versions
* Code review feedback
* Unused import
* Comments
* More precise log messages
* Code review feedback
* Code review feedback
* Code review feedback - remove `trait VoteType`
* Code review feedback
* Trace log for DisputeCoordinatorMessage::QueryCandidateVotes counter in vote_selection
2022-09-19 23:06:09 +03:00