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

Do not overwrite builtin program in the same slot #31718

Merged
merged 2 commits into from
May 19, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented May 18, 2023

Problem

The builtin programs are allowed to be overwritten in the same slot as initial deployment.

Summary of Changes

The test added builtin as part of bank initialization. It was later adding an existing builtin in the same bank. This PR updates the test to create a child bank to overwrite the builtin. Also removes the special handling of overwriting the builtin in the same slot as the initial deployment.

Fixes #

@pgarg66 pgarg66 requested a review from Lichtso May 18, 2023 22:01
@pgarg66 pgarg66 marked this pull request as ready for review May 18, 2023 22:09
@codecov
Copy link

codecov bot commented May 18, 2023

Codecov Report

Merging #31718 (c3a9b77) into master (a57fe0c) will decrease coverage by 0.1%.
The diff coverage is 86.0%.

@@            Coverage Diff            @@
##           master   #31718     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         737      736      -1     
  Lines      205992   205943     -49     
=========================================
- Hits       168717   168676     -41     
+ Misses      37275    37267      -8     

@pgarg66 pgarg66 merged commit e6d4907 into solana-labs:master May 19, 2023
@pgarg66 pgarg66 deleted the replenish-builtin-change branch May 19, 2023 12:26
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