-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: rpc: correct eth_subscribe
implementation
#10027
Conversation
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.
Generally looks good, just one nit. Needs to be rebased, and linter is mad.
This definitely needs to be tested, ideally by the FVM team to make sure it does exactly what they need.
0dab83f
to
6c996e4
Compare
Traffic in wireshark when running
Looks like subscription is serialized wrong |
After fixes:
I don't know enough about eth filters, so someone more familiar should have a look, but to me this looks about right. |
The output looks good to me. It needs testing against a client library. |
bc9690c
to
9701b11
Compare
6d97c21
to
ad14d71
Compare
var h EthSubscriptionID | ||
err := h.UnmarshalJSON([]byte(hash)) | ||
|
||
require.Nil(t, err) |
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.
Is there a reason we use require.Nil
here instead of require.NoErrror
? Looks like we've done this a bunch in the new eth stuff.
Related Issues
Depends on filecoin-project/go-jsonrpc#88
Closes #9985
Closes filecoin-project/ref-fvm#1573
Proposed Changes
Additional Info
Not tested at all; Would be great to at least test lotus+lotus-gateway setup, and look at what is sent in wireshark to make sure everything looks as it should. Adding an itest would be nice to
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps