AccountSharedData.executable() (#16835)

This commit is contained in:
Jeff Washington (jwash)
2021-04-27 09:12:17 -05:00
committed by GitHub
parent 4e7e675c07
commit 998cba74b5
7 changed files with 19 additions and 18 deletions

View File

@@ -289,7 +289,7 @@ impl<'a> LoadedAccount<'a> {
LoadedAccount::Stored(stored_account_meta) => {
stored_account_meta.account_meta.executable
}
LoadedAccount::Cached((_, cached_account)) => cached_account.account.executable,
LoadedAccount::Cached((_, cached_account)) => cached_account.account.executable(),
}
}
@@ -3256,7 +3256,7 @@ impl AccountsDb {
hasher.hash(&account.data());
hasher.hash(&account.owner().as_ref());
if account.executable {
if account.executable() {
hasher.hash(&[1u8; 1]);
} else {
hasher.hash(&[0u8; 1]);