Skip to content

Commit

Permalink
* Rename non-rent-exempt to rent-paying
Browse files Browse the repository at this point in the history
  • Loading branch information
yhchiang-sol committed Jan 26, 2024
1 parent 4eb9aa7 commit 370bbc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions accounts-db/src/tiered_storage/hot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ impl HotStorageWriter {
acc.owner(),
acc.data(),
acc.executable(),
// only persist rent_epoch for those non-rent-exempt accounts
// only persist rent_epoch for those rent-paying accounts
(acc.rent_epoch() != RENT_EXEMPT_RENT_EPOCH).then_some(acc.rent_epoch()),
Some(account_hash),
)
Expand Down Expand Up @@ -1341,7 +1341,7 @@ pub mod tests {
acc.owner(),
acc.data(),
acc.executable(),
// only persist rent_epoch for those non-rent-exempt accounts
// only persist rent_epoch for those rent-paying accounts
Some(*account_hash),
)
})
Expand Down
2 changes: 1 addition & 1 deletion accounts-db/src/tiered_storage/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ pub mod tests {
let derived_size = account_hash_offset
+ account_hash
.as_ref()
.map(std::mem::size_of_val)
.map(|acc_hash| std::mem::size_of_val(*acc_hash))
.unwrap_or(0);
let opt_fields = AccountMetaOptionalFields {
rent_epoch,
Expand Down

0 comments on commit 370bbc7

Please sign in to comment.