Struct ckb_store::ChainDB [−][src]
pub struct ChainDB { /* fields omitted */ }
Expand description
TODO(doc): @quake
Implementations
TODO(doc): @quake
Open new ChainDB with freezer instance
TODO(doc): @quake
Return the chain spec hash
Return the chain spec hash
TODO(doc): @quake
TODO(doc): @quake
TODO(doc): @quake
write options set_sync = true
see RocksDB::write_sync
.
Force the data to go through the compaction in order to consolidate it
Trait Implementations
type Vector = DBPinnableSlice<'a>
type Vector = DBPinnableSlice<'a>
TODO(doc): @quake
TODO(doc): @quake
Return the bytes associated with a key value and the given column family.
TODO(doc): @quake
Return the provider trait default implementation
Get header by block header hash
Get block body by block header hash
Get unfrozen block from ky-store with given hash
Get all transaction-hashes in block body by block header hash
Get proposal short id by block header hash
Get block uncles by block header hash
Get block extension by block header hash
Get block ext by block header hash
Get block header hash by block number
Get block number by block header hash
TODO(doc): @quake
TODO(doc): @quake
Returns true if the transaction confirmed in main chain. Read more
Get commit transaction and block hash by its hash
TODO(doc): @quake
fn get_transaction_with_info(
&'a self,
hash: &Byte32
) -> Option<(TransactionView, TransactionInfo)>
fn get_transaction_with_info(
&'a self,
hash: &Byte32
) -> Option<(TransactionView, TransactionInfo)>
Gets transaction and associated info with correspond hash
Gets cell meta data with out_point
TODO(doc): @quake
Gets current epoch ext
Gets epoch ext by epoch index
Gets epoch index by epoch number
Gets epoch index by block hash
TODO(doc): @quake
Gets header by uncle header hash
TODO(doc): @quake
Gets cellbase by block hash
TODO(doc): @quake
TODO(doc): @quake
Auto Trait Implementations
impl !RefUnwindSafe for ChainDB
impl !UnwindSafe for ChainDB
Blanket Implementations
Mutably borrows from an owned value. Read more