Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pallet-membership: Do not verify the MembershipChanged in bechmarks #6439

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Nov 11, 2024

There is no need to verify in the pallet-membership benchmark that the MemembershipChanged implementation works as the pallet thinks it should work. If you for example set it to (), get_prime() will always return None.

TLDR: Remove the checks of MembershipChanged in the benchmarks to support any kind of implementation.

There is no need to verify in the `pallet-membership` benchmak that
the `MemembershipChanged` implementation works as the pallet thinks
it should work. If you for example set it to `()`, `get_prime()` will
always return `None`.

TLDR: Remove the checks of `MembershipChanged` in the benchmarks to support any kind of implementation.
@bkchr bkchr added the T2-pallets This PR/Issue is related to a particular pallet. label Nov 11, 2024
@bkchr bkchr requested a review from a team as a code owner November 11, 2024 10:36
@bkchr
Copy link
Member Author

bkchr commented Nov 11, 2024

/cmd prdoc --audience runtime_dev --bump patch

@acatangiu acatangiu changed the title pallet-membership: Do not verify the MembershipChanged pallet-membership: Do not verify the MembershipChanged in bechmarks Nov 11, 2024
prdoc/pr_6439.prdoc Outdated Show resolved Hide resolved
prdoc/pr_6439.prdoc Outdated Show resolved Hide resolved
bkchr and others added 2 commits November 11, 2024 11:52
Co-authored-by: Adrian Catangiu <[email protected]>
Co-authored-by: Adrian Catangiu <[email protected]>
@bkchr bkchr added this pull request to the merge queue Nov 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 11, 2024
@bkchr bkchr added this pull request to the merge queue Nov 11, 2024
Merged via the queue into master with commit a5de3b1 Nov 11, 2024
195 of 198 checks passed
@bkchr bkchr deleted the bkchr-membership-benchmarks branch November 11, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants