-
Notifications
You must be signed in to change notification settings - Fork 726
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_subscribe
in WS is not consistent between two nodes
#2573
Comments
thank you 🙏 |
As soon as we restart |
related logs in RPC component:
|
Just to give it a heads-up, I'm fully focused and working on this at the moment. I have made some experiments in order to identify the source of the problem, but unfortunately I wasn't able to reproduce it yet in a controlled environment. I'm continuing to investigate it and find different ways to reproduce the issue. I've identified some points in the code that could be causing the issue and I'll be improving them. |
|
@tclemos
|
Holy moly! 😱 |
Hi, Could you please tell me the reason that will lead to 'RPC returns the latest block on both nodes but on WS it doesn't return the latest block' in the old version? |
In the previous versions, the messages were sent sequentially considering all the connections, in case one connection was stuck for any reason it would delay all the other messages to be sent, creating a snowball effect accumulating messages. While the node was stuck waiting one of the connections to be able to write the message, the network was generating more blocks due to new transactions, the blocks were updated in the state due to the synchronizer, but the WS writing sequence was stuck. In the new versions we changed this and now one connection shouldn't affect each other. |
System information
zkEVM Node version:
v0.3.0
OS & Version:
Linux
Network:
Mainnet
RPC returns the latest block on both nodes but on WS it doesn't return the latest block. Checkout the screen shot below.
This issue was reported by quicknode
The text was updated successfully, but these errors were encountered: