-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eth_call gas limit 30 million incompatible with graph-node 50 million requirement #705
Comments
Yes, we have limited the gas limit to a maximum of 30 million when calling the |
Maybe we could make It seems both Geth and Erigon (80% of Ethereum clients according to https://ethernodes.org/) have 50 million gas default eth_call gas limit.
I didn't check other clients. I'm not sure if Axon wants to be EVM compatible or EVM equivalent, but if the latter then it would be good to align with major Etheruem clients and graph-node so it's easier for developers to use tools they already use for other chains. |
After a short research of popular nodes (Geth, Nethermind, Erigon) it seems that each node has a custom Gas Limit for the I think Axon needs to decouple 2 configurations:
This way the existing tooling calling Axon RPCs will be compatible, and no protocol-level changes are introduced. |
Hello @ahonn. |
What happened:
Graph Node eth_call calls by default don't work with Axon because Axon default eth_call gas limit is 30 million.
What you expected to happen:
Axon default eth_call gas limit is at least 50 million.
How to reproduce it (as minimally and precisely as possible):
Run any subgraph on graph-node that does eth_calls or send eth_call with gas limit = 50 million. Axon will error.
Additional information
Source: https://github.com/graphprotocol/graph-node/blob/5009effd4b5947d45fb76506cdb34c5b9fcb4b5a/chain/ethereum/src/ethereum_adapter.rs#L77
Changing Axon gas limit to 50 million results in working graph-node. I've tested it with Moloch V2 events.
The text was updated successfully, but these errors were encountered: