Struct solana_runtime::accounts_hash::AccountsHash
source · pub struct AccountsHash {
pub filler_account_suffix: Option<Pubkey>,
}
Fields§
§filler_account_suffix: Option<Pubkey>
Implementations§
source§impl AccountsHash
impl AccountsHash
sourcepub fn filler_accounts_enabled(&self) -> bool
pub fn filler_accounts_enabled(&self) -> bool
true if it is possible that there are filler accounts present
pub fn calculate_hash(hashes: Vec<Vec<Hash>>) -> (Hash, usize)
pub fn compute_merkle_root(hashes: Vec<(Pubkey, Hash)>, fanout: usize) -> Hash
pub fn compute_merkle_root_recurse(hashes: Vec<Hash>, fanout: usize) -> Hash
pub fn div_ceil(x: usize, y: usize) -> usize
pub fn compute_merkle_root_loop<T, F>( hashes: Vec<T>, fanout: usize, extractor: F ) -> Hashwhere F: Fn(&T) -> Hash + Sync, T: Sync,
pub fn compute_merkle_root_from_slices<'a, F, T>( total_hashes: usize, fanout: usize, max_levels_per_pass: Option<usize>, get_hash_slice_starting_at_index: F, specific_level_count: Option<usize> ) -> (Hash, Vec<Hash>)where F: Fn(usize) -> &'a [T] + Sync, T: Borrow<Hash> + Sync + 'a,
pub fn compute_merkle_root_from_slices_recurse( hashes: Vec<Hash>, fanout: usize, max_levels_per_pass: Option<usize>, specific_level_count: Option<usize> ) -> (Hash, Vec<Hash>)
pub fn accumulate_account_hashes(hashes: Vec<(Pubkey, Hash)>) -> Hash
pub fn sort_hashes_by_pubkey(hashes: &mut Vec<(Pubkey, Hash)>)
pub fn compare_two_hash_entries( a: &CalculateHashIntermediate, b: &CalculateHashIntermediate ) -> Ordering
pub fn checked_cast_for_capitalization(balance: u128) -> u64
pub fn rest_of_hash_calculation( &self, data_sections_by_pubkey: Vec<Vec<Vec<CalculateHashIntermediate>>>, stats: &mut HashStats, is_last_pass: bool, previous_state: PreviousPass, max_bin: usize ) -> (Hash, u64, PreviousPass)
Trait Implementations§
source§impl Debug for AccountsHash
impl Debug for AccountsHash
source§impl Default for AccountsHash
impl Default for AccountsHash
source§fn default() -> AccountsHash
fn default() -> AccountsHash
Returns the “default value” for a type. Read more