Skip to main content

replace_account_usage

Function replace_account_usage 

Source
pub fn replace_account_usage(
    db: &Db,
    entries: &BTreeMap<String, CachedAccountUsage>,
) -> Result<()>
Expand description

Overwrite the usage cache with entries: clear every row then insert the full map in one write txn, mirroring the poller’s whole-map write.