global: big snapshot

This commit is contained in:
nym21
2026-03-13 12:47:01 +01:00
parent c83955eea7
commit 2b31c7f6b7
158 changed files with 4961 additions and 6939 deletions
+4 -3
View File
@@ -18,7 +18,7 @@ pub mod minor;
use crate::{
blocks, indexes,
internal::{finalize_db, open_db},
internal::{finalize_db, open_db, CachedWindowStarts},
mining, prices,
};
@@ -39,6 +39,7 @@ impl Vecs {
parent_path: &Path,
parent_version: Version,
indexes: &indexes::Vecs,
cached_starts: &CachedWindowStarts,
) -> Result<Self> {
let db = open_db(parent_path, DB_NAME, 1_000_000)?;
let pools = pools();
@@ -52,12 +53,12 @@ impl Vecs {
if pool.slug.is_major() {
major_map.insert(
pool.slug,
major::Vecs::forced_import(&db, pool.slug, version, indexes)?,
major::Vecs::forced_import(&db, pool.slug, version, indexes, cached_starts)?,
);
} else {
minor_map.insert(
pool.slug,
minor::Vecs::forced_import(&db, pool.slug, version, indexes)?,
minor::Vecs::forced_import(&db, pool.slug, version, indexes, cached_starts)?,
);
}
}