Skip to content

Commit

Permalink
chain/ethereum: bump block range size for composed subgraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 committed Sep 12, 2024
1 parent 65a4038 commit deaa413
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chain/ethereum/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ impl BlockStreamBuilder<Chain> for EthereumStreamBuilder {
),
};

let max_block_range_size = if is_using_subgraph_composition {
ENV_VARS.max_block_range_size * 10
} else {
ENV_VARS.max_block_range_size
};

Ok(Box::new(PollingBlockStream::new(
chain_store,
chain_head_update_stream,
Expand All @@ -214,7 +220,7 @@ impl BlockStreamBuilder<Chain> for EthereumStreamBuilder {
start_blocks,
reorg_threshold,
logger,
ENV_VARS.max_block_range_size,
max_block_range_size,
ENV_VARS.target_triggers_per_block_range,
unified_api_version,
subgraph_current_block,
Expand Down

0 comments on commit deaa413

Please sign in to comment.