File tree 2 files changed +8
-5
lines changed
components/chainhook-sdk/src
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -966,10 +966,13 @@ pub fn retrieve_satoshi_point_using_lazy_storage(
966
966
return Err ( format ! ( "block #{ordinal_block_number} not in database" ) ) ;
967
967
}
968
968
Some ( block) => match block. find_and_serialize_transaction_with_txid ( & txid) {
969
- Some ( tx) => (
970
- tx. get_sat_ranges ( ) ,
971
- tx. get_cumulated_sats_in_until_input_index ( input_index) ,
972
- ) ,
969
+ Some ( tx) => {
970
+ let sats_ranges = tx. get_sat_ranges ( ) ;
971
+ let inscription_offset_cross_outputs =
972
+ tx. get_cumulated_sats_in_until_input_index ( input_index) ;
973
+ traversals_cache. insert ( ( ordinal_block_number, txid. clone ( ) ) , tx) ;
974
+ ( sats_ranges, inscription_offset_cross_outputs)
975
+ }
973
976
None => return Err ( format ! ( "block #{ordinal_block_number} not in database" ) ) ,
974
977
} ,
975
978
} ,
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ pub fn standardize_bitcoin_block(
446
446
} ,
447
447
timestamp : block. time as u32 ,
448
448
metadata : BitcoinBlockMetadata {
449
- network : network. clone ( )
449
+ network : network. clone ( ) ,
450
450
} ,
451
451
transactions,
452
452
} )
You can’t perform that action at this time.
0 commit comments