@@ -247,8 +247,27 @@ pub fn update_hord_db_and_augment_bitcoin_block(
247
247
let mut traversals_received = 0 ;
248
248
while let Ok ( ( transaction_identifier, traversal_result) ) = traversal_rx. recv ( ) {
249
249
traversals_received += 1 ;
250
- let traversal = traversal_result?;
251
- traversals. insert ( transaction_identifier, traversal) ;
250
+ match traversal_result {
251
+ Ok ( traversal) => {
252
+ ctx. try_log ( |logger| {
253
+ slog:: info!(
254
+ logger,
255
+ "Satoshi #{} was minted in block #{} at offset {} and was transferred {} times." ,
256
+ traversal. ordinal_number, traversal. get_ordinal_coinbase_height( ) , traversal. get_ordinal_coinbase_offset( ) , traversal. transfers
257
+ )
258
+ } ) ;
259
+ traversals. insert ( transaction_identifier, traversal) ;
260
+ }
261
+ Err ( e) => {
262
+ ctx. try_log ( |logger| {
263
+ slog:: error!(
264
+ logger,
265
+ "Unable to compute inscription's Satoshi from transaction {}: {e}" ,
266
+ transaction_identifier. hash
267
+ )
268
+ } ) ;
269
+ }
270
+ }
252
271
if traversals_received == expected_traversals {
253
272
break ;
254
273
}
@@ -446,9 +465,11 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_transfer_data(
446
465
447
466
// Question is: are inscriptions moving to a new output,
448
467
// burnt or lost in fees and transfered to the miner?
449
-
468
+
450
469
let post_transfer_output: Option < usize > = loop {
451
- if sats_out_offset + next_output_value > sats_in_offset + watched_satpoint. offset {
470
+ if sats_out_offset + next_output_value
471
+ > sats_in_offset + watched_satpoint. offset
472
+ {
452
473
break Some ( post_transfer_output_index) ;
453
474
}
454
475
sats_out_offset += next_output_value;
@@ -507,7 +528,8 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_transfer_data(
507
528
}
508
529
None => {
509
530
// Get Coinbase TX
510
- let offset = first_sat_post_subsidy + cumulated_fees + watched_satpoint. offset ;
531
+ let offset =
532
+ first_sat_post_subsidy + cumulated_fees + watched_satpoint. offset ;
511
533
let outpoint = format ! ( "{}:0" , & coinbase_txid[ 2 ..] ) ;
512
534
( outpoint, offset, None , None )
513
535
}
0 commit comments