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
Dan Shields
4a0ea59c85
Update README.md ( #1683 )
...
* Update README.md
* Update README.md
2022-10-03 09:41:15 +00:00
dependabot[bot]
515ab1bb47
Bump proc-macro2 from 1.0.44 to 1.0.46 ( #1708 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.44...1.0.46 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
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-10-02 23:47:28 +02:00
Muharem Ismailov
e5fd9d6a29
Westend Collectives chain spec ( #1712 )
2022-10-02 15:45:06 +00:00
Alexander Theißen
bb9d2fa75a
Remove contracts RPCs ( #12358 )
...
* Remove contracts RPCs
* Remove serde as RPC serialization is no longer needed
* Rename folder to match crate name
* Compile fix
* Remove Byte wrapper
2022-10-02 15:16:45 +00: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
omahs
f45a8de8ae
Fix: minor typo ( #6088 )
...
Fix: minor typo
2022-10-01 09:16:32 +03:00
Serban Iorga
54713ca17a
pallet-mmr: generate historical proofs ( #12324 )
...
* BEEFY: generate historical proofs
Signed-off-by: Serban Iorga <serban@parity.io >
* Update frame/merkle-mountain-range/rpc/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update primitives/merkle-mountain-range/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update frame/merkle-mountain-range/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* cargo fmt
* fix off-by-one in leaves powerset generation
* test all possible mmr sizes for historical proofs
* remove now redundant simple_historical_proof
* cargo fmt
Signed-off-by: Serban Iorga <serban@parity.io >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: Robert Hambrock <roberthambrock@gmail.com >
2022-09-30 12:46:48 +02:00
Michal Kucharczyk
5e00d361cc
unsafe_pruning flag removed ( #12385 )
2022-09-30 12:06:46 +02:00
Andrei Sandu
372e6a95f3
add para_id to fetch_pov logging ( #6084 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-09-30 11:56:45 +03:00
dependabot[bot]
e3a652e7f4
Bump syn from 1.0.100 to 1.0.101 ( #1696 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.100...1.0.101 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
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-30 09:37:42 +02:00
Keith Yeung
af579524ac
Carry over where clauses defined in Config to Call and Hook ( #12388 )
2022-09-30 03:14:13 +00:00
Muharem Ismailov
de7aba91d7
Polkadot Collectives chain spec ( #1603 )
...
* initial chain spec template
* boot nodes, para ids, name
* para id 1001
* update boot nodes
* add collators accounts and session keys
* add p2p into wss boot nodes pathes
* replace aura raw private keys by ss58
* remove collectives spec
* rename collectives genesis spec into collectives
* Revert "rename collectives genesis spec into collectives"
This reverts commit 60df522a5c3666a9984d87476c2d93f28a2910fb.
* insert wasm into spec
2022-09-29 15:49:36 +00:00
Keith Yeung
a4fb1d7096
Properly set the max proof size weight on defaults and tests ( #12383 )
...
* Properly set the max proof size weight on defaults and tests
* cargo fmt
* Set proper max proof size for contracts pallet tests
* Properly set max proof size for node
* Properly set max proof size for frame system mock
* Update test expectations
* Update test expectations
* Properly set max proof size for balances mock
* Update test expectations
* Update test expectations
* Properly set max proof size for democracy mock
* Properly set max proof size for scheduler mock
* Properly set max proof size for fast unstake mock
* Properly set max proof size for tx payment mock
* Properly set max proof size for elections phragmen mock
* Properly set max proof size for node template
2022-09-29 15:48:10 +00:00
Wilfried Kopp
9a9a52854a
Bump spec_version to 9300
2022-09-29 16:38:38 +02:00
Wilfried Kopp
3cadad5553
Bump crate versions
2022-09-29 16:38:38 +02:00
Robert Klotzner
260f70e39e
Demote warning ( #6080 )
...
This can happen under heavy load - no value in warning here.
Scenario this happens:
- New slot
- We get asked about what fork to build on
- We start building (create inherent gets called)
- We learn about a better fork (but Babe does not care as it already has a fork)
- 6 seconds passed - New slot
- Babe asks about what for to build on - we answer with the best block we learned about 6 seconds ago (slightly after we got asked the last time)
- We start building (on that old block)
- Milliseconds later we learn about a new block (the one from the slot we are actually in now)
- We kick the old leaf -> create inherent fails
Full discussion: https://github.com/paritytech/substrate/issues/12375
2022-09-29 15:19:19 +02:00
Robert Klotzner
548b4c6c71
Validate chunks from disk in availability-recovery ( #6078 )
...
* Don't use corrupted chunks from disk.
Otherwise we would be going to dispute the candidate and get slashed.
* Add tests
2022-09-29 14:16:12 +02:00
Branislav Kontur
fd5571647c
Removed unused deps with cargo machete ( #1680 )
...
* Removed unused deps with `cargo machete`
* Removed unused deps with `cargo machete` for parachain-template
2022-09-29 13:44:08 +02:00
Nikos Kontakis
39e55ffd0a
Rename zombienet extension ( #6073 )
...
* Rename extension files and respective entries from '.feature' to '.zndsl'
* Rename zombienet extension for 0001-dispute-valid-block test
2022-09-29 07:22:15 +00:00
Serban Iorga
7bea0c0175
BEEFY: impl TypeInfo for SignedCommitment ( #12382 )
2022-09-29 09:28:22 +03:00
Ankan
6137c8707b
bounding staking: BoundedElectionProvider trait ( #12362 )
...
* add a bounded election provider trait
* extract common trait election provider base
* fmt
* only bound the outer support vector
* fix tests
* docs
* fix rust docs
* fmt
* fix rustdocs
* docs
* improve docs
* small doc change
2022-09-28 20:52:16 +00:00
Sergej Sakac
ea43466879
New Pallet: Root offences ( #11943 )
...
* root-offences pallet
* fix errors
* cleaned up a bit
* remove unwrap()
* new pallet is getting compiled
* remove unnecessary type annotations
* remove more unnecessary type annotations
* addidtional cleaning
* commit
* cleaned up
* fix in logic
* add event
* removed Clone trait from AccountId
* test module
* remove unused imports
* fmt
* fix
* separate into functions, still messy
* test
* first test
* fmt
* cleaned up a bit
* separate into mock.rs and tests.rs
* basic docs for now
* pallet_staking GenesisiConfig
* fix
* added start_session
* passing tests
* impl GenesisConfig for pallet_session
* updated event
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* remove <T: Config
* specifying trait bounds inside Config
* commit
* active era increases correctly :)
* ExtBuilder
* slashing works
* new test
* additional test
* commit
* order
* fix?
* fix in logic
* remove unnecessary
* wrap comment at 100
* fmt
* merge fixes
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/root-offences/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* docs
* Update frame/root-offences/README.md
Co-authored-by: Andronik <write@reusable.software >
* Update frame/root-offences/Cargo.toml
Co-authored-by: Andronik <write@reusable.software >
* license header
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Andronik <write@reusable.software >
2022-09-28 20:04:14 +00:00
Daniel Shiposha
bcf38c89a2
fix: typo in AllPalletsWithSystem deprecated msg ( #12379 )
2022-09-28 20:00:33 +00:00
Koute
8d81065a54
Support running the pallet benchmarks analysis without running the benchmarks ( #12361 )
...
* Support running the pallet benchmarks analysis without running the benchmarks
* Rename `override-results` to `json-input` and update the help comment
* ".git/.scripts/fmt.sh" 1
Co-authored-by: command-bot <>
2022-09-28 19:38:12 +00:00
Squirrel
c03fd43b11
[benchmarks] pr with weights ( #1664 ) ( #1694 )
...
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: Paritytech CI <52199148+paritytech-ci@users.noreply.github.com >
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
2022-09-28 16:39:06 +00:00
Squirrel
1b47dada7f
Bump crate versions ( #1690 )
...
Co-authored-by: EgorPopelyaev <egor@parity.io >
2022-09-28 16:38:36 +00:00
Squirrel
c0f5a094d5
backport: update integration tests ( #1695 )
...
* Update integration test v0.9.29 (#1681 )
* update it
* remove comment
* update it (#1689 )
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-09-28 16:37:57 +00:00
Oliver Tale-Yazdi
8227950ed5
Fix staking migration ( #12373 )
...
Causing issues on Kusama...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-09-28 12:43:04 +00:00
Bastian Köcher
70f372ae38
pallet-utility: Only disallow the None origin ( #12351 )
2022-09-28 14:37:03 +02:00
dependabot[bot]
693baf6f0b
Bump proc-macro2 from 1.0.43 to 1.0.44 ( #1697 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
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-28 13:31:35 +02:00
Keith Yeung
0327258566
Add storage size component to weights ( #12277 )
...
* Add storage size component to weights
* Rename storage_size to proof_size
* Update primitives/weights/src/weight_v2.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixes
* cargo fmt
* Implement custom Decode and CompactAs
* Add missing import
* Fixes
* Remove CompactAs implementation
* Properly migrate from 1D weight
* Remove #[pallet::compact] from Weight parameters
* More #[pallet::compact] removals
* Add unit tests
* Set appropriate default block proof size
* cargo fmt
* Remove nonsensical weight constant
* Test only for the reference time weight in frame_system::limits
* Only check for reference time weight on idle
* Use destructuring syntax
* Update test expectations
* Fixes
* Fixes
* Fixes
* Correctly migrate from 1D weights
* cargo fmt
* Migrate using extra extrinsics instead of custom Decode
* Fixes
* Silence dispatch call warnings that were previously allowed
* Fix gas_left test
* Use OldWeight instead of u64
* Fixes
* Only check for reference time weight in election provider
* Fix test expectations
* Fix test expectations
* Use only reference time weight in grandpa test
* Use only reference time weight in examples test
* Use only reference time weight in examples test
* Fix test expectations
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-28 10:21:53 +00: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
Squirrel
c1c695906c
set xcm weights template ( #1643 ) ( #1691 )
...
* xcm benchmarks use a custom template
2022-09-28 09:02:16 +00:00
Liu-Cheng Xu
9d41de645f
Add missing CountedStorageMap in pallet::storage error info ( #12356 )
2022-09-27 20:14:01 +00:00
Roman Useinov
1f687256fb
[Feature] Add deposit to fast-unstake ( #12366 )
...
* [Feature] Add deposit to fast-unstake
* disable on ErasToCheckPerBlock == 0
* removed signed ext
* remove obsolete import
* remove some obsolete stuff
* fix some comments
* fixed all the comments
* remove obsolete imports
* fix some tests
* CallNotAllowed tests
* Update frame/fast-unstake/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix tests
* fix deregister + tests
* more fixes
* make sure we go above existential deposit
* fixed the last test
* some nit fixes
* fix node
* fix bench
* last bench fix
* Update frame/fast-unstake/src/lib.rs
* ".git/.scripts/fmt.sh" 1
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
2022-09-27 17:31:12 +00:00
Squirrel
2f0760bf99
add current time in milis to the branch name ( #1658 ) ( #1693 )
...
Co-authored-by: Egor_P <egor@parity.io >
2022-09-27 15:53:17 +00:00
Ankan
e6b1aae97f
[fix] Bound staking ledger correctly with MaxUnlockingChunks from configuration ( #12343 )
...
* used maxunlockingchunks from config
* mhl MaxUnlockingChunks
* no migration needed
* changes as per requested
* fmt
* fix tests
* fix benchmark
* warning in the doc for abrupt changes in the config
* less unnecessary details in the test
* fix tests
Co-authored-by: mrisholukamba <abdulrazzaqlukamba@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-27 15:44:16 +00:00
dependabot[bot]
5f827884aa
Bump serde from 1.0.144 to 1.0.145 ( #1677 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.144 to 1.0.145.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.144...v1.0.145 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
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 14:41:43 +00:00
Mara Robin B
efd2bfb085
Remove executed runtime migrations (nompools MigrateToV3, InitiateNominationPools) ( #6056 )
2022-09-27 11:50:40 +00:00
Sergej Sakac
249316d87f
Pallet staking events to named enum ( #12342 )
...
* Pallet staking events to named enum
* fmt
* update np staking tests
* update remaining events
* update benchmarks
* Update frame/nomination-pools/test-staking/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/staking/src/pallet/mod.rs
* Update frame/staking/src/pallet/mod.rs
* Update frame/staking/src/lib.rs
* Update frame/staking/src/pallet/impls.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com >
2022-09-27 11:44:20 +00:00
Davide Galassi
499ca74afe
Relax Slots-based engines from Epochs ( #12360 )
...
Remove Epochs reference from slots subsystem
2022-09-27 13:16:30 +02:00
Bastian Köcher
96c1f8bcf0
Fix compilation on 1.66 nightly ( #12363 )
2022-09-27 11:37:45 +02: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
Andronik
4df643271d
make spellcheck green again ( #6059 )
...
* make spellcheck green again
* remove the comment
* Fix a comment in `provisioner`
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
2022-09-27 08:48:49 +00:00
Kian Paimani
4dd6fc86e1
export more types from fast-untsake 🤦♂️ ( #12353 )
...
* export more types from fast-untsake 🤦♂️
* make non-test
* fmt
2022-09-27 07:08:14 +00:00
Niklas Adolfsson
d9ea02c09a
staking miner: CLI make request and connection timeout configurable ( #6004 )
...
* staking miner: CLI request and connection timeout
Make it possible to configure the `connection timeout` and `request timeout` via CLI flags.
* cargo fmt
2022-09-26 20:56:12 +00:00
Bernhard Schuster
c3e45a04fc
[orchestra] fix: require the initialization with F: FnOnce to be Send ( #6051 )
...
* add regression test for missing Send requirement
* fix: require the initialization with `F: FnOnce` to be `Send` as well
If creating intermediate variables of the builder type within
a future, rustc will complain about the future not being send,
while the thing itself isn't even using the closure based field
initialization. Adding an additional bound, resolves this and
pushes the error message "closer" to the user, and out of the
generated code.
* import fixins
2022-09-26 22:11:36 +02:00
Chris Sosnin
fd1856e1e9
paras: unblock offboarding when pvf-check concludes ( #6032 )
...
* Unblock offboarding for upgrading paras
* ".git/.scripts/fmt.sh" 1
Co-authored-by: command-bot <>
2022-09-26 19:02:05 +02:00
Aaro Altonen
0893bde675
Companion for paritytech/substrate#12264 ( #1661 )
...
* Companion for paritytech/substrate#12264
* Fix more tests
* disable sc-network-transactions to check companion
* Fix node config in tests
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-09-26 13:40:25 +00:00