Add comment block for BankHash ledger column (#28357)

Add comment block for BankHash ledger column.
This commit is contained in:
Yueh-Hsuan Chiang 2022-10-13 11:41:58 -07:00 committed by GitHub
parent 9cbd00fdbc
commit 5df10173dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -169,7 +169,15 @@ pub mod columns {
pub struct ErasureMeta;
#[derive(Debug)]
/// The bank hash column
/// The bank hash column.
///
/// This column family persists the bank hash of a given slot. Note that
/// not every slot has a bank hash (e.g., a dead slot.)
///
/// The bank hash of a slot is derived from hashing the delta state of all
/// the accounts in a slot combined with the bank hash of its parent slot.
/// A bank hash of a slot essentially represents all the account states at
/// that slot.
///
/// index type: u64 (see `SlotColumn`)
/// value type: `blockstore_meta::FrozenHashVersioned`