Struct bitcoin_indexed_chain::CoinStatsIndex
source · pub struct CoinStatsIndex { /* private fields */ }
Expand description
| CoinStatsIndex maintains statistics | on the UTXO set. |
Implementations§
source§impl CoinStatsIndex
impl CoinStatsIndex
pub fn getdb(&self) -> &mut BaseIndexDB
pub fn get_name(&self) -> *const u8
sourcepub fn new(
n_cache_size: usize,
memory: Option<bool>,
wipe: Option<bool>
) -> Self
pub fn new( n_cache_size: usize, memory: Option<bool>, wipe: Option<bool> ) -> Self
| Constructs the index, which becomes | available to be queried. |
pub fn write_block(&mut self, block: &Block, pindex: *const BlockIndex) -> bool
pub fn rewind( &mut self, current_tip: *const BlockIndex, new_tip: *const BlockIndex ) -> bool
sourcepub fn look_up_stats(
&self,
block_index: *const BlockIndex,
coins_stats: &mut CoinsStats
) -> bool
pub fn look_up_stats( &self, block_index: *const BlockIndex, coins_stats: &mut CoinsStats ) -> bool
| Look up stats for a specific block using | CBlockIndex |
pub fn init(&mut self) -> bool
sourcepub fn reverse_block(
&mut self,
block: &Block,
pindex: *const BlockIndex
) -> bool
pub fn reverse_block( &mut self, block: &Block, pindex: *const BlockIndex ) -> bool
| Reverse a single block as part of a reorg |
Auto Trait Implementations§
impl !RefUnwindSafe for CoinStatsIndex
impl !Send for CoinStatsIndex
impl !Sync for CoinStatsIndex
impl Unpin for CoinStatsIndex
impl !UnwindSafe for CoinStatsIndex
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