mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-26 07:39:59 -07:00
global: final snapshot and fixes before release
This commit is contained in:
@@ -110,6 +110,12 @@ impl Indexer {
|
||||
debug!("Starting indexing...");
|
||||
|
||||
let last_blockhash = self.vecs.blocks.blockhash.collect_last();
|
||||
// Rollback sim
|
||||
// let last_blockhash = self
|
||||
// .vecs
|
||||
// .blocks
|
||||
// .blockhash
|
||||
// .collect_one_at(self.vecs.blocks.blockhash.len() - 2);
|
||||
debug!("Last block hash found.");
|
||||
|
||||
let (starting_indexes, prev_hash) = if let Some(hash) = last_blockhash {
|
||||
|
||||
@@ -49,7 +49,7 @@ impl Vecs {
|
||||
tracing::debug!("Opening vecs database...");
|
||||
let db = Database::open(&parent.join("vecs"))?;
|
||||
tracing::debug!("Setting min len...");
|
||||
db.set_min_len(PAGE_SIZE * 50_000_000)?;
|
||||
db.set_min_len(PAGE_SIZE * 60_000_000)?;
|
||||
|
||||
let (blocks, transactions, inputs, outputs, addrs, scripts) = parallel_import! {
|
||||
blocks = BlocksVecs::forced_import(&db, version),
|
||||
|
||||
Reference in New Issue
Block a user