streamingfast / substreams

Powerful Blockchain streaming data engine, based on StreamingFast Firehose technology.
Apache License 2.0
166 stars 46 forks source link

Allow `eth_call` with a custom gas limit #537

Open abhimanyusinghgaur opened 2 months ago

abhimanyusinghgaur commented 2 months ago

See: https://discord.com/channels/666749063386890256/982135810742697984/1272200000633569280

It seems there a bunch of contracts that are "broken". They hang for a huge amount of time before returning data or running out of gas. This is making the Substreams hang forever. A possible solution is to set a low amount of gas of eth_calls that you know are cheap and should return quickly. This way, you would simply get a timeout and you can handle this timeout in your code.