pub struct CalcAccountsHashConfig<'a> {
    pub use_bg_thread_pool: bool,
    pub check_hash: bool,
    pub ancestors: Option<&'a Ancestors>,
    pub use_write_cache: bool,
    pub epoch_schedule: &'a EpochSchedule,
    pub rent_collector: &'a RentCollector,
}
Expand description

parameters to calculate accounts hash

Fields

use_bg_thread_pool: bool

true to use a thread pool dedicated to bg operations

check_hash: bool

verify every hash in append vec/write cache with a recalculated hash this option will be removed

ancestors: Option<&'a Ancestors>

‘ancestors’ is used to get storages and also used if ‘use_write_cache’ is true to get account data from the write cache

use_write_cache: bool

does hash calc need to consider account data that exists in the write cache? if so, ‘ancestors’ will be used for this purpose as well as storages.

epoch_schedule: &'a EpochSchedulerent_collector: &'a RentCollector

Implementations

return true if we should cache accounts hash intermediate data between calls

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more