@@ -14,7 +14,7 @@ use crate::core::protocol::inscription_sequencing::SequenceCursor;
14
14
use crate :: core:: { new_traversals_lazy_cache, should_sync_ordhook_db} ;
15
15
use crate :: db:: {
16
16
delete_data_in_ordhook_db, insert_entry_in_blocks,
17
- insert_new_inscriptions_from_block_in_inscriptions_and_locations ,
17
+ update_inscriptions_with_block , update_locations_with_block ,
18
18
open_readwrite_ordhook_db_conn, open_readwrite_ordhook_db_conn_rocks_db,
19
19
open_readwrite_ordhook_dbs, LazyBlock , LazyBlockTransaction ,
20
20
} ;
@@ -583,7 +583,13 @@ fn chainhook_sidecar_mutate_ordhook_db(command: HandleBlock, config: &Config, ct
583
583
) ;
584
584
let _ = blocks_db_rw. flush ( ) ;
585
585
586
- insert_new_inscriptions_from_block_in_inscriptions_and_locations (
586
+ update_inscriptions_with_block (
587
+ & block,
588
+ & inscriptions_db_conn_rw,
589
+ & ctx,
590
+ ) ;
591
+
592
+ update_locations_with_block (
587
593
& block,
588
594
& inscriptions_db_conn_rw,
589
595
& ctx,
@@ -690,7 +696,12 @@ pub fn chainhook_sidecar_mutate_blocks(
690
696
let _ = blocks_db_rw. flush ( ) ;
691
697
692
698
if cache. processed_by_sidecar {
693
- insert_new_inscriptions_from_block_in_inscriptions_and_locations (
699
+ update_inscriptions_with_block (
700
+ & cache. block ,
701
+ & inscriptions_db_tx,
702
+ & ctx,
703
+ ) ;
704
+ update_locations_with_block (
694
705
& cache. block ,
695
706
& inscriptions_db_tx,
696
707
& ctx,
0 commit comments