global: veccached change

This commit is contained in:
nym21
2026-04-10 11:30:29 +02:00
parent 12aae503c9
commit 286256ebf0
118 changed files with 579 additions and 900 deletions
+3 -3
View File
@@ -7,8 +7,8 @@ use vecdb::{BinaryTransform, Database, Exit, ReadableVec, Rw, StorageMode, Versi
use crate::{
blocks, indexes,
internal::{
AmountPerBlockCumulativeRolling, CachedWindowStarts, MaskSats, PercentRollingWindows,
RatioU64Bp16,
AmountPerBlockCumulativeRolling, MaskSats, PercentRollingWindows, RatioU64Bp16,
WindowStartVec, Windows,
},
mining, prices,
};
@@ -33,7 +33,7 @@ impl Vecs {
slug: PoolSlug,
version: Version,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
cached_starts: &Windows<&WindowStartVec>,
) -> Result<Self> {
let suffix = |s: &str| format!("{}_{s}", slug);
+2 -2
View File
@@ -5,7 +5,7 @@ use vecdb::{Database, Exit, ReadableVec, Rw, StorageMode, Version};
use crate::{
blocks, indexes,
internal::{CachedWindowStarts, PerBlockCumulativeRolling, PercentPerBlock, RatioU64Bp16},
internal::{PerBlockCumulativeRolling, PercentPerBlock, RatioU64Bp16, WindowStartVec, Windows},
};
#[derive(Traversable)]
@@ -23,7 +23,7 @@ impl Vecs {
slug: PoolSlug,
version: Version,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
cached_starts: &Windows<&WindowStartVec>,
) -> Result<Self> {
let suffix = |s: &str| format!("{}_{s}", slug);
+2 -2
View File
@@ -19,7 +19,7 @@ pub use pool_heights::PoolHeights;
use crate::{
blocks, indexes,
internal::{
CachedWindowStarts,
WindowStartVec, Windows,
db_utils::{finalize_db, open_db},
},
mining, prices,
@@ -44,7 +44,7 @@ impl Vecs {
parent_path: &Path,
parent_version: Version,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
cached_starts: &Windows<&WindowStartVec>,
) -> Result<Self> {
let db = open_db(parent_path, DB_NAME, 100_000)?;
let pools = pools();