solana_accounts_db

Module storable_accounts

Source
Expand description

trait for abstracting underlying storage of pubkey and account pairs to be written

Structs§

StorableAccountsBySlot
holds slices of accounts being moved FROM a common source slot to ‘target_slot’
StorableAccountsCacher

Enums§

AccountForStorage
hold a ref to an account to store. The account could be represented in memory a few different ways

Traits§

StorableAccounts
abstract access to pubkey, account, slot, target_slot of either: a. (slot, &[&Pubkey, &ReadableAccount]) b. (slot, &[&Pubkey, &ReadableAccount, Slot]) (we will use this later) This trait avoids having to allocate redundant data when there is a duplicated slot parameter. All legacy callers do not have a unique slot per account to store.