Merge pull request #221 from hirosystems/develop

chore: release
This commit is contained in:
Ludo Galabru
2023-11-29 08:04:02 -05:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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 {