just rwd monerod db schema

This commit is contained in:
Someone Else 2023-02-13 22:21:46 +01:00
parent 66f368683a
commit c6d1b62a35

View file

@ -1,8 +1,38 @@
//! //!
//! RocksDB implementation. //! RocksDB implementation.
//! //!
//! Database structure: //! Database Schema:
//! ------------------------------------- //! ---------------------------------------
//! Column | Key | Data //! Column | Key | Data
//! ------------------------------------- //! ---------------------------------------
//! //! *block*------------------------------------------------------
//!
//! blocks height {blob}
//! heights hash height
//! b_metadata height {b_metdata}
//!
//! *transactions*-----------------------------------------------
//!
//! tx_prefix tx ID {blob}
//! tx_prunable tx ID {blob}
//! tx_hash tx ID hash
//! tx_opti_h hash height
//! tx_outputs tx ID {amount,output,indices}
//!
//! *outputs*----------------------------------------------------
//!
//! ouputs_txs op ID {tx hash, l_index}
//! outputs_am amount {amount output index, metdata}
//!
//! *spent keys*--------------------------------------------------
//!
//! spent_keys hash well... obvious?
//!
//! *tx pool*------------------------------------------------------
//!
//! txp_meta hash {txp_metadata}
//! txp_blob hash {blob}
//!
//! *alt blocks*----------------------------------------------------
//!
//! alt_blocks hash {bock data, block blob}