Skip to content

Commit

Permalink
Returns AccountHash from get_filler_account() (solana-labs#33758)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Oct 19, 2023
1 parent 3bfa0d2 commit 0fcc0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6623,7 +6623,7 @@ impl AccountsDb {
let pubkeys = self.get_filler_account_pubkeys(filler_accounts as usize);
pubkeys.iter().for_each(|key| {
accounts.push((key, &account));
hashes.push(AccountHash(hash));
hashes.push(hash);
});
self.store_accounts_frozen(
(slot, &accounts[..], include_slot_in_hash),
Expand Down Expand Up @@ -9098,9 +9098,9 @@ impl AccountsDb {
}

/// return 'AccountSharedData' and a hash for a filler account
fn get_filler_account(&self, rent: &Rent) -> (AccountSharedData, Hash) {
fn get_filler_account(&self, rent: &Rent) -> (AccountSharedData, AccountHash) {
let string = "FiLLERACCoUNTooooooooooooooooooooooooooooooo";
let hash = Hash::from_str(string).unwrap();
let hash = AccountHash(Hash::from_str(string).unwrap());
let owner = Pubkey::from_str(string).unwrap();
let space = self.filler_accounts_config.size;
let rent_exempt_reserve = rent.minimum_balance(space);
Expand Down

0 comments on commit 0fcc0a0

Please sign in to comment.