1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
mod cache; mod cell; pub mod data_loader_wrapper; mod db; mod snapshot; mod store; mod transaction; mod write_batch; pub use cache::StoreCache; pub use cell::{attach_block_cell, detach_block_cell}; pub use db::ChainDB; pub use snapshot::StoreSnapshot; pub use store::ChainStore; pub use transaction::StoreTransaction; pub use write_batch::StoreWriteBatch; use ckb_db::Col; pub const COLUMNS: u32 = 13; pub const COLUMN_INDEX: Col = "0"; pub const COLUMN_BLOCK_HEADER: Col = "1"; pub const COLUMN_BLOCK_BODY: Col = "2"; pub const COLUMN_BLOCK_UNCLE: Col = "3"; pub const COLUMN_META: Col = "4"; pub const COLUMN_TRANSACTION_INFO: Col = "5"; pub const COLUMN_BLOCK_EXT: Col = "6"; pub const COLUMN_BLOCK_PROPOSAL_IDS: Col = "7"; pub const COLUMN_BLOCK_EPOCH: Col = "8"; pub const COLUMN_EPOCH: Col = "9"; pub const COLUMN_CELL: Col = "10"; pub const COLUMN_UNCLES: Col = "11"; pub const COLUMN_CELL_DATA: Col = "12"; pub const META_TIP_HEADER_KEY: &[u8] = b"TIP_HEADER"; pub const META_CURRENT_EPOCH_KEY: &[u8] = b"CURRENT_EPOCH";