Skip to content

Commit e6c5d0e

Browse files
author
Ludo Galabru
committed
fix: attempt to fix offset
1 parent 5df77d7 commit e6c5d0e

File tree

1 file changed

+3
-2
lines changed
  • components/chainhook-sdk/src/hord/db

1 file changed

+3
-2
lines changed

components/chainhook-sdk/src/hord/db/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -979,11 +979,12 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
979979
ctx.try_log(|logger| {
980980
slog::info!(
981981
logger,
982-
"Computing ordinal number for Satoshi point {} ({}:0 -> {}:{}) (block #{})",
982+
"Computing ordinal number for Satoshi point {} ({}:0 -> {}:{}/{}) (block #{})",
983983
transaction_identifier.hash,
984984
input_index,
985985
inscription_output_index,
986986
inscription_offset_intra_output,
987+
inscription_offset_cross_outputs,
987988
block_identifier.index
988989
)
989990
});
@@ -1158,7 +1159,7 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
11581159

11591160
let height = Height(ordinal_block_number.into());
11601161
let ordinal_number =
1161-
height.starting_sat().0 + ordinal_offset + inscription_offset_cross_outputs;
1162+
height.starting_sat().0 + ordinal_offset + inscription_offset_intra_output;
11621163

11631164
Ok(TraversalResult {
11641165
inscription_number,

0 commit comments

Comments
 (0)