SIMD-0266: Efficient Token program (replace program account contents)#7680
Closed
febo wants to merge 8 commits into
Closed
SIMD-0266: Efficient Token program (replace program account contents)#7680febo wants to merge 8 commits into
febo wants to merge 8 commits into
Conversation
Author
|
Closed in favour of #7125 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
SIMD-0266 proposes to replace the current verion of SPL Token with p-token.
Summary of Changes
This PR includes the following changes:
agave-feature-setand its activation onbank.rs, which uses theupgrade_loader_v2_owned_programto replace the SPL Token program data.This PR provides a different approach than #7125 since it replace the contents of the program account, instead of migrating the account to a Loader v3 account. The advantage of this approach is that the program is immediately available; when the program is migrated to a Loader v3 account, it stays in a "delay visibility" mode for 1 slot.
The feature activation was also tested using a "p-token migration simulator" tool.
Before the upgrade of SPL Token program:

After the feature is activated and the program upgraded:
