blockstore: add additional column family strings

Change-Id: I1de0882d972b4bb841200cb9c665fc7520eec362
This commit is contained in:
Richard Patel 2023-01-24 21:32:14 +00:00
parent 38e8203fed
commit f0af73b0d2
2 changed files with 27 additions and 1 deletions

View File

@ -25,6 +25,9 @@ const (
// Similar to a block header, but not cryptographically authenticated.
CfMeta = "meta"
// CfErasureMeta contains erasure coding metadata
CfErasureMeta = "erasure_meta"
// CfRoot is a single cell specifying the current root slot number
CfRoot = "root"
@ -37,8 +40,30 @@ const (
// CfCodeShred contains FEC shreds used to fix data shreds
CfCodeShred = "code_shred"
CfDeadSlots = "dead_slots"
// CfDeadSlots contains slots that have been marked as dead
CfDeadSlots = "dead_slots"
CfBlockHeight = "block_height"
CfBankHash = "bank_hashes"
CfTxStatus = "transaction_status"
CfTxStatusIndex = "transaction_status_index"
CfAddressSig = "address_signatures"
CfTxMemos = "transaction_memos"
CfRewards = "rewards"
CfBlockTime = "blocktime"
CfPerfSamples = "perf_samples"
CfProgramCosts = "program_costs"
CfOptimisticSlots = "optimistic_slots"
)
var (

View File

@ -18,6 +18,7 @@ type DB struct {
CfRoot *grocksdb.ColumnFamilyHandle
CfDataShred *grocksdb.ColumnFamilyHandle
CfCodeShred *grocksdb.ColumnFamilyHandle
CfTxStatus *grocksdb.ColumnFamilyHandle
}
// OpenReadOnly attaches to a blockstore in read-only mode.