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 active_banks(&self) -> Vec<Slot>ⓘ
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
pub fn vzip(self) -> V
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