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

SVM: paytube: update cache prep for token program #3168

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

buffalojoec
Copy link

Problem

In the SVM example PayTube, we are adding the SPL Token program directly to the cache during the preparation step for the TransactionBatchProcessor. However, we don't actually need to add this to the cache directly, and can instead rely on SVM's replenish_program_cache method to do this for us from the get_account_shared_data callback.

Summary of Changes

Don't add the SPL Token program directly to the cache. Instead, use slot 1 for the processor, and let the SVM take care of loading the program into the cache for the first time.

@buffalojoec buffalojoec merged commit 19c1e1b into anza-xyz:master Oct 15, 2024
40 checks passed
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
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