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, ) -> Hash
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>)
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
Auto Trait Implementations§
impl Freeze for AccountsHash
impl RefUnwindSafe for AccountsHash
impl Send for AccountsHash
impl Sync for AccountsHash
impl Unpin for AccountsHash
impl UnwindSafe for AccountsHash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more