pub struct AccountsBackgroundService { /* private fields */ }
Implementations§
source§impl AccountsBackgroundService
impl AccountsBackgroundService
pub fn new(
bank_forks: Arc<RwLock<BankForks>>,
exit: &Arc<AtomicBool>,
request_handler: AbsRequestHandler,
accounts_db_caching_enabled: bool,
test_hash_calculation: bool,
last_full_snapshot_slot: Option<Slot>
) -> Self
sourcepub fn setup_bank_drop_callback(
bank_forks: Arc<RwLock<BankForks>>
) -> DroppedSlotsReceiver
pub fn setup_bank_drop_callback(
bank_forks: Arc<RwLock<BankForks>>
) -> DroppedSlotsReceiver
Should be called immediately after bank_fork_utils::load_bank_forks(), and as such, there
should only be one bank, the root bank, in bank_forks
All banks added to bank_forks
will be descended from the root bank, and thus will inherit
the bank drop callback.