global: snapshot pre cached change

This commit is contained in:
nym21
2026-04-10 10:27:07 +02:00
parent 95e5168244
commit 12aae503c9
8 changed files with 34 additions and 32 deletions

View File

@@ -65,8 +65,8 @@ impl Query {
#[inline]
pub(crate) fn block_hash_and_time(&self, height: Height) -> Result<(BlockHash, Timestamp)> {
let indexer = self.indexer();
let hash = indexer.vecs.blocks.cached_blockhash.collect_one(height).data()?;
let time = indexer.vecs.blocks.cached_timestamp.collect_one(height).data()?;
let hash = indexer.vecs.blocks.blockhash.collect_one(height).data()?;
let time = indexer.vecs.blocks.timestamp.collect_one(height).data()?;
Ok((hash, time))
}