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

update rent epoch max test #35092

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

jeffwashington
Copy link
Contributor

Problem

feature set_exempt_rent_epoch_max was activated.
Updating hashes on a test is dangerous. it is easy to miss an unintentional change.

Summary of Changes

Modify a bank hash test to prepare to remove the code behind the feature change. This way the contents are known and the hashes will match. #35082 will be easier to verify as correct.

Fixes #

@jeffwashington jeffwashington force-pushed the 4fb2 branch 2 times, most recently from 54e0658 to 23b8f04 Compare February 5, 2024 22:22
"4uX1AZFbqwjwWBACWbAW3V8rjbWH4N3ZRTbNysSLAzj2"
);
break;
if set_rent_epoch_max {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe invert the if condition, so that the diff is clearer.

@jeffwashington jeffwashington marked this pull request as ready for review February 5, 2024 23:07
Copy link
Contributor

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a16f982) 81.6% compared to head (888d062) 81.6%.
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #35092   +/-   ##
=======================================
  Coverage    81.6%    81.6%           
=======================================
  Files         830      830           
  Lines      225019   225035   +16     
=======================================
+ Hits       183675   183705   +30     
+ Misses      41344    41330   -14     

@jeffwashington jeffwashington merged commit d52b1ac into solana-labs:master Feb 6, 2024
35 checks passed
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.

3 participants