-
Notifications
You must be signed in to change notification settings - Fork 790
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
devp2p: ETH-LES class refactor #1600
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
@ryanio @holgerd77 Anything I'm missing? |
will try to review tomorrow! 🙏 |
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.
Great start, cool, looking forward to have this implemented! 😄
The naming thing is somewhat important, we should give this some thought.
Also have some suggestions for additional unifications, will address in a separate comment.
Generally also really nice to review, thanks for splitting this up in such easy to follow steps, this helps a lot! 🙂
Ok, so the Same goes for Regarding the global Member functions which had been |
thanks @ghorbanian! this looks really great. I'll give this a more in-depth review now. @holgerd77 do you have any further comments? @ghorbanian do you have anything else you'd like to add? should we move from WIP to "needs review"? |
e857dbe
to
04ca2ed
Compare
Should be good to move to "needs review." |
@ghorbanian Yeah, can agree, PR looks great! 🥳 Maybe you can do the final typing suggestions from Ryan, then I would also say that this is ready to be merged. Ah, and maybe one last quality assurance thing: did you do a final "live" test run on this within the client (make sure to build before) (see here for guidance), and optimally doing 3-4 runs using these special debug loggers (first peer, IP, so basically the things which can be activated from here)? All this debugging stuff is not at all covered by tests, and it is otherwise not really detectable if things are or are not running as expected. But otherwise: again, great work, thanks for keeping up on this for such a long time. 🙂 |
Appreciate the support along the way! Bear with me as I look into QA and those typing changes, I have a busy week ahead of me. |
awesome @ghorbanian, thanks for updating! there is one merge conflict on |
Ah, there is another PR which happened in parallel here #1643 doing somewhat heavy changes on very much the same code parts - a bit unfortunate. Think it might be a bit too much to ask to do a rebase/merge resolve here, will try to do myself locally and then re-push a PR, authorship should hopefully be preserved. |
Or maybe: @ScottyPoi, would you dare to do this? 🙂 This would also make sense, since you already did the work on #1643 and this work here goes in a bit similar direction. So this is basically a refactoring Amir did here with combining logic from the So it would be great if you can fetch the branch from Amir and try to carefully do a And finally: Amir @ghorbanian, this is not to take this out of your hands or something, but just an offer to share the work load since you also seem busy with other stuff. If you would like to finish yourself here also feel free to speak out loud and clearly. 😀 Again, just an offer where I thought that it might make sense. |
This reverts commit 9abb303.
…s file name to protocol.ts
c503ee0
to
9d7a375
Compare
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.
LGTM! thanks @ghorbanian!
@holgerd77 do you want to give a quick review, ensure everything still works as expected with the debug loggers, etc. and if all looks good, you can merge in? |
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.
I've the impression that not all DEBUG loggers are working, but I counter-tested on master
, and there some loggers are working neither, so this is very likely not related to this PR (so e.g. DEBUG=devp2p:eth:GET_BLOCK_HEADERS npm run client:start -- --network=sepolia
shows no output).
So I will merge here, we should address this at some point though (not super-critical though).
Thanks Ghorbanian! 🙂
I found the logging issue, will open a separate PR to fix |
Creates a new super-class to consolidate commonalities between the ETH and LES protocols. Fixes #1450.