Skip to content

Commit d1109ac

Browse files
committed
chain/ethereum: bump block range size for composed subgraphs
1 parent b00658e commit d1109ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

chain/ethereum/src/chain.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ impl BlockStreamBuilder<Chain> for EthereumStreamBuilder {
204204
),
205205
};
206206

207+
let max_block_range_size = if is_using_subgraph_composition {
208+
ENV_VARS.max_block_range_size * 10
209+
} else {
210+
ENV_VARS.max_block_range_size
211+
};
212+
207213
Ok(Box::new(PollingBlockStream::new(
208214
chain_store,
209215
chain_head_update_stream,
@@ -214,7 +220,7 @@ impl BlockStreamBuilder<Chain> for EthereumStreamBuilder {
214220
start_blocks,
215221
reorg_threshold,
216222
logger,
217-
ENV_VARS.max_block_range_size,
223+
max_block_range_size,
218224
ENV_VARS.target_triggers_per_block_range,
219225
unified_api_version,
220226
subgraph_current_block,

0 commit comments

Comments
 (0)