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

clean up no longer needed feature_set in test #34530

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

tao-stones
Copy link
Contributor

Problem

A test function no longer need to use feature_set; it also uses wrong variable name;

Summary of Changes

  • remove unused feature_set
  • remove wrongly named, and unused parameter

Fixes #

@@ -9997,16 +9993,7 @@ fn calculate_test_fee(
message: &SanitizedMessage,
lamports_per_signature: u64,
fee_structure: &FeeStructure,
support_set_accounts_data_size_limit_ix: bool,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the name of this parameter is misleading

&solana_sdk::feature_set::include_loaded_accounts_data_size_in_fee_calculation::id(),
);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the feature_set is no longer used. calculate_fee() takes hard-coded false to exclude account bytes from fee calc.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a8582e) 81.8% compared to head (2df601e) 81.8%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34530   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         822      822           
  Lines      221532   221518   -14     
=======================================
+ Hits       181307   181348   +41     
+ Misses      40225    40170   -55     

@tao-stones tao-stones merged commit c722976 into solana-labs:master Dec 19, 2023
34 checks passed
@tao-stones tao-stones deleted the cleanup-test branch December 19, 2023 22:43
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