From 14cc6bbcb58a8d09251b047e28194d6efe9d8ae5 Mon Sep 17 00:00:00 2001 From: smartgoo Date: Sat, 24 Aug 2024 07:54:17 -0400 Subject: [PATCH] visibility of DbSelectedChainStore fields --- consensus/src/model/stores/mod.rs | 2 +- consensus/src/model/stores/selected_chain.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/consensus/src/model/stores/mod.rs b/consensus/src/model/stores/mod.rs index 9fda33296..3b1493cbc 100644 --- a/consensus/src/model/stores/mod.rs +++ b/consensus/src/model/stores/mod.rs @@ -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::()]); +pub struct U64Key([u8; size_of::()]); impl From for U64Key { fn from(value: u64) -> Self { diff --git a/consensus/src/model/stores/selected_chain.rs b/consensus/src/model/stores/selected_chain.rs index 4b73d52c9..1a18b6454 100644 --- a/consensus/src/model/stores/selected_chain.rs +++ b/consensus/src/model/stores/selected_chain.rs @@ -32,9 +32,9 @@ pub trait SelectedChainStore: SelectedChainStoreReader { #[derive(Clone)] pub struct DbSelectedChainStore { db: Arc, - access_hash_by_index: CachedDbAccess, - access_index_by_hash: CachedDbAccess, - access_highest_index: CachedDbItem, + pub access_hash_by_index: CachedDbAccess, + pub access_index_by_hash: CachedDbAccess, + pub access_highest_index: CachedDbItem, } impl DbSelectedChainStore {