Skip to content

Commit a744825

Browse files
authored
fix: service boot sequence (#175)
1 parent cd2842e commit a744825

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/ordhook-core/src/core/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ pub fn should_sync_ordhook_db(
146146

147147

148148
// TODO: Gracefully handle Regtest, Testnet and Signet
149-
let (mut end_block, speed) = if start_block <= 200_000 {
149+
let (mut end_block, speed) = if start_block < 200_000 {
150150
(end_block.min(200_000), 10_000)
151-
} else if start_block <= 550_000 {
151+
} else if start_block < 550_000 {
152152
(end_block.min(550_000), 1_000)
153153
} else {
154154
(end_block, 100)

components/ordhook-core/src/service/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl Service {
470470
while let Some((start_block, end_block, speed)) =
471471
should_sync_ordhook_db(&self.config, &self.ctx)?
472472
{
473-
if end_block <= last_block_processed {
473+
if last_block_processed == end_block {
474474
break;
475475
}
476476
let blocks_post_processor = start_inscription_indexing_processor(

0 commit comments

Comments
 (0)