Struct chainhook_sdk::indexer::stacks::StacksBlockPool
source · pub struct StacksBlockPool { /* private fields */ }Implementations§
source§impl StacksBlockPool
impl StacksBlockPool
pub fn new() -> StacksBlockPool
pub fn process_block( &mut self, block: StacksBlockData, ctx: &Context ) -> Result<Option<StacksChainEvent>, String>
pub fn collect_and_prune_confirmed_blocks( &mut self, chain_event: &mut StacksChainEvent, ctx: &Context )
pub fn process_microblocks( &mut self, microblocks: Vec<StacksMicroblockData>, ctx: &Context ) -> Result<Option<StacksChainEvent>, String>
pub fn confirm_microblocks_for_block( &mut self, block: &StacksBlockData, diff_enabled: bool, ctx: &Context ) -> Result<(Option<StacksChainEvent>, Option<Vec<StacksMicroblockData>>), ChainSegmentIncompatibility>
pub fn get_microblocks_data( &self, anchor_block_identifier: &BlockIdentifier, chain_segment: &ChainSegment, ctx: &Context ) -> Vec<StacksMicroblockData>
pub fn get_confirmed_parent_microblocks( &self, block: &StacksBlockData, ctx: &Context ) -> Vec<StacksMicroblockData>
pub fn generate_block_chain_event( &mut self, canonical_segment: &ChainSegment, other_segment: &ChainSegment, ctx: &Context ) -> Result<StacksChainEvent, ChainSegmentIncompatibility>
pub fn generate_microblock_chain_event( &self, anchor_block_identifier: &BlockIdentifier, new_canonical_segment: &ChainSegment, previous_canonical_segment: &Option<ChainSegment>, ctx: &Context ) -> Result<Option<StacksChainEvent>, ChainSegmentIncompatibility>
Auto Trait Implementations§
impl RefUnwindSafe for StacksBlockPool
impl Send for StacksBlockPool
impl Sync for StacksBlockPool
impl Unpin for StacksBlockPool
impl UnwindSafe for StacksBlockPool
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.