Conversation
|
The approach looks good to me. Why didn't you have to add it to the There are unit tests for the |
|
cc @serban300 |
|
\cmd prdoc --bump minor |
|
\cmd prdoc --bump minor |
|
/cmd prdoc --bump minor |
…lkadot-sdk into kiz-vmp-message-size-check
|
I looked a bit into why the benches are failing. It is because I have 2 options, and would like advice on which to take, based on the "standards" and conventions of XCM related code that I don't know very well, but would like to respect:
Latter is clearly more elegant to me, but a bit more work |
|
I pushed approach 1 in 5506193 for now. |
…lkadot-sdk into kiz-vmp-message-size-check
nice quick hack :), something like this for approach 2 should also work: https://github.com/paritytech/polkadot-sdk/compare/kiz-vmp-message-size-check...bko-on-kiz-vmp-message-size-check?expand=1 |
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
All GitHub workflows were cancelled due to failure one of the required jobs. |
|
/cmd prdoc --bump minor |
|
\cmd prdoc --bump minor |
|
Command "prdoc --bump minor" has failed ❌! See logs here |
|
/cmd prdoc --bump minor --force |
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 <adrian@parity.io> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paolo La Camera <paolo@parity.io>
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 <adrian@parity.io> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paolo La Camera <paolo@parity.io>
This brings in `stable2506` Polkadot SDK, and integrates many new features. Integrated breaking changes to be verified by the original authors: - [x] ~paritytech/polkadot-sdk#8127 @kianenigma @Ank4n~ This will come in with AHM, and not before. - [x] paritytech/polkadot-sdk#7597 @gui1117 - [x] paritytech/polkadot-sdk#8254 @bkchr - [x] paritytech/polkadot-sdk#7592 @bkontur - [x] paritytech/polkadot-sdk#8382 @UtkarshBhardwaj007 - [x] paritytech/polkadot-sdk#8021 @serban300 - [x] paritytech/polkadot-sdk#8344 @serban300 - [x] paritytech/polkadot-sdk#8262 @athei - [x] paritytech/polkadot-sdk#8584 @athei - [x] paritytech/polkadot-sdk#8299 @skunert - [x] paritytech/polkadot-sdk#8652 @pgherveou - [x] paritytech/polkadot-sdk#8554 @pgherveou - [x] paritytech/polkadot-sdk#8281 @mrshiposha - [x] paritytech/polkadot-sdk#7730 @franciscoaguirre - [x] paritytech/polkadot-sdk#8599 @yrong @claravanstaden - [x] paritytech/polkadot-sdk#8531 @bkontur - [x] paritytech/polkadot-sdk#8409 @kianenigma - [x] paritytech/polkadot-sdk#9137 @franciscoaguirre - [x] paritytech/polkadot-sdk#7944 @bkontur - [x] paritytech/polkadot-sdk#8179 @bkontur - [x] paritytech/polkadot-sdk#8037 @yrong --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: claravanstaden <claravanstaden64@gmail.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Alain Brenzikofer <alain@integritee.network> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com> Co-authored-by: ron <yrong1997@gmail.com> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Overkillus <maciej.zyszkiewicz@parity.io>
Contxt: within AHM, AH and RC need to communicate large-ish payloads of data, such as 1000 validator key and corresponding reward points per session. While the current limits on Polkadot and Kusama allow for such payloads, I am putting the code in place such that we `SendXcm::validate` any message before sending, and based on that, if `MessageSizeExceeded` is returned, we recursively split the messages. This code itself will come in a sparate PR. So far, it turned out that in the code bath of a UMP (para -> RC), `validate` actually didn't check the message size. This PR adds this. I am not super familiar yet with this part of the codebase to know where to add unit tests for this, but I can tell that in my ZN experiments, this fixes the issue. I was expecting a similar hack to also be needed for DMP (RC -> para), but it seems like this is not needed and in this code-path (based on who is the router: `ChildParachainRouter` in my case). --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com>
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 <adrian@parity.io> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Paolo La Camera <paolo@parity.io>
Contxt: within AHM, AH and RC need to communicate large-ish payloads of data, such as 1000 validator key and corresponding reward points per session. While the current limits on Polkadot and Kusama allow for such payloads, I am putting the code in place such that we
SendXcm::validateany message before sending, and based on that, ifMessageSizeExceededis returned, we recursively split the messages. This code itself will come in a sparate PR.So far, it turned out that in the code bath of a UMP (para -> RC),
validateactually didn't check the message size. This PR adds this. I am not super familiar yet with this part of the codebase to know where to add unit tests for this, but I can tell that in my ZN experiments, this fixes the issue.I was expecting a similar hack to also be needed for DMP (RC -> para), but it seems like this is not needed and in this code-path (based on who is the router:
ChildParachainRouterin my case).