mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 16:52:57 +08:00
@@ -23,7 +23,8 @@ use crate::{
|
||||
find_blessed_inscription_with_ordinal_number,
|
||||
find_latest_cursed_inscription_number_at_block_height,
|
||||
find_latest_inscription_number_at_block_height, format_satpoint_to_watch,
|
||||
update_inscriptions_with_block, LazyBlockTransaction, TraversalResult,
|
||||
update_inscriptions_with_block, update_sequence_metadata_with_block, LazyBlockTransaction,
|
||||
TraversalResult,
|
||||
},
|
||||
ord::height::Height,
|
||||
};
|
||||
@@ -495,7 +496,7 @@ pub fn augment_block_with_ordinals_inscriptions_data_and_write_to_db_tx(
|
||||
|
||||
// Store inscriptions
|
||||
update_inscriptions_with_block(block, inscriptions_db_tx, ctx);
|
||||
|
||||
update_sequence_metadata_with_block(block, inscriptions_db_tx, ctx);
|
||||
any_events
|
||||
}
|
||||
|
||||
|
||||
@@ -105,6 +105,9 @@ pub async fn download_sqlite_file(config: &Config, ctx: &Context) -> Result<(),
|
||||
let mut tx_err = None;
|
||||
while let Some(item) = stream.next().await {
|
||||
let chunk = item.or(Err(format!("Error while downloading file")))?;
|
||||
if chunk.is_empty() {
|
||||
continue;
|
||||
}
|
||||
progress += chunk.len() as i64;
|
||||
steps += chunk.len() as i64;
|
||||
if steps > 5_000_000 {
|
||||
|
||||
Reference in New Issue
Block a user