From 83d3494e45d610d17eadd6b02331cf715ac591b6 Mon Sep 17 00:00:00 2001 From: brooks Date: Wed, 18 Oct 2023 10:05:15 -0400 Subject: [PATCH] Returns AccountHash from get_filler_account() --- accounts-db/src/accounts_db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 9806b186fa34cc..fc4fe5d58eee84 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -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), @@ -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);