graphprotocol / support

Community support for the Hosted Service of The Graph
https://thegraph.com/
10 stars 3 forks source link

[Bug] `arbitrum-goerli` chain is unable to get logs of more than 1000 contracts per block at a time #109

Open 0xshippor opened 1 year ago

0xshippor commented 1 year ago

Hello,

I am trying to index contracts on arbitrum-goerli that are added to subgraph dynamically using templates. Once there are more than 1000 contracts added I will get following warning in hosted service and subgraph halts indexing. Trying again after eth_getLogs RPC call for block range: [25628130..25628130] failed (attempt #10) with result Err(Rpc(Error { code: InvalidParams, message: "1001 addresses specified in query, but only 1000 are allowed", data: None })), component: BlockStream

See my deployed subgraph here. Also, every time a new contract is added using templates a single PotentialNonBlockingLzApp is created. To query those use

{
  potentialNonBlockingLzApps (skip: 1000, first: 1000) {
    id
  }
}

and my subgraph indeed returns 1001 entities.

I assume arbitrum goerli node used under the hood does not allow to eth_getLogs of more than 1000 addresses at once. I have deployed same subgraph on fantom-testnet, fuji, mumbai and it is syncing without any issues.

As I don't see this issue on other chains I assume it is a bug.