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

removed obsolete field from cost_tracker #34762

Merged

Conversation

tao-stones
Copy link
Contributor

Problem

After #34688, CostTracker.account_data_size_limit becomes obsolete.

Summary of Changes

  • remove obsolete field

Fixes #

@tao-stones tao-stones force-pushed the remove-account-data-size-limit branch from fd5b7b3 to c506f37 Compare January 12, 2024 15:55
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a203f14) 81.7% compared to head (c506f37) 81.7%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34762   +/-   ##
=======================================
  Coverage    81.7%    81.7%           
=======================================
  Files         823      823           
  Lines      223050   223006   -44     
=======================================
- Hits       182409   182402    -7     
+ Misses      40641    40604   -37     

Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for the cleanup

Comment on lines -206 to -210
if let Some(account_data_size_limit) = self.account_data_size_limit {
if account_data_size > account_data_size_limit {
return Err(CostTrackerError::WouldExceedAccountDataTotalLimit);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

GitHub won't let me comment on the line, but up on line (old) 201/(new) 187, the NOTE mentions checking the total size before the block size. Now that we do not check the total size, that comment can be updated.

Not a blocker for this PR, as it can be fixed in a subsequent one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for point it out. Will clean it up separately

@tao-stones tao-stones merged commit 613f0ff into solana-labs:master Jan 12, 2024
35 checks passed
@tao-stones tao-stones deleted the remove-account-data-size-limit branch January 12, 2024 23:54
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