Skip to content

Commit

Permalink
fix: attempt to fix offset
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jun 13, 2023
1 parent 5df77d7 commit e6c5d0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/chainhook-sdk/src/hord/db/mod.rs
Expand Up @@ -979,11 +979,12 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
ctx.try_log(|logger| {
slog::info!(
logger,
"Computing ordinal number for Satoshi point {} ({}:0 -> {}:{}) (block #{})",
"Computing ordinal number for Satoshi point {} ({}:0 -> {}:{}/{}) (block #{})",
transaction_identifier.hash,
input_index,
inscription_output_index,
inscription_offset_intra_output,
inscription_offset_cross_outputs,
block_identifier.index
)
});
Expand Down Expand Up @@ -1158,7 +1159,7 @@ pub fn retrieve_satoshi_point_using_lazy_storage(

let height = Height(ordinal_block_number.into());
let ordinal_number =
height.starting_sat().0 + ordinal_offset + inscription_offset_cross_outputs;
height.starting_sat().0 + ordinal_offset + inscription_offset_intra_output;

Ok(TraversalResult {
inscription_number,
Expand Down

0 comments on commit e6c5d0e

Please sign in to comment.