Struct oasis_core_runtime::consensus::roothash::Pool
source · pub struct Pool { /* private fields */ }
Expand description
A pool of commitments that can be used to perform discrepancy detection.
The pool is not safe for concurrent use.
Implementations§
source§impl Pool
impl Pool
sourcepub fn add_executor_commitment(
&mut self,
blk: &Block,
nl: &impl NodeLookup,
commit: ExecutorCommitment,
msg_validator: &impl MessageValidator,
chain_context: &String,
) -> Result<()>
pub fn add_executor_commitment( &mut self, blk: &Block, nl: &impl NodeLookup, commit: ExecutorCommitment, msg_validator: &impl MessageValidator, chain_context: &String, ) -> Result<()>
Verifies and adds a new executor commitment to the pool.
sourcepub fn process_commitments(
&mut self,
did_timeout: bool,
) -> Result<&dyn OpenCommitment>
pub fn process_commitments( &mut self, did_timeout: bool, ) -> Result<&dyn OpenCommitment>
Performs a single round of commitment checks. If there are enough commitments in the pool, it performs discrepancy detection or resolution.
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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