Fold bank serialisation into serde snapshot (#10581)
* Move bank (de)serialisation logic from bank and snapshot_utils to serde_snapshot. Add sanity assertions between genesis config and bank fields on deserialisation. Atomically update atomic bool in quote_for_specialization_detection(). Use same genesis config when restoring snapshots in test cases. * Tidy up namings and duplicate structs to version * Apply struct renames to tests * Update abi hashes Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5c86766fb2
commit
ed5a2f2a90
@@ -1800,7 +1800,7 @@ impl AccountsDB {
|
||||
hashes
|
||||
}
|
||||
|
||||
pub fn freeze_accounts(&mut self, ancestors: &Ancestors, account_pubkeys: &[Pubkey]) {
|
||||
pub(crate) fn freeze_accounts(&mut self, ancestors: &Ancestors, account_pubkeys: &[Pubkey]) {
|
||||
for account_pubkey in account_pubkeys {
|
||||
if let Some((account, _slot)) = self.load_slow(ancestors, &account_pubkey) {
|
||||
let frozen_account_info = FrozenAccountInfo {
|
||||
@@ -1994,7 +1994,7 @@ impl AccountsDB {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn print_accounts_stats(&self, label: &'static str) {
|
||||
pub(crate) fn print_accounts_stats(&self, label: &'static str) {
|
||||
self.print_index(label);
|
||||
self.print_count_and_status(label);
|
||||
}
|
||||
|
Reference in New Issue
Block a user