refactor: P2P transport without serialize version and type#28892
refactor: P2P transport without serialize version and type#28892fanquake merged 4 commits intobitcoin:masterfrom
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
src/net_processing.cpp
Outdated
There was a problem hiding this comment.
Why not const NetMsgMaker msgMaker; with no curly brackets?
There was a problem hiding this comment.
I like {}, because it has many benefits:
- No need for code readers to waste brain cycles on thinking whether an initialization was missed
- A smaller
--word-diff-regex=., when in the future a designated initializer or constructor argument is added - I looks nice
The field is unused, so remove it. This is also required for future commits.
fa96619 to
fade05b
Compare
|
utACK fade05b27348f18d1f9cf8c0b5cc26eaffe6b452 I'm also ok with a commit in this PR to drop |
|
ACK fade05b27348f18d1f9cf8c0b5cc26eaffe6b452 |
3333fdf to
fa3e1ff
Compare
|
Removed the class and replaced it with a template function in a namespace to address the feedback of both reviewers (Thanks!) |
fa3e1ff to
dddd999
Compare
The nVersion field is unused, so remove it. This is also required for future commits. Also, add PushMessage aliases in PeerManagerImpl to make calling code less verbose. Co-Authored-By: Anthony Towns <[email protected]>
dddd999 to
fafd5e5
Compare
ajtowns
left a comment
There was a problem hiding this comment.
ACK fafd5e5becf035426a45179ff592c11ccf2d5da5
fafd5e5 to
fa79a88
Compare
|
reACK fa79a88 |
Now that the serialize framework ignores the serialize version and serialize type, everything related to it can be removed from the code.
This is the first step, removing dead code from the P2P stack. A different pull will remove it from the wallet and other parts.