|
1 | 1 | mod http_api;
|
2 | 2 | mod runloops;
|
3 | 3 |
|
4 |
| -use crate::cli::fetch_and_standardize_block; |
5 | 4 | use crate::config::{Config, PredicatesApi, PredicatesApiConfig};
|
6 | 5 | use crate::core::pipeline::processors::inscription_indexing::process_blocks;
|
7 | 6 | use crate::core::pipeline::processors::start_inscription_indexing_processor;
|
8 | 7 | use crate::core::pipeline::processors::transfers_recomputing::start_transfers_recomputing_processor;
|
9 | 8 | use crate::core::pipeline::{download_and_pipeline_blocks, PostProcessorCommand};
|
10 |
| -use crate::core::protocol::sequencing::update_storage_and_augment_bitcoin_block_with_inscription_transfer_data_tx; |
11 | 9 | use crate::core::{
|
12 | 10 | new_traversals_lazy_cache, parse_inscriptions_in_standardized_block,
|
13 | 11 | revert_hord_db_with_augmented_bitcoin_block, should_sync_hord_db,
|
14 | 12 | };
|
15 | 13 | use crate::db::{
|
16 |
| - find_all_inscriptions_in_block, find_latest_inscription_block_height, format_satpoint_to_watch, |
17 |
| - insert_entry_in_blocks, insert_entry_in_locations, open_readonly_hord_db_conn, |
18 |
| - open_readwrite_hord_db_conn, open_readwrite_hord_dbs, parse_satpoint_to_watch, |
19 |
| - remove_entries_from_locations_at_block_height, InscriptionHeigthHint, LazyBlock, initialize_hord_db, |
| 14 | + find_latest_inscription_block_height, initialize_hord_db, insert_entry_in_blocks, |
| 15 | + open_readonly_hord_db_conn, open_readwrite_hord_dbs, InscriptionHeigthHint, LazyBlock, |
20 | 16 | };
|
21 | 17 | use crate::scan::bitcoin::process_block_with_predicates;
|
22 | 18 | use crate::service::http_api::{load_predicates_from_redis, start_predicate_api_server};
|
23 | 19 | use crate::service::runloops::start_bitcoin_scan_runloop;
|
24 | 20 |
|
25 |
| -use chainhook_sdk::bitcoincore_rpc_json::bitcoin::hashes::hex::FromHex; |
26 |
| -use chainhook_sdk::bitcoincore_rpc_json::bitcoin::{Address, Network, Script}; |
27 | 21 | use chainhook_sdk::chainhooks::types::{
|
28 | 22 | BitcoinChainhookSpecification, ChainhookConfig, ChainhookFullSpecification,
|
29 | 23 | ChainhookSpecification,
|
30 | 24 | };
|
31 | 25 |
|
32 |
| -use chainhook_sdk::indexer::bitcoin::build_http_client; |
33 | 26 | use chainhook_sdk::observer::{
|
34 |
| - start_event_observer, BitcoinConfig, EventObserverConfig, HandleBlock, ObserverEvent, |
35 |
| -}; |
36 |
| -use chainhook_sdk::types::{ |
37 |
| - BitcoinBlockData, BitcoinNetwork, OrdinalInscriptionTransferData, OrdinalOperation, |
| 27 | + start_event_observer, EventObserverConfig, HandleBlock, ObserverEvent, |
38 | 28 | };
|
| 29 | +use chainhook_sdk::types::BitcoinBlockData; |
39 | 30 | use chainhook_sdk::utils::Context;
|
40 | 31 | use crossbeam_channel::unbounded;
|
41 | 32 | use redis::{Commands, Connection};
|
42 | 33 |
|
43 |
| -use std::collections::BTreeMap; |
44 | 34 | use std::sync::mpsc::{channel, Sender};
|
45 | 35 | use std::sync::Arc;
|
46 | 36 |
|
@@ -126,7 +116,8 @@ impl Service {
|
126 | 116 | }
|
127 | 117 | };
|
128 | 118 |
|
129 |
| - self.replay_transfers(775808, tip, Some(tx_replayer.clone())).await?; |
| 119 | + self.replay_transfers(775808, tip, Some(tx_replayer.clone())) |
| 120 | + .await?; |
130 | 121 | self.update_state(Some(tx_replayer.clone())).await?;
|
131 | 122 |
|
132 | 123 | // Catch-up with chain tip
|
|
0 commit comments