mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-06-14 16:39:27 +08:00
fix: transfer tracking + empty blocks
This commit is contained in:
@@ -267,10 +267,6 @@ pub fn process_block(
|
||||
ctx,
|
||||
)?;
|
||||
|
||||
if !any_processable_transactions {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let inner_ctx = if ordhook_config.logs.ordinals_internals {
|
||||
ctx.clone()
|
||||
} else {
|
||||
@@ -278,13 +274,15 @@ pub fn process_block(
|
||||
};
|
||||
|
||||
// Handle inscriptions
|
||||
let _ = augment_block_with_ordinals_inscriptions_data_and_write_to_db_tx(
|
||||
block,
|
||||
sequence_cursor,
|
||||
cache_l1,
|
||||
&inscriptions_db_tx,
|
||||
&inner_ctx,
|
||||
);
|
||||
if any_processable_transactions {
|
||||
let _ = augment_block_with_ordinals_inscriptions_data_and_write_to_db_tx(
|
||||
block,
|
||||
sequence_cursor,
|
||||
cache_l1,
|
||||
&inscriptions_db_tx,
|
||||
&inner_ctx,
|
||||
);
|
||||
}
|
||||
|
||||
// Handle transfers
|
||||
let _ = augment_block_with_ordinals_transfer_data(block, inscriptions_db_tx, true, &inner_ctx);
|
||||
|
||||
Reference in New Issue
Block a user