-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove redundant check during loading upgradeable program for writing #30561
Conversation
703e927
to
57480f4
Compare
Can you please link to these checks? |
@Lichtso could you please point to the code? |
When an account has the |
57480f4
to
ead201a
Compare
Codecov Report
@@ Coverage Diff @@
## master #30561 +/- ##
=======================================
Coverage 81.5% 81.5%
=======================================
Files 727 727
Lines 205250 205282 +32
=======================================
+ Hits 167378 167428 +50
+ Misses 37872 37854 -18 |
ead201a
to
bd360fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the program-cache context we discussed directly. This now looks okay to me
Activating on testnet in epoch 530. |
Problem
The accounts.rs code currently checks if the message includes upgradeable loader key, if an upgradeable program is being loaded for writing. The check looks necessary and harmless at quick glance. But its unnecessary, as the transaction will fail due to other checks in the execution. The check is making it harder to refactor the code for the runtime V2/Cache replacement (#29803).
Summary of Changes
Feature Gate Issue #30559