Skip to content

Commit 679bbf6

Browse files
committed
ref: update when 'start block before conf. tip' log is shown
1 parent e17c724 commit 679bbf6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/block_range_scanner.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,14 @@ impl<N: Network> Service<N> {
425425
});
426426

427427
return Ok(());
428+
} else if start_block < confirmed_tip {
429+
info!(
430+
start_block = start_block,
431+
confirmed_tip = confirmed_tip,
432+
"Start block is before confirmed tip, syncing historical data"
433+
);
428434
}
429435

430-
info!(start_block = start_block, end_block = confirmed_tip, "Syncing historical data");
431-
432-
// This task runs independently, accumulating new blocks while wehistorical data is syncing
433436
tokio::spawn(async move {
434437
while start_block < confirmed_tip {
435438
Self::stream_historical_blocks(

0 commit comments

Comments
 (0)