Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Store PendingUpwardMessages in pallet-paged-list #2657

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented May 30, 2023

Changes the parachain-system pallet to use the paged-list pallet instead of a StorageValue<Vev<_>> for storing the pending upward messages.

TODO:

  • Fix all runtimes
  • Re-benchmark
  • Undo diener
  • Provide info for downstream teams

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez changed the title Integrate pallet-paged-list Integrate pallet-paged-list May 30, 2023
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@paritytech paritytech deleted a comment from command-bot bot Jul 24, 2023
@paritytech paritytech deleted a comment from command-bot bot Jul 24, 2023
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez added A0-please_review Pull request needs code review. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited T1-runtime This PR/Issue is related to the topic “runtime”. labels Jul 24, 2023
@ggwpez ggwpez marked this pull request as ready for review July 25, 2023 10:48
@paritytech-ci paritytech-ci requested review from a team July 25, 2023 10:48
ggwpez added 2 commits July 25, 2023 13:55
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez requested a review from a team July 25, 2023 14:31
UpwardMessages::<T>::put(&up[..num]);
*up = up.split_off(num);
});
// TODO: #274 Return back messages that do not longer fit into the queue.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont think #274 applies here anymore.

@ggwpez ggwpez changed the title Integrate pallet-paged-list Use pallet-paged-list to store PendingUpwardMessages Jul 25, 2023
@ggwpez ggwpez changed the title Use pallet-paged-list to store PendingUpwardMessages Store PendingUpwardMessages in pallet-paged-list Jul 25, 2023
@@ -761,6 +767,9 @@ construct_runtime!(
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
Nfts: pallet_nfts::{Pallet, Call, Storage, Event<T>} = 52,
ForeignAssets: pallet_assets::<Instance2>::{Pallet, Call, Storage, Event<T>} = 53,

// Storage aux.
PagedList: pallet_paged_list::{Pallet} = 80,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following the idiom of bags-list, let's name this something better, such that if it is used for a second time, the names don't collide?

"pallet-timestamp/std",
"pallet-transaction-payment/std",
"pallet-glutton/std",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants