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

add requested limits to static meta #34361

Conversation

tao-stones
Copy link
Contributor

Problem

Adding requested limits with expiry, currently set via ComputeBudgetInstructions, to runtime-transaction's static meta.

Summary of Changes

  1. add internal struct RequestedLimitsWithExpiry to tag compute_budget_limits with expiry (eg last slot of current epoch)
  2. unwrap compute_budget_limits into flat fields, add to StaticMeta, avoiding exposing compute_budget stuff to callsite.

Fixes #

@tao-stones tao-stones force-pushed the runtime-transaction-add-compute-budget-limits branch from e785c15 to 4b71eca Compare December 7, 2023 23:40
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Merging #34361 (61cdcd3) into master (86c88d7) will decrease coverage by 0.1%.
The diff coverage is 98.9%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34361     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         819      819             
  Lines      220831   220889     +58     
=========================================
+ Hits       180794   180795      +1     
- Misses      40037    40094     +57     

@tao-stones tao-stones force-pushed the runtime-transaction-add-compute-budget-limits branch from 6f1acb1 to b127c5f Compare December 12, 2023 21:54
@tao-stones tao-stones marked this pull request as ready for review December 12, 2023 23:50
@tao-stones tao-stones force-pushed the runtime-transaction-add-compute-budget-limits branch from b127c5f to 61cdcd3 Compare December 15, 2023 22:34
Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm

@tao-stones tao-stones merged commit 310c7a4 into solana-labs:master Dec 16, 2023
34 checks passed
@tao-stones tao-stones deleted the runtime-transaction-add-compute-budget-limits branch December 16, 2023 00:40
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