-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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_subscriptionLogs with topics filter problem #4030
Comments
I think subscription to logs not supported: https://github.com/ledgerwatch/erigon/tree/devel/cmd/rpcdaemon#rpc-implementation-status |
But subscription to logs without topics - works great
This works. But when I add |
Don’t know, maybe bug. Need somebody to check. |
Could you please try instead of |
I'm running similar issues with my erigon node running on Ubuntu 22.04 on commit aa79853. If I only have one log subscription it works fine, but running multiple at once with different topic/address queries causes unexpected behaviour. I'm testing using go-ethereum with this simple program, which subscribes to logs with the option to filter by address
When I run this program multiple time concurrently, I get the following behaviour:
|
This is a blocking bug for us to use Chainlink with Erigon. We require topic filtering on log streams. |
Closing issue as fix is merged. |
I'm not sure this is fixed, as we continue to see this issue. I cannot use eth_getLogs with any filters (address, topics). I can only get the full bloom from a log range. It's not the end of the world as I can filter in the client, but it adds a lot of latency and bandwidth requirements which in turn make it lose its advantage against geth. |
Hi @rcastellaj, could you send some examples over of what you're running and I can take another look, thanks. |
@hexoscott This looks related to a similar issue with examples of usage and intermittent/different responses being generated: #6598 |
I don't believe this was fixed. As @samsondav said, this is required for chainlink. I am running erigon v2.36.0 and I get the following error when trying to subscribe to a topic on goerli:
My system info: |
I'm taking a look into this now, could you send me the flags you're using @danieloadebimpe please |
|
Just a quick check that eth_subscribe is in your rules.json? |
Yes, heres the file:
|
@hexoscott is this issue being actively worked on? we've been seeing this issue with eth_getLogs per #6598. is there any additional info i could provide which would be helpful? |
Hi @ca42, it is, but I'm juggling it with other issues. I'll be taking another look into this today. |
@ca42 - do you have any recent examples that are re-produceable? Could you let me know the chain as well. |
I'm going to close this issue down, the problem mentioned above around eth_getLogs was initially an mdbx version issue from the looks of things which is now resolved, and a typo in a test file leading to inconsistent results. Chances are the mdbx fix will have resolved this issue? If the issue still persists, please leave examples and information such as chain and anything else that would be helpful and I'll pick the thread back up. |
System information
Erigon version: erigon version 2022.04.3-alpha-87421417
OS & Version: Linux (Alpine 3.15.4 in Docker)
Commit hash : 8742141
Expected behaviour
When I'm subscribe to erigon node with topics filter - I must see transactions that corresponds to topics.
Actual behaviour
I see no any transactions at all, but they are (according to ETH/BSC explorer). If I don't use any filters (no topics) - I see all transactions, but I need only transactions with topics I'm interested in.
Steps to reproduce the behaviour
The minimal code above works well with gEth nodes and getblock.io node.
So, what I miss?
The text was updated successfully, but these errors were encountered: