mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-12 18:58:36 -07:00
indexer: rename some stores
This commit is contained in:
@@ -52,68 +52,68 @@ impl Stores {
|
|||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2aaddressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2aaddressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2aaddressindex_with_outputindex_to_output_status",
|
"p2aaddressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2pk33addressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2pk33addressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2pk33addressindex_with_outputindex_to_output_status",
|
"p2pk33addressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2pk65addressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2pk65addressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2pk65addressindex_with_outputindex_to_output_status",
|
"p2pk65addressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2pkhaddressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2pkhaddressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2pkhaddressindex_with_outputindex_to_output_status",
|
"p2pkhaddressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2shaddressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2shaddressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2shaddressindex_with_outputindex_to_output_status",
|
"p2shaddressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2traddressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2traddressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2traddressindex_with_outputindex_to_output_status",
|
"p2traddressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2wpkhaddressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2wpkhaddressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2wpkhaddressindex_with_outputindex_to_output_status",
|
"p2wpkhaddressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
let p2wshaddressindex_with_outputindex_to_output_status = scope.spawn(|| {
|
let p2wshaddressindex_with_outputindex = scope.spawn(|| {
|
||||||
Store::import(
|
Store::import(
|
||||||
path,
|
path,
|
||||||
"p2wshaddressindex_with_outputindex_to_output_status",
|
"p2wshaddressindex_with_outputindex",
|
||||||
version + VERSION + Version::ZERO,
|
version + VERSION + Version::ZERO,
|
||||||
None,
|
Some(None),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -122,30 +122,14 @@ impl Stores {
|
|||||||
blockhashprefix_to_height: blockhashprefix_to_height.join().unwrap()?,
|
blockhashprefix_to_height: blockhashprefix_to_height.join().unwrap()?,
|
||||||
txidprefix_to_txindex: txidprefix_to_txindex.join().unwrap()?,
|
txidprefix_to_txindex: txidprefix_to_txindex.join().unwrap()?,
|
||||||
addresstype_to_typeindex_with_outputindex: GroupedByAddressType {
|
addresstype_to_typeindex_with_outputindex: GroupedByAddressType {
|
||||||
p2pk65: p2pk65addressindex_with_outputindex_to_output_status
|
p2pk65: p2pk65addressindex_with_outputindex.join().unwrap()?,
|
||||||
.join()
|
p2pk33: p2pk33addressindex_with_outputindex.join().unwrap()?,
|
||||||
.unwrap()?,
|
p2pkh: p2pkhaddressindex_with_outputindex.join().unwrap()?,
|
||||||
p2pk33: p2pk33addressindex_with_outputindex_to_output_status
|
p2sh: p2shaddressindex_with_outputindex.join().unwrap()?,
|
||||||
.join()
|
p2wpkh: p2wpkhaddressindex_with_outputindex.join().unwrap()?,
|
||||||
.unwrap()?,
|
p2wsh: p2wshaddressindex_with_outputindex.join().unwrap()?,
|
||||||
p2pkh: p2pkhaddressindex_with_outputindex_to_output_status
|
p2tr: p2traddressindex_with_outputindex.join().unwrap()?,
|
||||||
.join()
|
p2a: p2aaddressindex_with_outputindex.join().unwrap()?,
|
||||||
.unwrap()?,
|
|
||||||
p2sh: p2shaddressindex_with_outputindex_to_output_status
|
|
||||||
.join()
|
|
||||||
.unwrap()?,
|
|
||||||
p2wpkh: p2wpkhaddressindex_with_outputindex_to_output_status
|
|
||||||
.join()
|
|
||||||
.unwrap()?,
|
|
||||||
p2wsh: p2wshaddressindex_with_outputindex_to_output_status
|
|
||||||
.join()
|
|
||||||
.unwrap()?,
|
|
||||||
p2tr: p2traddressindex_with_outputindex_to_output_status
|
|
||||||
.join()
|
|
||||||
.unwrap()?,
|
|
||||||
p2a: p2aaddressindex_with_outputindex_to_output_status
|
|
||||||
.join()
|
|
||||||
.unwrap()?,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user