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
Sergej Sakac
8f048cf522
Improved election pallet testing ( #12327 )
...
* Improved election pallet testing
* fmt
* remove comment
* more checks
* fixes in logic
* roll_to_signed
* switch to roll_to_signed
* Update frame/election-provider-multi-phase/src/mock.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* remove useless checks
* remove warning
* add checks to signed.rs
* add some checks to unsigned.rs
* fmt
* use roll_to_signed and roll_to_unsigned
* remove nonsense
* remove even more nonsense
* fix
* fix
* remove useless checks
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2022-10-04 22:16:07 +00:00
dependabot[bot]
4c5774e6fc
Bump thiserror from 1.0.35 to 1.0.37 ( #1704 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.35 to 1.0.37.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.35...1.0.37 )
---
updated-dependencies:
- dependency-name: thiserror
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-04 22:49:55 +02:00
Chevdor
0e388ac5b7
Bump prost to 0.11+ ( #12419 )
2022-10-04 21:30:45 +02:00
Robert Klotzner
e0e836671f
Add unknown words ( #6105 )
2022-10-04 18:47:52 +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
Muharem Ismailov
b668e196b4
Use saturating add for alliance::disband witness data ( #12418 )
2022-10-04 13:15:57 +00:00
Roman Useinov
e60e7caebd
[Fix] Rename VoterBagsList -> VoterList to match pdot ( #12416 )
2022-10-04 12:26:14 +00:00
Adrian Catangiu
b572116aea
client/beefy: small code improvements ( #12414 )
...
* client/beefy: remove bounds on type definitions
* client/beefy: remove gossip protocol legacy name
* client/beefy: simplify justification request response engine
Signed-off-by: Adrian Catangiu <adrian@parity.io >
2022-10-04 14:34:54 +03: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
Andrei Sandu
7114a8cfca
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 >
2022-10-04 13:36:42 +03: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
Serban Iorga
a35da130ce
BEEFY: Simplify hashing for pallet-beefy-mmr ( #12393 )
...
* beefy-mmr: reuse sp_runtime::traits::Keccak256
* beefy-mmr: use sp_runtime::traits:Hash for generating merkle proofs
* beefy-mmr: use sp_runtime::traits:Hash for validating merkle proofs
* beefy-mmr: remove primitives::Hasher and primitives::Hash
* fixes
* beefy-mmr: reduce the number of generic parameters for merkle_root()
* fix
* compute upper Vec capacity more accurately
2022-10-04 08:47:13 +00:00
Robert Klotzner
92dc27584a
Use active_leaves instead of known_leaves ( #6068 )
...
* Use active_leaves for synchronization.
Otherwise on reverts the syncrhonization of create inherent would not
work.
* Add some trace logs.
2022-10-04 10:11:02 +02:00
Koute
ecc4d5f258
Add @koute to docs/CODEOWNERS and update stale paths ( #12408 )
2022-10-04 10:01:50 +02:00
dependabot[bot]
9ff2b46463
Bump smallvec from 1.9.0 to 1.10.0 ( #1723 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: smallvec
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-10-04 09:39:22 +02:00
Adrian Catangiu
1e2c0f2d99
docs/CODEOWNERS: add @acatangiu as MMR owner ( #12406 )
2022-10-04 09:58:05 +03: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
Keith Yeung
f64fccdd6c
Remove unnecessary Clone trait bounds on CountedStorageMap ( #12402 )
...
* Remove unnecessary Clone trait bounds on CountedStorageMap
* cargo fmt
2022-10-03 15:50:00 +00: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
Oliver Tale-Yazdi
8596339b49
Fix Weight::is_zero ( #12396 )
...
* Fix Weight::is_zero
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-10-03 13:17:59 +00:00
Adrian Catangiu
2a27545afe
Beefy on-demand justifications as a custom RequestResponse protocol ( #12124 )
...
* client/beefy: create communication module and move gossip there
* client/beefy: move beefy_protocol_name module to communication
* client/beefy: move notification module under communication
* client/beefy: add incoming request_response protocol handler
* client/beefy: keep track of connected peers and their progress
* client/beefy: add logic for generating Justif requests
* client/beefy: cancel outdated on-demand justification requests
* try Andre's suggestion for JustificationEngine
* justif engine add justifs validation
* client/beefy: impl OnDemandJustificationsEngine async next()
* move beefy proto name test
* client/beefy: initialize OnDemandJustificationsEngine
* client/tests: allow for custom req-resp protocols
* client/beefy: on-demand-justif: implement simple peer selection strategy
* client/beefy: fix voter initialization
Fix corner case where voter gets a single burst of finality
notifications just when it starts.
The notification stream was consumed by "wait_for_pallet" logic,
then main loop would subscribe to finality notifications, but by that
time some notifications might've been lost.
Fix this by subscribing the main loop to notifications before waiting
for pallet to become available. Share the same stream with the main loop
so that notifications for blocks before pallet available are ignored,
while _all_ notifications after pallet available are processed.
Add regression test for this.
Signed-off-by: acatangiu <adrian@parity.io >
* client/beefy: make sure justif requests are always out for mandatory blocks
* client/beefy: add test for on-demand justifications sync
* client/beefy: tweak main loop event processing order
* client/beefy: run on-demand-justif-handler under same async task as voter
* client/beefy: add test for known-peers
* client/beefy: reorg request-response module
* client/beefy: add issue references for future work todos
* client/beefy: consolidate on-demand-justifications engine state machine
Signed-off-by: acatangiu <adrian@parity.io >
* client/beefy: fix for polkadot companion
* client/beefy: implement review suggestions
* cargo fmt and clippy
* fix merge damage
* fix rust-doc
* fix merge damage
* fix merge damage
* client/beefy: add test for justif proto name
Signed-off-by: acatangiu <adrian@parity.io >
2022-10-03 13:00:57 +00:00
Kai
4f632887eb
only register MaxCandidates-1 candidates initially ( #1714 )
2022-10-03 13:00:53 +00:00
Alexander Theißen
f00417b906
Companion: Remove contracts RPC ( #1685 )
...
* Remove contracts RPC
* update lockfile for {"polkadot", "substrate"}
* Remove unused imports
* Properly set a max proof size for cumulus test runtime
* Properly set a max proof size for common runtimes
* Properly set the max proof size for all runtimes
Co-authored-by: parity-processbot <>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-10-03 12:49:15 +00: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
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