diff --git a/core/tests/snapshots.rs b/core/tests/snapshots.rs index 41a0539baa..f10aefc578 100644 --- a/core/tests/snapshots.rs +++ b/core/tests/snapshots.rs @@ -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, ); diff --git a/runtime/src/accounts_hash.rs b/runtime/src/accounts_hash.rs index 5f9c8f0d3f..d362a5e6c7 100644 --- a/runtime/src/accounts_hash.rs +++ b/runtime/src/accounts_hash.rs @@ -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)]