Struct solana_runtime::accounts_hash::AccountsHash
source · [−]pub struct AccountsHash {
pub filler_account_suffix: Option<Pubkey>,
}
Fields
filler_account_suffix: Option<Pubkey>
Implementations
sourceimpl 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 where
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
sourceimpl Debug for AccountsHash
impl Debug for AccountsHash
sourceimpl Default for AccountsHash
impl Default for AccountsHash
sourcefn default() -> AccountsHash
fn default() -> AccountsHash
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AccountsHash
impl Send for AccountsHash
impl Sync for AccountsHash
impl Unpin for AccountsHash
impl UnwindSafe for AccountsHash
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more