Skip to content

Commit

Permalink
visibility of DbSelectedChainStore fields
Browse files Browse the repository at this point in the history
  • Loading branch information
smartgoo committed Sep 14, 2024
1 parent 818c963 commit 14cc6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion consensus/src/model/stores/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub use kaspa_database::prelude::DB;
use std::fmt::Display;

#[derive(PartialEq, Eq, Clone, Copy, Hash)]
pub(crate) struct U64Key([u8; size_of::<u64>()]);
pub struct U64Key([u8; size_of::<u64>()]);

impl From<u64> for U64Key {
fn from(value: u64) -> Self {
Expand Down
6 changes: 3 additions & 3 deletions consensus/src/model/stores/selected_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ pub trait SelectedChainStore: SelectedChainStoreReader {
#[derive(Clone)]
pub struct DbSelectedChainStore {
db: Arc<DB>,
access_hash_by_index: CachedDbAccess<U64Key, Hash>,
access_index_by_hash: CachedDbAccess<Hash, u64>,
access_highest_index: CachedDbItem<u64>,
pub access_hash_by_index: CachedDbAccess<U64Key, Hash>,
pub access_index_by_hash: CachedDbAccess<Hash, u64>,
pub access_highest_index: CachedDbItem<u64>,
}

impl DbSelectedChainStore {
Expand Down

0 comments on commit 14cc6bb

Please sign in to comment.