pub struct ConsensusStorage {Show 23 fields
pub statuses_store: Arc<RwLock<DbStatusesStore>>,
pub relations_stores: Arc<RwLock<Vec<DbRelationsStore>>>,
pub reachability_store: Arc<RwLock<DbReachabilityStore>>,
pub reachability_relations_store: Arc<RwLock<DbRelationsStore>>,
pub pruning_point_store: Arc<RwLock<DbPruningStore>>,
pub headers_selected_tip_store: Arc<RwLock<DbHeadersSelectedTipStore>>,
pub body_tips_store: Arc<RwLock<DbTipsStore>>,
pub pruning_utxoset_stores: Arc<RwLock<PruningUtxosetStores>>,
pub virtual_stores: Arc<RwLock<VirtualStores>>,
pub selected_chain_store: Arc<RwLock<DbSelectedChainStore>>,
pub ghostdag_stores: Arc<Vec<Arc<DbGhostdagStore>>>,
pub ghostdag_primary_store: Arc<DbGhostdagStore>,
pub headers_store: Arc<DbHeadersStore>,
pub block_transactions_store: Arc<DbBlockTransactionsStore>,
pub past_pruning_points_store: Arc<DbPastPruningPointsStore>,
pub daa_excluded_store: Arc<DbDaaStore>,
pub depth_store: Arc<DbDepthStore>,
pub utxo_diffs_store: Arc<DbUtxoDiffsStore>,
pub utxo_multisets_store: Arc<DbUtxoMultisetsStore>,
pub acceptance_data_store: Arc<DbAcceptanceDataStore>,
pub block_window_cache_for_difficulty: Arc<BlockWindowCacheStore>,
pub block_window_cache_for_past_median_time: Arc<BlockWindowCacheStore>,
pub lkg_virtual_state: LkgVirtualState,
/* private fields */
}Fields§
§statuses_store: Arc<RwLock<DbStatusesStore>>§relations_stores: Arc<RwLock<Vec<DbRelationsStore>>>§reachability_store: Arc<RwLock<DbReachabilityStore>>§reachability_relations_store: Arc<RwLock<DbRelationsStore>>§pruning_point_store: Arc<RwLock<DbPruningStore>>§headers_selected_tip_store: Arc<RwLock<DbHeadersSelectedTipStore>>§body_tips_store: Arc<RwLock<DbTipsStore>>§pruning_utxoset_stores: Arc<RwLock<PruningUtxosetStores>>§virtual_stores: Arc<RwLock<VirtualStores>>§selected_chain_store: Arc<RwLock<DbSelectedChainStore>>§ghostdag_stores: Arc<Vec<Arc<DbGhostdagStore>>>§ghostdag_primary_store: Arc<DbGhostdagStore>§headers_store: Arc<DbHeadersStore>§block_transactions_store: Arc<DbBlockTransactionsStore>§past_pruning_points_store: Arc<DbPastPruningPointsStore>§daa_excluded_store: Arc<DbDaaStore>§depth_store: Arc<DbDepthStore>§utxo_diffs_store: Arc<DbUtxoDiffsStore>§utxo_multisets_store: Arc<DbUtxoMultisetsStore>§acceptance_data_store: Arc<DbAcceptanceDataStore>§block_window_cache_for_difficulty: Arc<BlockWindowCacheStore>§block_window_cache_for_past_median_time: Arc<BlockWindowCacheStore>§lkg_virtual_state: LkgVirtualStateThe “last known good” virtual state. To be used by any logic which does not want to wait for a possible virtual state write to complete but can rather settle with the last known state
Implementations§
Auto Trait Implementations§
impl Freeze for ConsensusStorage
impl !RefUnwindSafe for ConsensusStorage
impl Send for ConsensusStorage
impl Sync for ConsensusStorage
impl Unpin for ConsensusStorage
impl !UnwindSafe for ConsensusStorage
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<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