Struct solana_runtime::bank_forks::BankForks [−][src]
pub struct BankForks { pub snapshot_config: Option<SnapshotConfig>, pub accounts_hash_interval_slots: Slot, // some fields omitted }
Fields
snapshot_config: Option<SnapshotConfig>
accounts_hash_interval_slots: Slot
Implementations
Create a map of bank slot id to the set of ancestors for the bank slot.
Create a map of bank slot id to the set of all of its descendants
pub fn get_with_checked_hash(
&self,
(bank_slot, expected_hash): (Slot, Hash)
) -> Option<&Arc<Bank>>
pub fn set_root(
&mut self,
root: Slot,
accounts_background_request_sender: &AbsRequestSender,
highest_confirmed_root: Option<Slot>
)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BankForks
impl !UnwindSafe for BankForks
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self