Open 0xisk opened 2 years ago
Hi! Thanks for the write up. Two things - firstly Graph Node is currently moving towards relying on firehose based (rather than RPC based) indexing methods, so I don't think we would add an additional getLogs
method here. Secondly I don't know if there is sufficient demand for private blockchain use-cases (Graph Node is predominantly focused on data from public blockchains)
Just stumbled upon this and wanted to express an interest in this. We are also starting using Besu+Tessera+Graph Node.
Thank you all for amazing work on Graph Node so far!
@azf20 Would you be interested in receiving PR on this?
@iskdrews I'm planning on working on this next week. Just wanted to check if you already started working on this?
@mfolnovic yes I am happy to collaborate with you on implementing this, I need guidance on it. I was waiting for getting an approval on implementing this feature from TheGraph team.
@iskdrews I did a quick PoC to verify your proposal and it works. But at the moment, I'm stuck with:
https://discord.com/channels/905194001349627914/938504958909747250/977063311415853067 (Hyperledger Foundation) https://discord.com/channels/438038660412342282/791444480628490290/977054461061124097 (graphprotocol)
Any help would be appreciated! :)
@mfolnovic thanks much! I have sent you a friend request on Discord so we can start planning together on this. I as well posted this proposal in the ConsenSys Besu channel for getting feedback: https://discord.com/channels/697535391594446898/743193040197386451/976850555584540702
Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.
Do you want to request a feature or report a bug? Feature
What is the current behavior? TheGraph is not able to index the private transactions in the Hyperledger Besu EVM-based chain by enabling the privacy features.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior? The ability to use the subgraph with our graph-node to read and index the private transaction events in EVM-based private blockchains.
More explanations: In searching for the reasons that block the graph-node to read the events, I asked the following question in ConsenSys Quorum-Besu channel:
Then, got the following answer:
Basically, Besu is using a different EVM API method for the private transactions which is
priv_getLogs
but on the other hand, the graph-node is depending on theeth_getLogs
method on reading the events from any open and public JSON RPC equivalent network.So if this would be a useful feature to be added in the graph-node, am suggesting starting research on implementing it. After having a fast look into the code, I think the starting point would be from these scripts: