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: API: rename new to new_uninitialized #3170

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

buffalojoec
Copy link

Problem

In SVM land, the TransactionBatchProcessor method new is designed to, as it says, allow consumers to create a new instance of a TransactionBatchProcessor. However, what's not clear from this method is that fact that the program cache created within this method is completely useless, since it's missing:

  • A fork graph.
  • A valid program runtime environment (for either PR version).
  • Any builtin programs.

This method should be renamed to reflect the nature of its behavior, and documented.

Summary of Changes

Rename the method to new_uninitialized, and add some documentation!

dmakarov
dmakarov previously approved these changes Oct 15, 2024
dmakarov
dmakarov previously approved these changes Oct 15, 2024
@buffalojoec buffalojoec merged commit 75450a6 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.

3 participants