Skip to content

Commit

Permalink
fix: overriden inscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Aug 1, 2023
1 parent 3096ad3 commit 25c6441
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions components/hord-cli/src/hord/mod.rs
Expand Up @@ -1473,7 +1473,7 @@ pub fn update_hord_db_and_augment_bitcoin_block_v3(
ctx.try_log(|logger| {
info!(
logger,
"Block #{} processed through hord, revealing {} inscriptions [{}]",
"Block #{} revealed {} inscriptions [{}]",
new_block.block_identifier.index,
inscriptions_revealed.len(),
inscriptions_revealed.join(", ")
Expand Down Expand Up @@ -1723,7 +1723,7 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_reveal_data_tx(
Some(traversal) => traversal,
None => {
ctx.try_log(|logger| {
slog::info!(
info!(
logger,
"Unable to retrieve cached inscription data for inscription {}",
new_tx.transaction_identifier.hash
Expand Down Expand Up @@ -1761,7 +1761,7 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_reveal_data_tx(
};
} else {
ctx.try_log(|logger| {
slog::warn!(
warn!(
logger,
"Database corrupted, skipping cursed inscription => {:?} / {:?}",
traversal,
Expand Down Expand Up @@ -1815,7 +1815,7 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_reveal_data_tx(

inscription.inscription_number = inscription_number;
ctx.try_log(|logger| {
slog::info!(
info!(
logger,
"Inscription {} (#{}) detected on Satoshi {} (block {}, {} transfers)",
inscription.inscription_id,
Expand All @@ -1839,7 +1839,7 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_reveal_data_tx(
OrdinalOperation::InscriptionRevealed(inscription_data)
| OrdinalOperation::CursedInscriptionRevealed(inscription_data) => {
ctx.try_log(|logger| {
slog::info!(
info!(
logger,
"Inscription {} (#{}) transitioned from blessed to cursed",
inscription_data.inscription_id,
Expand Down
4 changes: 2 additions & 2 deletions components/hord-cli/src/service/mod.rs
Expand Up @@ -64,7 +64,7 @@ impl Service {
let hord_config = self.config.get_hord_config();

// Sleep
std::thread::sleep(std::time::Duration::from_secs(180));
// std::thread::sleep(std::time::Duration::from_secs(180));

// Force rebuild
// {
Expand Down Expand Up @@ -126,7 +126,7 @@ impl Service {

while let Some((start_block, end_block)) = should_sync_hord_db(&self.config, &self.ctx)?
{
let end_block = end_block.min(start_block + 256);
// let end_block = end_block.min(start_block + 256);
info!(
self.ctx.expect_logger(),
"Indexing inscriptions from block #{start_block} to block #{end_block}"
Expand Down

0 comments on commit 25c6441

Please sign in to comment.