pub struct PruningProofManager { /* private fields */ }Implementations§
Source§impl PruningProofManager
impl PruningProofManager
pub fn new( db: Arc<DB>, storage: &Arc<ConsensusStorage>, parents_manager: DbParentsManager, reachability_service: MTReachabilityService<DbReachabilityStore>, ghostdag_managers: Arc<Vec<DbGhostdagManager>>, traversal_manager: DbDagTraversalManager, window_manager: DbWindowManager, max_block_level: BlockLevel, genesis_hash: Hash, pruning_proof_m: u64, anticone_finalization_depth: u64, ghostdag_k: KType, is_consensus_exiting: Arc<AtomicBool>, ) -> Self
pub fn import_pruning_points(&self, pruning_points: &[Arc<Header>])
pub fn apply_proof( &self, proof: PruningPointProof, trusted_set: &[TrustedBlock], ) -> PruningImportResult<()>
pub fn populate_reachability_and_headers(&self, proof: &PruningPointProof)
pub fn validate_pruning_point_proof( &self, proof: &PruningPointProof, ) -> PruningImportResult<()>
pub fn get_pruning_point_proof(&self) -> Arc<PruningPointProof> ⓘ
pub fn get_pruning_point_anticone_and_trusted_data( &self, ) -> ConsensusResult<Arc<PruningPointTrustedData>>
Auto Trait Implementations§
impl !Freeze for PruningProofManager
impl !RefUnwindSafe for PruningProofManager
impl Send for PruningProofManager
impl Sync for PruningProofManager
impl Unpin for PruningProofManager
impl !UnwindSafe for PruningProofManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more