pub struct MemoryEvidenceStore { /* private fields */ }Expand description
In-memory evidence store backed by a Vec and a committed-set.
Implementations§
Trait Implementations§
Source§impl Default for MemoryEvidenceStore
impl Default for MemoryEvidenceStore
Source§impl EvidenceStore for MemoryEvidenceStore
impl EvidenceStore for MemoryEvidenceStore
Source§fn put_evidence(&mut self, proof: EquivocationProof)
fn put_evidence(&mut self, proof: EquivocationProof)
Persist a new equivocation proof.
Source§fn get_pending(&self) -> Vec<EquivocationProof>
fn get_pending(&self) -> Vec<EquivocationProof>
Return all evidence that has not yet been marked as committed.
Source§fn mark_committed(&mut self, view: ViewNumber, validator: ValidatorId)
fn mark_committed(&mut self, view: ViewNumber, validator: ValidatorId)
Mark evidence for the given
(view, validator) as committed
(i.e. included in a finalized block).Source§fn all(&self) -> Vec<EquivocationProof>
fn all(&self) -> Vec<EquivocationProof>
Return every stored proof (committed or not).
Auto Trait Implementations§
impl Freeze for MemoryEvidenceStore
impl RefUnwindSafe for MemoryEvidenceStore
impl Send for MemoryEvidenceStore
impl Sync for MemoryEvidenceStore
impl Unpin for MemoryEvidenceStore
impl UnsafeUnpin for MemoryEvidenceStore
impl UnwindSafe for MemoryEvidenceStore
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