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

v1.18: Scheduler - prioritization fees/cost (#34888) #187

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

apfitzge
Copy link

Problem

Manual backport of solana-labs#34888

Summary of Changes

  • Removed changes for prioritization metrics since those do not exist in 1.18

Fixes #

@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 97.87234% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.6%. Comparing base (04356e7) to head (03dbd60).

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.18     #187     +/-   ##
=========================================
+ Coverage    80.6%    81.6%   +0.9%     
=========================================
  Files         827      827             
  Lines      224496   224469     -27     
=========================================
+ Hits       181015   183209   +2194     
+ Misses      43481    41260   -2221     

@apfitzge apfitzge marked this pull request as ready for review March 11, 2024 20:29
tao-stones
tao-stones previously approved these changes Mar 11, 2024
Copy link

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

lgtm

}

/// Returns a reference to the priority details of the transaction.
pub(crate) fn transaction_priority_details(&self) -> &TransactionPriorityDetails {

Choose a reason for hiding this comment

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

for the sake of backport readability, can you read these removed functions and annotate with #[allow(dead_code)]?

Copy link
Author

Choose a reason for hiding this comment

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

The meta data stored in transaction_state changed, so we no longer have a TransactionPriorityDetails. I don't think we should add back those unused metadata and code for calculating them.

I could add a block-comment around these removed fns if you think that'd help simplify the diff.

Copy link
Author

Choose a reason for hiding this comment

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

Added block-comment from 50 to 97: c80d5fb

@apfitzge apfitzge force-pushed the 1.18-manbp-reward-prioritization branch from c80d5fb to 03dbd60 Compare March 15, 2024 23:07
@apfitzge
Copy link
Author

had to rebase due to 1.18 version being tagged, was causing sanity CI check to fail.

Copy link

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

great! much more readable with the dead code commented instead of removed

@apfitzge apfitzge merged commit 8d30aba into anza-xyz:v1.18 Mar 21, 2024
33 checks passed
@apfitzge apfitzge deleted the 1.18-manbp-reward-prioritization branch March 21, 2024 17:27
gabrielKerekes added a commit to vacuumlabs/trezor-suite that referenced this pull request Mar 25, 2024
…or Solana transactions

In an ideal world over-reserving compute units would not result in faster transaction confirmation but if we optimize the compute unit limit to match the amount of CUs the transaction requires (+ a 20% buffer) the transactions simply do not go through in time.

Perhaps this could be revisited at some point in the future e.g. when [this PR](anza-xyz/agave#187) is released and validators update.
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
…-xyz#187)

* v1.18: Scheduler - prioritization fees/cost (solana-labs#34888)

* add commented out functions - simplify diff
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