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,10 +1,10 @@
use brk_error::Result;
use brk_traversable::Traversable;
use brk_types::{BasisPoints16, Version};
use brk_types::{BasisPoints16, Indexes, Version};
use vecdb::{Database, Exit, Rw, StorageMode};
use crate::{
ComputeIndexes, indexes,
indexes,
internal::{PercentFromHeight, RatioU64Bp16},
outputs,
};
@@ -43,7 +43,7 @@ impl Vecs {
&mut self,
count: &CountVecs,
outputs_count: &outputs::CountVecs,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
self.taproot.compute_binary::<_, _, RatioU64Bp16>(

View File

@@ -1,8 +1,9 @@
use brk_error::Result;
use brk_indexer::Indexer;
use brk_types::Indexes;
use vecdb::Exit;
use crate::{blocks, outputs, prices, ComputeIndexes};
use crate::{blocks, outputs, prices};
use super::Vecs;
@@ -13,7 +14,7 @@ impl Vecs {
blocks: &blocks::Vecs,
outputs: &outputs::Vecs,
prices: &prices::Vecs,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
self.count

View File

@@ -1,17 +1,17 @@
use brk_error::Result;
use brk_indexer::Indexer;
use brk_types::StoredU64;
use brk_types::{Indexes, StoredU64};
use vecdb::Exit;
use super::Vecs;
use crate::{ComputeIndexes, blocks};
use crate::blocks;
impl Vecs {
pub(crate) fn compute(
&mut self,
indexer: &Indexer,
count_vecs: &blocks::CountVecs,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
let window_starts = count_vecs.window_starts();

View File

@@ -1,10 +1,10 @@
use brk_error::Result;
use brk_indexer::Indexer;
use brk_types::{Height, OutputType, Sats, TxOutIndex};
use brk_types::{Height, Indexes, OutputType, Sats, TxOutIndex};
use vecdb::{AnyStoredVec, AnyVec, Exit, ReadableVec, WritableVec, VecIndex};
use super::Vecs;
use crate::{ComputeIndexes, blocks, prices};
use crate::{blocks, prices};
impl Vecs {
pub(crate) fn compute(
@@ -12,7 +12,7 @@ impl Vecs {
indexer: &Indexer,
count_vecs: &blocks::CountVecs,
prices: &prices::Vecs,
starting_indexes: &ComputeIndexes,
starting_indexes: &Indexes,
exit: &Exit,
) -> Result<()> {
let window_starts = count_vecs.window_starts();