pub struct BlockBodyProcessor { /* private fields */ }Implementations§
Source§impl BlockBodyProcessor
impl BlockBodyProcessor
pub fn validate_body_in_context( self: &Arc<Self>, block: &Block, ) -> BlockProcessResult<()>
Source§impl BlockBodyProcessor
impl BlockBodyProcessor
pub fn validate_body_in_isolation( self: &Arc<Self>, block: &Block, ) -> BlockProcessResult<u64>
Source§impl BlockBodyProcessor
impl BlockBodyProcessor
pub fn new( receiver: Receiver<BlockProcessingMessage>, sender: Sender<VirtualStateProcessingMessage>, thread_pool: Arc<ThreadPool>, db: Arc<DB>, statuses_store: Arc<RwLock<DbStatusesStore>>, ghostdag_store: Arc<DbGhostdagStore>, headers_store: Arc<DbHeadersStore>, block_transactions_store: Arc<DbBlockTransactionsStore>, body_tips_store: Arc<RwLock<DbTipsStore>>, reachability_service: MTReachabilityService<DbReachabilityStore>, coinbase_manager: CoinbaseManager, mass_calculator: MassCalculator, transaction_validator: TransactionValidator, window_manager: DbWindowManager, max_block_mass: u64, genesis: GenesisBlock, pruning_lock: SessionLock, notification_root: Arc<ConsensusNotificationRoot>, counters: Arc<ProcessingCounters>, storage_mass_activation_daa_score: u64, ) -> Self
pub fn worker(self: &Arc<BlockBodyProcessor>)
pub fn process_genesis(self: &Arc<BlockBodyProcessor>)
Auto Trait Implementations§
impl !Freeze for BlockBodyProcessor
impl !RefUnwindSafe for BlockBodyProcessor
impl Send for BlockBodyProcessor
impl Sync for BlockBodyProcessor
impl Unpin for BlockBodyProcessor
impl !UnwindSafe for BlockBodyProcessor
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