@@ -20,7 +20,7 @@ use crate::{
20
20
hord:: {
21
21
db:: {
22
22
find_inscription_with_ordinal_number, find_inscriptions_at_wached_outpoint,
23
- find_latest_inscription_number , insert_entry_in_blocks,
23
+ insert_entry_in_blocks,
24
24
retrieve_satoshi_point_using_local_storage, store_new_inscription,
25
25
update_transfered_inscription, CompactedBlock ,
26
26
} ,
@@ -31,7 +31,7 @@ use crate::{
31
31
32
32
use self :: db:: {
33
33
find_inscription_with_id, open_readonly_hord_db_conn_rocks_db, remove_entry_from_blocks,
34
- remove_entry_from_inscriptions, TraversalResult , WatchedSatpoint ,
34
+ remove_entry_from_inscriptions, TraversalResult , WatchedSatpoint , find_latest_inscription_number_at_block_height ,
35
35
} ;
36
36
37
37
pub fn get_inscriptions_revealed_in_block (
@@ -249,7 +249,7 @@ pub fn update_storage_and_augment_bitcoin_block_with_inscription_reveal_data(
249
249
ordinals_events_indexes_to_discard. push_front ( ordinal_event_index) ;
250
250
} else {
251
251
inscription. inscription_number =
252
- match find_latest_inscription_number ( & inscription_db_conn, & ctx) {
252
+ match find_latest_inscription_number_at_block_height ( & block . block_identifier . index , & inscription_db_conn, & ctx) {
253
253
Ok ( None ) => 0 ,
254
254
Ok ( Some ( inscription_number) ) => inscription_number + 1 ,
255
255
Err ( e) => {
0 commit comments