Struct snarkvm_ledger_store::ConsensusStore
source · pub struct ConsensusStore<N: Network, C: ConsensusStorage<N>> { /* private fields */ }
Expand description
The consensus store.
Implementations§
source§impl<N: Network, C: ConsensusStorage<N>> ConsensusStore<N, C>
impl<N: Network, C: ConsensusStorage<N>> ConsensusStore<N, C>
sourcepub fn finalize_store(&self) -> &FinalizeStore<N, C::FinalizeStorage>
pub fn finalize_store(&self) -> &FinalizeStore<N, C::FinalizeStorage>
Returns the finalize store.
sourcepub fn block_store(&self) -> &BlockStore<N, C::BlockStorage>
pub fn block_store(&self) -> &BlockStore<N, C::BlockStorage>
Returns the block store.
sourcepub fn transaction_store(&self) -> &TransactionStore<N, C::TransactionStorage>
pub fn transaction_store(&self) -> &TransactionStore<N, C::TransactionStorage>
Returns the transaction store.
sourcepub fn transition_store(&self) -> &TransitionStore<N, C::TransitionStorage>
pub fn transition_store(&self) -> &TransitionStore<N, C::TransitionStorage>
Returns the transition store.
sourcepub fn start_atomic(&self)
pub fn start_atomic(&self)
Starts an atomic batch write operation.
sourcepub fn is_atomic_in_progress(&self) -> bool
pub fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
sourcepub fn atomic_checkpoint(&self)
pub fn atomic_checkpoint(&self)
Checkpoints the atomic batch.
sourcepub fn clear_latest_checkpoint(&self)
pub fn clear_latest_checkpoint(&self)
Clears the latest atomic batch checkpoint.
sourcepub fn atomic_rewind(&self)
pub fn atomic_rewind(&self)
Rewinds the atomic batch to the previous checkpoint.
sourcepub fn abort_atomic(&self)
pub fn abort_atomic(&self)
Aborts an atomic batch write operation.
sourcepub fn finish_atomic(&self) -> Result<()>
pub fn finish_atomic(&self) -> Result<()>
Finishes an atomic batch write operation.
Trait Implementations§
source§impl<N: Clone + Network, C: Clone + ConsensusStorage<N>> Clone for ConsensusStore<N, C>
impl<N: Clone + Network, C: Clone + ConsensusStorage<N>> Clone for ConsensusStore<N, C>
source§fn clone(&self) -> ConsensusStore<N, C>
fn clone(&self) -> ConsensusStore<N, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<N, C> RefUnwindSafe for ConsensusStore<N, C>where C: RefUnwindSafe, N: RefUnwindSafe,
impl<N, C> Send for ConsensusStore<N, C>
impl<N, C> Sync for ConsensusStore<N, C>
impl<N, C> Unpin for ConsensusStore<N, C>where C: Unpin, N: Unpin,
impl<N, C> UnwindSafe for ConsensusStore<N, C>where C: UnwindSafe, N: UnwindSafe,
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