get stored_size from StoredAccountMeta (#30456)

This commit is contained in:
Jeff Washington (jwash) 2023-02-23 14:33:35 -06:00 committed by GitHub
parent a2b0b8e346
commit 6df160bedd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7973,7 +7973,7 @@ impl AccountsDb {
);
let offset = account_info.offset();
let account = store.accounts.get_account(offset).unwrap();
let stored_size = account.1.saturating_sub(offset);
let stored_size = account.0.stored_size;
let count = store.remove_account(stored_size, reset_accounts);
if count == 0 {
self.dirty_stores