Add Bank::update_accounts_data_size_delta_off_chain_for_tests() (#26771)

This commit is contained in:
Brooks Prumo 2022-07-25 13:58:04 -05:00 committed by GitHub
parent 21c7160f14
commit 01e367f19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -4796,6 +4796,12 @@ impl Bank {
self.accounts_data_size_initial = amount;
}
/// Update the accounts data size off-chain delta
/// NOTE: This fn is *ONLY FOR TESTS*
pub fn update_accounts_data_size_delta_off_chain_for_tests(&self, amount: i64) {
self.update_accounts_data_size_delta_off_chain(amount)
}
fn get_num_signatures_in_message(message: &SanitizedMessage) -> u64 {
let mut num_signatures = u64::from(message.header().num_required_signatures);
// This next part is really calculating the number of pre-processor