solana_accounts_db

Module ancient_append_vecs

source
Expand description

helpers for squashing append vecs into ancient append vecs an ancient append vec is:

  1. a slot that is older than an epoch old
  2. multiple ‘slots’ squashed into a single older (ie. ancient) slot for convenience and performance Otherwise, an ancient append vec is the same as any other append vec

Structs§

  • reference a set of accounts to store The accounts may have to be split between 2 storages (primary and overflow) if there is not enough room in the primary storage. The ‘store’ functions need data stored in a slice of specific type. We need 1-2 of these slices constructed based on available bytes and individual account sizes. The slice arithmetic across both hashes and account data gets messy. So, this struct abstracts that.

Enums§

  • a set of accounts need to be stored. If there are too many to fit in ‘Primary’, the rest are put in ‘Overflow’

Functions§