global: snapshot

This commit is contained in:
nym21
2025-06-26 16:40:29 +02:00
parent 903e69ff77
commit b7f51b03bc
45 changed files with 3237 additions and 1982 deletions
+21 -3
View File
@@ -1,14 +1,32 @@
use std::path::Path;
use brk_core::Version;
use brk_core::{P2AAddressIndex, P2MSOutputIndex, Version};
use brk_store::Store;
use fjall::TransactionalKeyspace;
use jiff::Unit;
const _VERSION: Version = Version::ZERO;
#[derive(Clone)]
pub struct Stores {
// pub address_to_utxos_received: Store<AddressIndexOutputIndex, Unit>,
// pub address_to_utxos_spent: Store<AddressIndexOutputIndex, Unit>,
// pub p2aaddressindex_to_utxos_received: Store<P2AAddressIndex, Unit>,
// pub p2aaddressindex_to_utxos_sent: Store<P2AAddressIndex, Unit>,
// pub p2msoutputindex_to_utxos_received: Store<P2MSOutputIndex, Unit>,
// pub p2msoutputindex_to_utxos_sent: Store<P2MSOutputIndex, Unit>,
// pub p2pk33addressindex_to_utxos_received: Store<P2PK33AddressIndex, Unit>,
// pub p2pk33addressindex_to_utxos_sent: Store<P2PK33AddressIndex, Unit>,
// pub p2pk65addressindex_to_utxos_received: Store<P2PK65AddressIndex, Unit>,
// pub p2pk65addressindex_to_utxos_sent: Store<P2PK65AddressIndex, Unit>,
// pub p2pkhaddressindex_to_utxos_received: Store<P2PKHAddressIndex, Unit>,
// pub p2pkhaddressindex_to_utxos_sent: Store<P2PKHAddressIndex, Unit>,
// pub p2shaddressindex_to_utxos_received: Store<P2SHAddressIndex, Unit>,
// pub p2shaddressindex_to_utxos_sent: Store<P2SHAddressIndex, Unit>,
// pub p2traddressindex_to_utxos_received: Store<P2TRAddressIndex, Unit>,
// pub p2traddressindex_to_utxos_sent: Store<P2TRAddressIndex, Unit>,
// pub p2wpkhaddressindex_to_utxos_received: Store<P2WPKHAddressIndex, Unit>,
// pub p2wpkhaddressindex_to_utxos_sent: Store<P2WPKHAddressIndex, Unit>,
// pub p2wshaddressindex_to_utxos_received: Store<P2WSHAddressIndex, Unit>,
// pub p2wshaddressindex_to_utxos_sent: Store<P2WSHAddressIndex, Unit>,
}
impl Stores {