Skip to content

Commit bf6237c

Browse files
committed
use block num instead of u64
1 parent fecee44 commit bf6237c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/block_range_scanner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ struct Service<N: Network> {
310310
config: Config,
311311
provider: RootProvider<N>,
312312
subscriber: Option<mpsc::Sender<BlockRangeMessage>>,
313-
next_start_block: u64,
313+
next_start_block: BlockNumber,
314314
websocket_connected: bool,
315315
processed_count: u64,
316316
error_count: u64,
@@ -553,8 +553,8 @@ impl<N: Network> Service<N> {
553553

554554
async fn sync_historical_data(
555555
&mut self,
556-
start: u64,
557-
end: u64,
556+
start: BlockNumber,
557+
end: BlockNumber,
558558
) -> Result<(), BlockRangeScannerError> {
559559
let mut batch_count = 0;
560560

0 commit comments

Comments
 (0)