diff --git a/src/tasks/index.rs b/src/tasks/index.rs index 3882d06..b54676f 100644 --- a/src/tasks/index.rs +++ b/src/tasks/index.rs @@ -27,9 +27,7 @@ pub async fn index_chain(app: Arc, chain_id: u64) -> eyre::Result<()> { // Subscribe to new block with the WS client which uses an unbounded receiver, buffering the stream let mut blocks_stream = ws_rpc.subscribe_blocks().await?; - // Get the first block from the stream, backfilling any missing blocks between the latest block in the db - - //TODO: note in the comments that this fills the block + // Get the first block from the stream, backfilling any missing blocks from the latest block in the db to the chain head if let Some(latest_block) = blocks_stream.next().await { backfill_to_block(app.clone(), chain_id, &rpc, latest_block) .await?;