Skip to content

Commit 4a47533

Browse files
committed
ethereum: Default max block range size 1000 for Alchemy compatibility
1 parent 292319a commit 4a47533

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chain/ethereum/src/block_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use graph::prelude::{
1515
lazy_static! {
1616
/// Maximum number of blocks to request in each chunk.
1717
static ref MAX_BLOCK_RANGE_SIZE: u64 = std::env::var("GRAPH_ETHEREUM_MAX_BLOCK_RANGE_SIZE")
18-
.unwrap_or("100000".into())
18+
.unwrap_or("1000".into())
1919
.parse::<u64>()
2020
.expect("invalid GRAPH_ETHEREUM_MAX_BLOCK_RANGE_SIZE");
2121

docs/environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ those.
2727
- `ETHEREUM_BLOCK_BATCH_SIZE`: number of Ethereum blocks to request in parallel
2828
(defaults to 50)
2929
- `GRAPH_ETHEREUM_MAX_BLOCK_RANGE_SIZE`: Maximum number of blocks to scan for
30-
triggers in each request (defaults to 100000).
30+
triggers in each request (defaults to 1000).
3131
- `GRAPH_ETHEREUM_MAX_EVENT_ONLY_RANGE`: Maximum range size for `eth.getLogs`
3232
requests that dont filter on contract address, only event signature.
3333
- `GRAPH_ETHEREUM_JSON_RPC_TIMEOUT`: Timeout for Ethereum JSON-RPC requests.
@@ -109,6 +109,6 @@ those.
109109
queries caused by mappings when processing blocks for a subgraph, and
110110
queries caused by subscriptions. Defaults to no logging.
111111
- `STORE_CONNECTION_POOL_SIZE`: How many simultaneous connections to allow to the store.
112-
Due to implementation details, this value may not be strictly adhered to. Defaults to 10.
112+
Due to implementation details, this value may not be strictly adhered to. Defaults to 10.
113113
- `GRAPH_LOG_POI_EVENTS`: Logs Proof of Indexing events deterministically.
114114
This may be useful for debugging.

0 commit comments

Comments
 (0)