Skip to content

Commit dc94875

Browse files
author
Ludo Galabru
committed
fix: transfer tracking + empty blocks
1 parent 23c268a commit dc94875

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

components/ordhook-core/src/core/pipeline/processors/inscription_indexing.rs

+9-11
Original file line numberDiff line numberDiff line change
@@ -267,24 +267,22 @@ pub fn process_block(
267267
ctx,
268268
)?;
269269

270-
if !any_processable_transactions {
271-
return Ok(());
272-
}
273-
274270
let inner_ctx = if ordhook_config.logs.ordinals_internals {
275271
ctx.clone()
276272
} else {
277273
Context::empty()
278274
};
279275

280276
// Handle inscriptions
281-
let _ = augment_block_with_ordinals_inscriptions_data_and_write_to_db_tx(
282-
block,
283-
sequence_cursor,
284-
cache_l1,
285-
&inscriptions_db_tx,
286-
&inner_ctx,
287-
);
277+
if any_processable_transactions {
278+
let _ = augment_block_with_ordinals_inscriptions_data_and_write_to_db_tx(
279+
block,
280+
sequence_cursor,
281+
cache_l1,
282+
&inscriptions_db_tx,
283+
&inner_ctx,
284+
);
285+
}
288286

289287
// Handle transfers
290288
let _ = augment_block_with_ordinals_transfer_data(block, inscriptions_db_tx, true, &inner_ctx);

0 commit comments

Comments
 (0)