global: snapshot

This commit is contained in:
nym21
2026-03-04 12:36:23 +01:00
parent 0d63724903
commit 91b7f86225
115 changed files with 5342 additions and 6124 deletions

View File

@@ -1,9 +1,10 @@
use brk_error::Result;
use brk_indexer::Indexer;
use brk_types::Indexes;
use vecdb::Exit;
use super::Vecs;
use crate::{blocks, indexes, ComputeIndexes};
use crate::{blocks, indexes};
impl Vecs {
pub(crate) fn compute(
@@ -11,7 +12,7 @@ impl Vecs {
indexer: &Indexer,
indexes: &indexes::Vecs,
blocks: &blocks::Vecs,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
self.spent

View File

@@ -1,9 +1,10 @@
use brk_error::Result;
use brk_indexer::Indexer;
use brk_types::Indexes;
use vecdb::Exit;
use super::Vecs;
use crate::{blocks, indexes, ComputeIndexes};
use crate::{blocks, indexes};
impl Vecs {
pub(crate) fn compute(
@@ -11,7 +12,7 @@ impl Vecs {
indexer: &Indexer,
indexes: &indexes::Vecs,
blocks: &blocks::Vecs,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
let window_starts = blocks.count.window_starts();

View File

@@ -1,11 +1,10 @@
use brk_error::Result;
use brk_indexer::Indexer;
use brk_types::{Sats, TxInIndex, TxIndex, TxOutIndex, Vout};
use brk_types::{Indexes, Sats, TxInIndex, TxIndex, TxOutIndex, Vout};
use tracing::info;
use vecdb::{AnyStoredVec, AnyVec, Database, Exit, WritableVec, ReadableVec, VecIndex};
use super::Vecs;
use crate::ComputeIndexes;
const BATCH_SIZE: usize = 2 * 1024 * 1024 * 1024 / size_of::<Entry>();
@@ -14,7 +13,7 @@ impl Vecs {
&mut self,
db: &Database,
indexer: &Indexer,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
// Validate computed versions against dependencies