-
Notifications
You must be signed in to change notification settings - Fork 4
Graph Node v0.20.0 makes eth_getBlockByNumber calls - it should be only eth_getBlockByHash #269
Comments
Unfortunately that's the expected behavior. The way it works is that you just need to remove the env var completely. |
So is expected to see eth_getBlockByNumber calls even though the node has EIP 1898? Shouldn't be only calls eth_getBlockByHash? Other asked, why the mix then? |
Having that env var present, enables call by number function. |
Not really, it calls it anyway. That's what I also said in my initial message. I started without any variable. Then I noticed that eth_getBlockByNumber is used. Then I stopped, deleted DB, created new one, added the env var and started again. Same behaviour. |
Hi @Chainode and @trader-payne. @trader-payne is correct you should entirely unset For full disclosure, we have a determinsim bug which will be fixed by this PR graphprotocol/graph-node#2062. Until this is fixed and the affected subgraphs reindexed, we are aware that inconsistencies may happen. The general policy is that inconsistencies due to graph node bugs should not lead to slashing. |
Hi @leoyvens - yes, is not about using GRAPH_ETH_CALL_BY_NUMBER as I didn't planed to use it anyway. I used that only as a test to see if it will make a difference, as specified in the issue. This got clarified in the meantime. The determinism bug is something independent from call by the number. I think it would be interesting to hear more about how the slashing actually works at protocol level and when it gets triggered and how we proceed in undesired slashing cases. Maybe governance is here an idea. |
The current graph node v0.20.0 makes eth_getBlockByNumber calls which should actually not happen, especially not per default as an Ethereum node with EIP-1898 is required for Mainnet to avoid unpredictable subgraph failures, inconsistent indexing results - implicit slashing.
Even setting GRAPH_ETH_CALL_BY_NUMBER to false didn't changed this.
export GRAPH_ETH_CALL_BY_NUMBER=false
Expected is to see only eth_getBlockByHash calls. Otherwise what would be the purpose of using an Ethereum node with EIP-1898.
The text was updated successfully, but these errors were encountered: