fix epmb solution duplicate issue + add remote mining apparatus to epm#8585
fix epmb solution duplicate issue + add remote mining apparatus to epm#8585kianenigma merged 20 commits intomasterfrom
Conversation
|
/cmd prdoc --bump patch |
| ], | ||
| vec![ | ||
| (30, Support { total: 11, voters: vec![(7, 7), (5, 2), (6, 2)] }), | ||
| (30, Support { total: 11, voters: vec![(5, 2), (6, 2), (7, 7)] }), |
There was a problem hiding this comment.
these ordering changes are irrelevant -- the order within Support doesn't matter.
| } | ||
|
|
||
| #[tokio::test] | ||
| async fn mine_for_polkadot() { |
There was a problem hiding this comment.
I have used this to test that the new check indeed doesn't cause anything to fail on a few recent staking elections on polkadot and kusama.
seadanda
left a comment
There was a problem hiding this comment.
Looks sensible high level, but I'm not a domain expert
substrate/frame/election-provider-multi-block/src/verifier/tests.rs
Outdated
Show resolved
Hide resolved
substrate/frame/election-provider-multi-phase/src/remote_mining.rs
Outdated
Show resolved
Hide resolved
substrate/frame/election-provider-multi-phase/src/remote_mining.rs
Outdated
Show resolved
Hide resolved
…ts.rs Co-authored-by: Dónal Murray <[email protected]>
…g.rs Co-authored-by: Dónal Murray <[email protected]>
…-sdk into kiz-ep-fix-duplicate
cumulus/parachains/runtimes/testing/yet-another-parachain/Cargo.toml
Outdated
Show resolved
Hide resolved
|
All GitHub workflows were cancelled due to failure one of the required jobs. |
…-sdk into kiz-ep-fix-duplicate
|
I think those are flaky, too: |
|
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-8585-to-stable2412
git worktree add --checkout .worktree/backport-8585-to-stable2412 backport-8585-to-stable2412
cd .worktree/backport-8585-to-stable2412
git reset --hard HEAD^
git cherry-pick -x 5d71d474ab78dacc37f89698a71baa45b41d0302
git push --force-with-lease |
|
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-8585-to-stable2503
git worktree add --checkout .worktree/backport-8585-to-stable2503 backport-8585-to-stable2503
cd .worktree/backport-8585-to-stable2503
git reset --hard HEAD^
git cherry-pick -x 5d71d474ab78dacc37f89698a71baa45b41d0302
git push --force-with-lease |
Backport #8585 into `stable2412` from kianenigma. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: kianenigma <[email protected]>
Backport #8585 into `stable2503` from kianenigma. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: kianenigma <[email protected]> Co-authored-by: Egor_P <[email protected]>
* master: (99 commits) Snowbridge: Remove asset location check for compatibility (#8473) add poke_deposit extrinsic to pallet-bounties (#8382) litep2p/peerset: Reject non-reserved peers in the reserved-only mode (#8650) Charge deposit based on key length (#8648) [pallet-revive] make subscription task panic on error (#8587) tx/metrics: Add metrics for the RPC v2 `transactionWatch_v1_submitAndWatch` (#8345) Bridges: Fix - Improve try-state for pallet-xcm-bridge-hub (#8615) Introduce CreateBare, deprecated CreateInherent (#7597) Use hashbrown hashmap/hashset in validation context (#8606) ci: rm gitlab config (#8622) 🔪 flaky and Zombienet tests (#8600) cumulus: adjust unincluded segment size metric buckets (#8617) Benchmark storage access on block validation (#8069) Revert 7934 es/remove tj changes (#8611) collator-protocol: add more collation observability (#8230) `fatxpool`: add fallback for ready at light (#8533) txpool: fix tx removal from unlocks set (#8500) XCMP weight metering: account for the MQ page position (#8344) fix epmb solution duplicate issue + add remote mining apparatus to epm (#8585) Fix generated address returned by Substrate RPC runtime call (#8504) ...
This PR brings a few small fixes related to the XCM messages of staking-async, among other small fixes: * [x] Allows `xcm::validate` to check the message size, and we actually now act upon it in the `staking-async-rc/parachain-runtime`s. The code is a bit duplicate now, and there is a TOOD about how to better refactor it later. * [x] Part of this work is backported separately as #8409 * [x] It brings a default `EraElectionPlannerOf` which should be the right tool to use to ensure elections always happen in time, with an educated guess based on `ElectionProvider::duration` rather than a random number. * [x] It adds a few unit tests about the above * [x] It silences some logs that were needlessly `INFO`, and makes the printing of some types a bit more CLI friendly. * [x] Fix the issue with duplicate voters in solution type: see #8585 * [x] Move `PagedRawSolution` to be unbounded, and therefore decode-able without PoV * [x] Undo a rename from `ClaimedRewards` to `ErasClaimedRewards` * [ ] Needs fixing in westend --------- Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paolo La Camera <[email protected]>
This PR brings a few small fixes related to the XCM messages of staking-async, among other small fixes: * [x] Allows `xcm::validate` to check the message size, and we actually now act upon it in the `staking-async-rc/parachain-runtime`s. The code is a bit duplicate now, and there is a TOOD about how to better refactor it later. * [x] Part of this work is backported separately as #8409 * [x] It brings a default `EraElectionPlannerOf` which should be the right tool to use to ensure elections always happen in time, with an educated guess based on `ElectionProvider::duration` rather than a random number. * [x] It adds a few unit tests about the above * [x] It silences some logs that were needlessly `INFO`, and makes the printing of some types a bit more CLI friendly. * [x] Fix the issue with duplicate voters in solution type: see #8585 * [x] Move `PagedRawSolution` to be unbounded, and therefore decode-able without PoV * [x] Undo a rename from `ClaimedRewards` to `ErasClaimedRewards` * [ ] Needs fixing in westend --------- Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paolo La Camera <[email protected]>
Backport paritytech#8585 into `stable2503` from kianenigma. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: kianenigma <[email protected]> Co-authored-by: Egor_P <[email protected]>
#8585) Backports a part of #8422 to master so it can be included in ongoing releases sooner. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dónal Murray <[email protected]>
This PR brings a few small fixes related to the XCM messages of staking-async, among other small fixes: * [x] Allows `xcm::validate` to check the message size, and we actually now act upon it in the `staking-async-rc/parachain-runtime`s. The code is a bit duplicate now, and there is a TOOD about how to better refactor it later. * [x] Part of this work is backported separately as #8409 * [x] It brings a default `EraElectionPlannerOf` which should be the right tool to use to ensure elections always happen in time, with an educated guess based on `ElectionProvider::duration` rather than a random number. * [x] It adds a few unit tests about the above * [x] It silences some logs that were needlessly `INFO`, and makes the printing of some types a bit more CLI friendly. * [x] Fix the issue with duplicate voters in solution type: see #8585 * [x] Move `PagedRawSolution` to be unbounded, and therefore decode-able without PoV * [x] Undo a rename from `ClaimedRewards` to `ErasClaimedRewards` * [ ] Needs fixing in westend --------- Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paolo La Camera <[email protected]>
Backports a part of #8422 to master so it can be included in ongoing releases sooner.