Removes unnecessary derives from Accounts{Delta}Hash (#30392)

This commit is contained in:
Brooks 2023-02-20 16:00:53 -05:00 committed by GitHub
parent 46b42e1888
commit bcc4bc80c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -540,10 +540,11 @@ fn test_concurrent_snapshot_packaging(
solana_runtime::serde_snapshot::reserialize_bank_with_new_accounts_hash(
accounts_package.snapshot_links_dir(),
accounts_package.slot,
&AccountsHash::default(),
&AccountsHash(Hash::default()),
None,
);
let snapshot_package = SnapshotPackage::new(accounts_package, AccountsHash::default());
let snapshot_package =
SnapshotPackage::new(accounts_package, AccountsHash(Hash::default()));
pending_snapshot_package
.lock()
.unwrap()
@ -570,7 +571,7 @@ fn test_concurrent_snapshot_packaging(
solana_runtime::serde_snapshot::reserialize_bank_with_new_accounts_hash(
saved_snapshots_dir.path(),
saved_slot,
&AccountsHash::default(),
&AccountsHash(Hash::default()),
None,
);

View File

@ -1110,11 +1110,11 @@ pub enum ZeroLamportAccounts {
}
/// Hash of accounts
#[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Serialize, Deserialize, AbiExample)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct AccountsHash(pub Hash);
/// Hash of accounts written in a single slot
#[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Serialize, Deserialize, AbiExample)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub struct AccountsDeltaHash(pub Hash);
#[cfg(test)]