diff --git a/crates/brk_computer/src/stores.rs b/crates/brk_computer/src/stores.rs
index 08783268c..fa5f4df34 100644
--- a/crates/brk_computer/src/stores.rs
+++ b/crates/brk_computer/src/stores.rs
@@ -1,18 +1,19 @@
use std::{path::Path, thread};
use brk_core::{
- AddressData, AddressIndexToTypeIndedToOutputIndex, EmptyAddressData, GroupedByAddressType,
- Height, P2AAddressIndex, P2AAddressIndexOutputindex, P2PK33AddressIndex,
- P2PK33AddressIndexOutputindex, P2PK65AddressIndex, P2PK65AddressIndexOutputindex,
- P2PKHAddressIndex, P2PKHAddressIndexOutputindex, P2SHAddressIndex, P2SHAddressIndexOutputindex,
- P2TRAddressIndex, P2TRAddressIndexOutputindex, P2WPKHAddressIndex,
- P2WPKHAddressIndexOutputindex, P2WSHAddressIndex, P2WSHAddressIndexOutputindex, Result, Unit,
- Version,
+ AddressData, EmptyAddressData, GroupedByAddressType, Height, OutputIndex, OutputType,
+ P2AAddressIndex, P2AAddressIndexOutputindex, P2PK33AddressIndex, P2PK33AddressIndexOutputindex,
+ P2PK65AddressIndex, P2PK65AddressIndexOutputindex, P2PKHAddressIndex,
+ P2PKHAddressIndexOutputindex, P2SHAddressIndex, P2SHAddressIndexOutputindex, P2TRAddressIndex,
+ P2TRAddressIndexOutputindex, P2WPKHAddressIndex, P2WPKHAddressIndexOutputindex,
+ P2WSHAddressIndex, P2WSHAddressIndexOutputindex, Result, TypeIndex, Unit, Version,
};
use brk_store::{AnyStore, Store};
use fjall::{PersistMode, TransactionalKeyspace};
use rayon::prelude::*;
+use crate::vecs::stateful::AddressTypeToTypeIndexVec;
+
const VERSION: Version = Version::ZERO;
#[derive(Clone)]
@@ -487,11 +488,109 @@ impl Stores {
.map_err(|e| e.into())
}
+ pub fn get_addressdata(
+ &self,
+ address_type: OutputType,
+ type_index: TypeIndex,
+ ) -> Result