global: snapshot

This commit is contained in:
nym21
2026-03-04 14:02:00 +01:00
parent 730e8bb4d4
commit 891f0dad9e
60 changed files with 300 additions and 643 deletions

View File

@@ -24,13 +24,13 @@ impl Vecs {
indexes: &indexes::Vecs,
) -> Result<Self> {
Ok(Self {
taproot: PercentFromHeight::forced_import_bp16(
taproot: PercentFromHeight::forced_import(
db,
"taproot_adoption",
version,
indexes,
)?,
segwit: PercentFromHeight::forced_import_bp16(
segwit: PercentFromHeight::forced_import(
db,
"segwit_adoption",
version,
@@ -49,14 +49,14 @@ impl Vecs {
self.taproot.compute_binary::<_, _, RatioU64Bp16>(
starting_indexes.height,
&count.p2tr.height,
&outputs_count.total_count.full.sum_cumulative.sum.0,
&outputs_count.total_count.full.sum,
exit,
)?;
self.segwit.compute_binary::<_, _, RatioU64Bp16>(
starting_indexes.height,
&count.segwit.height,
&outputs_count.total_count.full.sum_cumulative.sum.0,
&outputs_count.total_count.full.sum,
exit,
)?;