Struct bitcoin_blockman::BlockTreeDB
source · pub struct BlockTreeDB { /* private fields */ }
Expand description
| Access to the block database (blocks/index/) |
Implementations§
source§impl BlockTreeDB
impl BlockTreeDB
pub fn write_batch_sync( &mut self, file_info: &Vec<(i32, *const BlockFileInfo)>, n_last_file: i32, blockinfo: &Vec<*const BlockIndex> ) -> bool
pub fn write_flag(&mut self, name: &String, value: bool) -> bool
pub fn read_flag(&mut self, name: &String, value: &mut bool) -> bool
pub fn load_block_index_guts( &mut self, consensus_params: &ChainConsensusParams, insert_block_index: fn(_0: &u256) -> *mut BlockIndex ) -> bool
pub fn new( n_cache_size: usize, memory: Option<bool>, wipe: Option<bool> ) -> Self
pub fn read_block_file_info( &mut self, n_file: i32, info: &mut BlockFileInfo ) -> bool
pub fn write_reindexing(&mut self, reindexing: bool) -> bool
pub fn read_reindexing(&mut self, reindexing: &mut bool)
pub fn read_last_block_file(&mut self, n_file: &mut i32) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for BlockTreeDB
impl !Send for BlockTreeDB
impl !Sync for BlockTreeDB
impl Unpin for BlockTreeDB
impl !UnwindSafe for BlockTreeDB
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more