-
Notifications
You must be signed in to change notification settings - Fork 506
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
Compatibility fixes/improvements for JSON/RPC filter polling #641
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I've found a follow-on issue, when a block filter returns an empty result set. |
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Hey @peterbroadhurst, Thank you for opening up a PR.
Also, I'd like to know what kind of problem exists with the If you can describe the problem here with |
Thanks you @zivkovicmilos - I'm sorry for the slow reply here. The problem in the This is actually working around the behavior currently on the JSON/RPC interface for So when the fix in this PR changes the JSON/RPC response to an array (rather than a string), the error occurs. So the PR needed in I had mean to submit this as a PR to |
I've raised umbracle/ethgo#209 - I'm going to check in a change while this PR is in draft, that updates the go.mod to redirect to that branch so I can check it allows the PR tests to pass. |
Sadly my attempt to test with my fork of |
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Ok - with umbracle/ethgo#209 merged, I've updated the PR to pull in that commit of |
I have read the CLA Document and I hereby sign the CLA |
Hey @peterbroadhurst, Can you please pull in the latest We've made some minor fixes in the meantime that you'll need to resolve. |
…nto fix-640 Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Thanks @zivkovicmilos - I've completed the merge, and added the change suggested by @Kourin1996 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 💯
Thank you for the contribution 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thank you for the PR!
Codecov Report
@@ Coverage Diff @@
## develop #641 +/- ##
===========================================
+ Coverage 51.22% 51.27% +0.05%
===========================================
Files 109 109
Lines 15816 15825 +9
===========================================
+ Hits 8101 8115 +14
+ Misses 7032 7028 -4
+ Partials 683 682 -1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Description
A set of changes that improve consistency of the Edge JSON/RPC surface area for block/log filters, with other Ethereum JSON/RPC client implementations. These proposed changes vary from clear fixes, to other items that are more subjective. So I'm leaving this in draft while I work through a set of tests with event streaming framework ethconnect - which is part of the Hyperledger FireFly project.
filter not found
error stringChanges include
Breaking changes
If any users were depending on the invalid behavior of the JSON/RPC
eth_getFilterChanges
returning a stringresult
(rather than an array).This needs to stay in draft until a discussion happens on how to handle https://github.com/umbracle/ethgo, which has code that depends on the incorrect behavior. Resulting in this test failure:Now resolved via umbracle/ethgo#209
Checklist
Testing
Manual tests
Please complete this section if you ran manual tests for this functionality, otherwise delete it
Documentation update
Please link the documentation update PR in this section if it's present, otherwise delete it
Additional comments
Please post additional comments in this section if you have them, otherwise delete it