global: snapshot

This commit is contained in:
nym21
2025-07-10 22:32:04 +02:00
parent 1bc739d07f
commit 029a85081b
24 changed files with 323 additions and 316 deletions

View File

@@ -31,7 +31,7 @@ use crate::{
use super::{
Indexes, fetched,
grouped::{ComputedValueVecsFromHeight, EagerVecBuilderOptions},
grouped::{ComputedValueVecsFromHeight, VecBuilderOptions},
indexes, transactions,
};
@@ -110,7 +110,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
compute_dollars,
)?,
height_to_opreturn_supply: EagerVec::forced_import(
@@ -126,7 +126,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
compute_dollars,
)?,
indexes_to_address_count: ComputedVecsFromHeight::forced_import(
@@ -136,7 +136,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
indexes_to_empty_address_count: ComputedVecsFromHeight::forced_import(
path,
@@ -145,7 +145,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
addresstype_to_height_to_address_count: AddressTypeToHeightToAddressCount::from(
ByAddressType {
@@ -260,7 +260,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2pk33: ComputedVecsFromHeight::forced_import(
path,
@@ -269,7 +269,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2pkh: ComputedVecsFromHeight::forced_import(
path,
@@ -278,7 +278,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2sh: ComputedVecsFromHeight::forced_import(
path,
@@ -287,7 +287,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2wpkh: ComputedVecsFromHeight::forced_import(
path,
@@ -296,7 +296,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2wsh: ComputedVecsFromHeight::forced_import(
path,
@@ -305,7 +305,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2tr: ComputedVecsFromHeight::forced_import(
path,
@@ -314,7 +314,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2a: ComputedVecsFromHeight::forced_import(
path,
@@ -323,7 +323,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
},
),
@@ -336,7 +336,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2pk33: ComputedVecsFromHeight::forced_import(
path,
@@ -345,7 +345,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2pkh: ComputedVecsFromHeight::forced_import(
path,
@@ -354,7 +354,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2sh: ComputedVecsFromHeight::forced_import(
path,
@@ -363,7 +363,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2wpkh: ComputedVecsFromHeight::forced_import(
path,
@@ -372,7 +372,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2wsh: ComputedVecsFromHeight::forced_import(
path,
@@ -381,7 +381,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2tr: ComputedVecsFromHeight::forced_import(
path,
@@ -390,7 +390,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
p2a: ComputedVecsFromHeight::forced_import(
path,
@@ -399,7 +399,7 @@ impl Vecs {
version + VERSION + Version::ZERO,
format,
computation,
EagerVecBuilderOptions::default().add_last(),
VecBuilderOptions::default().add_last(),
)?,
},
),