mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 16:52:57 +08:00
fix: create dummy inscription for sats overflow
This commit is contained in:
@@ -1214,10 +1214,18 @@ pub fn retrieve_satoshi_point_using_local_storage(
|
||||
}
|
||||
|
||||
if sats_in == 0 {
|
||||
return Err(format!(
|
||||
"Transaction {} is originating from a non spending transaction",
|
||||
transaction_identifier.hash
|
||||
));
|
||||
ctx.try_log(|logger| {
|
||||
slog::error!(
|
||||
logger,
|
||||
"Transaction {} is originating from a non spending transaction",
|
||||
transaction_identifier.hash
|
||||
)
|
||||
});
|
||||
return Ok(TraversalResult {
|
||||
inscription_number: 0,
|
||||
ordinal_number: 0,
|
||||
transfers: 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ pub fn update_hord_db_and_augment_bitcoin_block(
|
||||
ctx.try_log(|logger| {
|
||||
slog::info!(
|
||||
logger,
|
||||
"Satoshi #{} was minted in block #{} at offset {} and was transferred {} times.",
|
||||
"Satoshi #{} was minted in block #{} at offset {} and was transferred {} times (progress: {traversals_received}/{expected_traversals}).",
|
||||
traversal.ordinal_number, traversal.get_ordinal_coinbase_height(), traversal.get_ordinal_coinbase_offset(), traversal.transfers
|
||||
)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user