feat: implement /eth/v1/validator/sync_committee_subscriptions endpoi… - #426
feat: implement /eth/v1/validator/sync_committee_subscriptions endpoi…#426bomanaps wants to merge 1 commit into
Conversation
|
Hello @KolbyML please can you help me review this? thanks. |
Yes am currently stuck on that and I need your input because from our current implementation of update_sync_committee_subnets is incomplete because the Discv5 struct takes ownership of the CombinedKey and doesn't expose it, which is making it impossible to update the ENR without either storing a duplicate key (with performance and security implications) or modifying the discv5 crate to expose the key or provide an ENR update method, or maybe am missing something? |
If I keep a copy of the CombinedKey in the Discovery struct it will require CombinedKey to implement Clone, which it doesn't |
You can modify the Enr like this https://docs.rs/discv5/0.9.1/discv5/struct.Discv5.html#method.enr_insert |
|
Hello @KolbyML please can you help me review this once more, thanks |
|
@bomanaps can you rebase to fix the conflicts and make CI pass first |
0b9b7d4 to
d5e2d0d
Compare
Done |
1e78559 to
a553edc
Compare
KolbyML
left a comment
There was a problem hiding this comment.
Left some directional feedback
a553edc to
b095f4f
Compare
|
@bomanaps can you rebase the PR, I should be able to give it another look when I wake up tomorrow |
d42280a to
954613e
Compare
Done |
KolbyML
left a comment
There was a problem hiding this comment.
Left some high level feedback, feel free to ask questions
9db85ca to
93a0b97
Compare
KolbyML
left a comment
There was a problem hiding this comment.
A lot of the PR looks improved, there are a few things I need to read more deeply on my next review
82f84e3 to
834c87e
Compare
|
@bomanaps could you squash all the commits so CI passes |
…criptions endpoint - Added full RPC handler and tests - Updated p2p networking and discv5 for sync committee support - Addressed PR review comments and cleanup
45fab7a to
23b687a
Compare
Done |
What are you trying to achieve?
closes #236
How was it implemented/fixed?
This pull request adds a handler for the Beacon API endpoint
POST /eth/v1/validator/sync_committee_subscriptions.Run node:
Make post request
To-Do