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

stake-pool: Fix test for monorepo downstream job #5514

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

joncinque
Copy link
Contributor

Problem

As noted in #5439 (comment), the new force-destake test was failing in the downstream job from the monorepo.

This is happening because the test is serializing 196 bytes for the stake account, rather than the expected 200 bytes. This works fine in 1.16, where we don't use the extra 4 bytes. In 1.17 and 1.18, however, those extra 4 bytes matter for the stake flags.

Solution

Overallocate the vector used when serializing a StakeState.

@joncinque joncinque merged commit 5088633 into solana-labs:master Oct 12, 2023
9 checks passed
@joncinque joncinque deleted the spunignore branch October 12, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants