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

refactor: rename compute_budget_instruction_details for accuracy #4409

Conversation

tao-stones
Copy link

Problem

This renaming was stripped out from #3799 to reduce its change size for backporting. Be nice to rename to instruction_details to better reflect its actual purpose.

Summary of Changes

  • rename, no functional change

Fixes #

@tao-stones tao-stones requested review from a team as code owners January 10, 2025 23:18
@tao-stones tao-stones force-pushed the refactor-rename-compute-budget-instruction-details branch from 5b7f854 to d788b23 Compare January 10, 2025 23:35
Comment on lines 24 to +25
fn signature_details(&self) -> &TransactionSignatureDetails;
fn compute_budget_instruction_details(&self) -> &ComputeBudgetInstructionDetails;
fn instruction_details(&self) -> &InstructionDetails;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my one concern with the rename is that it seems like signature_details are also details about the instructions? InstructionDetails seems too generic almost, wdyt?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the details still refer to compute budget, I prefer the naming to mention it, lest we mistake it for a generic instruction.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my one concern with the rename is that it seems like signature_details are also details about the instructions? InstructionDetails seems too generic almost, wdyt?

This is the first step to combine signature details into instruction details (as the poc we discussed some times ago), hopefully saving one iteration over instructions when there is one "details" for runtime-transactions.

If the details still refer to compute budget, I prefer the naming to mention it, lest we mistake it for a generic instruction.

Good point, makes me think all "details" definition should be in runtime-transaction crate, could leave ops to "details" (such as get, try_from etc) in proper crates.

I'll play around for both feedbacks.

@tao-stones tao-stones closed this Jan 17, 2025
@tao-stones tao-stones deleted the refactor-rename-compute-budget-instruction-details branch January 17, 2025 18:43
Copy link

mergify bot commented Jan 17, 2025

⚠️ The sha of the head commit of this PR conflicts with #4525. Mergify cannot evaluate rules on this PR. ⚠️

@tao-stones
Copy link
Author

close this, prefer #4525 for full stake refactor.

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.

4 participants