-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix bug when 2+ events are returned in logs subscription #1049
Conversation
If 2 or more of the same event type are logged in a single transaction, the eth_subscription result will contain multiple logs.
I'm wondering if it might be better for output to always be an array. Otherwise, clients will need to issue an array check in the subscription handler if there is a possibility for multiple events. I can update the PR if you agree. |
The subscription notification return should only return objects, i discussed that a long time ago with @bas-vk and assumed it is fixed. |
Supposedly geth will only return one log at a time, did you experience multiple logs, and if so with which version of geth? @perissology |
This was fixed more than a year ago. |
ah sorry, I was actually using parity not sure about geths |
so is this a parity bug then? |
They will fix that. |
If 2 or more of the same event type are logged in a single transaction,
the eth_subscription result will contain multiple logs.