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

v2.1: test-validator: Fix upgradeable programs at genesis (backport of #3692) #3694

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 18, 2024

Problem

As noted in https://solana.stackexchange.com/questions/17478/solana-localnet-error-while-upgrading-a-program-loaded-at-genesis-using-solan, an upgradeable program loaded at genesis is not actually upgradeable, failing with instruction changed executable accounts data. This is because the program-data account is incorrectly set as "executable", which it isn't really.

Summary of changes

Don't set the program-data account as executable. This is the only place in the repo where we were doing this incorrectly.

Since this is a small change that fixes a bug only in the test validator, I think this is a good candidate for a backport.


This is an automatic backport of pull request #3692 done by Mergify.

#### Problem

As noted in
https://solana.stackexchange.com/questions/17478/solana-localnet-error-while-upgrading-a-program-loaded-at-genesis-using-solan,
an upgradeable program loaded at genesis is not actually upgradeable,
failing with `instruction changed executable accounts data`. This is
because the program-data account is incorrectly set as "executable",
which it isn't really.

#### Summary of changes

Don't set the program-data account as executable. This is the only place
in the repo where we were doing this incorrectly.

(cherry picked from commit 73f54a0)
@mergify mergify bot requested a review from a team as a code owner November 18, 2024 13:30
@joncinque joncinque merged commit 0e50e66 into v2.1 Nov 18, 2024
28 checks passed
@joncinque joncinque deleted the mergify/bp/v2.1/pr-3692 branch November 18, 2024 22:19
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.

3 participants