pub struct ParentTransactionCache { /* private fields */ }Implementations§
Source§impl ParentTransactionCache
impl ParentTransactionCache
Sourcepub fn get_parent_transaction_hash(
&self,
receipt_id: &ReceiptId,
) -> Option<TransactionHash>
pub fn get_parent_transaction_hash( &self, receipt_id: &ReceiptId, ) -> Option<TransactionHash>
Returns the parent transaction hash for a given receipt id. If the receipt id is not found in the cache, it returns None. If the receipt id is found in the cache, it returns the parent transaction hash.
Trait Implementations§
Source§impl Debug for ParentTransactionCache
impl Debug for ParentTransactionCache
Source§impl LakeContextExt for ParentTransactionCache
impl LakeContextExt for ParentTransactionCache
Source§fn execute_before_run(&self, block: &mut Block)
fn execute_before_run(&self, block: &mut Block)
The process to scan the near_lake_primitives::Block and update the cache with the new transactions and first expected receipts. The cache is used to find the parent transaction hash for a given receipt id.
Source§fn execute_after_run(&self)
fn execute_after_run(&self)
We don’t need to do anything after the run.
Auto Trait Implementations§
impl !Freeze for ParentTransactionCache
impl RefUnwindSafe for ParentTransactionCache
impl Send for ParentTransactionCache
impl Sync for ParentTransactionCache
impl Unpin for ParentTransactionCache
impl UnwindSafe for ParentTransactionCache
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>
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 moreCreates a shared type from an unshared type.