From 89fc9ba0b4fe11475ac89ca3978a7f75cb2fd217 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Fri, 27 Oct 2023 16:28:49 -0400 Subject: [PATCH] Make `SubstreamsBlockIngestor` start at chain's head if no cursor already exist Fixes #4942 --- chain/substreams/src/block_ingestor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/substreams/src/block_ingestor.rs b/chain/substreams/src/block_ingestor.rs index 83f31702c3f..0d165409453 100644 --- a/chain/substreams/src/block_ingestor.rs +++ b/chain/substreams/src/block_ingestor.rs @@ -144,7 +144,7 @@ impl BlockIngestor for SubstreamsBlockIngestor { mapper.cheap_clone(), package.modules.clone(), "map_blocks".to_string(), - vec![], + vec![-1], vec![], self.logger.cheap_clone(), self.metrics.cheap_clone(),