private AccountSharedData.rent_epoch (#16877)

This commit is contained in:
Jeff Washington (jwash)
2021-04-28 08:52:20 -05:00
committed by GitHub
parent 6381ee38eb
commit da3342759b
5 changed files with 19 additions and 17 deletions

View File

@@ -976,7 +976,7 @@ impl Accounts {
_ => panic!("unexpected nonce_rollback condition"),
}
}
if account.rent_epoch == INITIAL_RENT_EPOCH {
if account.rent_epoch() == INITIAL_RENT_EPOCH {
loaded_transaction.rent +=
rent_collector.collect_from_created_account(&key, account);
}