Skip to content

Commit 84aa6ce

Browse files
author
Ludo Galabru
committed
fix: create dummy inscription for sats overflow
1 parent cb01eb5 commit 84aa6ce

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

components/chainhook-event-observer/src/hord/db/mod.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -1214,10 +1214,18 @@ pub fn retrieve_satoshi_point_using_local_storage(
12141214
}
12151215

12161216
if sats_in == 0 {
1217-
return Err(format!(
1218-
"Transaction {} is originating from a non spending transaction",
1219-
transaction_identifier.hash
1220-
));
1217+
ctx.try_log(|logger| {
1218+
slog::error!(
1219+
logger,
1220+
"Transaction {} is originating from a non spending transaction",
1221+
transaction_identifier.hash
1222+
)
1223+
});
1224+
return Ok(TraversalResult {
1225+
inscription_number: 0,
1226+
ordinal_number: 0,
1227+
transfers: 0,
1228+
});
12211229
}
12221230
}
12231231
}

components/chainhook-event-observer/src/hord/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub fn update_hord_db_and_augment_bitcoin_block(
252252
ctx.try_log(|logger| {
253253
slog::info!(
254254
logger,
255-
"Satoshi #{} was minted in block #{} at offset {} and was transferred {} times.",
255+
"Satoshi #{} was minted in block #{} at offset {} and was transferred {} times (progress: {traversals_received}/{expected_traversals}).",
256256
traversal.ordinal_number, traversal.get_ordinal_coinbase_height(), traversal.get_ordinal_coinbase_offset(), traversal.transfers
257257
)
258258
});

0 commit comments

Comments
 (0)