smartcontract: move multicast group allowlists from AccessPass vecs to PDAs#2856
Open
martinsander00 wants to merge 2 commits intomainfrom
Open
smartcontract: move multicast group allowlists from AccessPass vecs to PDAs#2856martinsander00 wants to merge 2 commits intomainfrom
martinsander00 wants to merge 2 commits intomainfrom
Conversation
02c559e to
71d5523
Compare
martinsander00
commented
Feb 7, 2026
|
|
||
| /// Check if an access pass is allowed for a multicast group (PDA-first with Vec fallback + self-migration). | ||
| /// Returns true if the Vec was modified and the access pass needs to be written back. | ||
| pub(crate) fn check_and_migrate_allowlist<'a>( |
Contributor
Author
There was a problem hiding this comment.
we could move this somewhere else. Open to suggestions
71d5523 to
4ad9645
Compare
4ad9645 to
f50eac0
Compare
…o PDAs Replace mgroup_pub_allowlist and mgroup_sub_allowlist vecs inside AccessPass with dedicated MGroupAllowlistEntry PDAs. This eliminates unbounded account growth and reallocation costs. Adds self-migration path in subscribe and create_subscribe processors that automatically migrates existing vec entries to PDAs on use.
f50eac0 to
d0c573c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: https://github.com/malbeclabs/infra/issues/529
Summary
mgroup_pub_allowlistandmgroup_sub_allowlistvecs inside AccessPass with dedicatedMGroupAllowlistEntryPDAs, eliminating unbounded account growth and reallocation costsMGroupAllowlistEntryaccount type (id=13) withSEED_MGROUP_ALLOWLISTseed, keyed by access pass, multicast group, and allowlist type (publisher/subscriber)Testing Verification