jonatack
commented at 1:34 AM on July 24, 2023:
member
Move GetServicesNames() from rpc/util to rpc/net.cpp, as it is only called from that compilation unit and there is no reason for other ones to need it.
Remove the protocol.h include in rpc/util.h, as it was only needed for GetServicesNames(), drop an unneeded forward declaration (the other IWYU suggestions would require more extensive changes in other files), and add 3 already-missing include headers in other translation units that are needed to compile without protocol.h in rpc/util.h, as protocol.h includes netaddress.h, which in turn includes util/strencodings.h.
DrahtBot
commented at 1:34 AM on July 24, 2023:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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.
DrahtBot added the label Refactoring on Jul 24, 2023
jonatack force-pushed on Jul 24, 2023
jonatack marked this as ready for review on Jul 24, 2023
DrahtBot added the label CI failed on Sep 15, 2023
jonatack
commented at 5:44 PM on September 19, 2023:
member
Re the new CI failure, seems an update on master now causes a build error here. Updating.
refactor: move GetServicesNames from rpc/util.{h,cpp} to rpc/net.cpp
as it is only called from that compilation unit.
This avoids needlessly compiling GetServicesNames() in the 35 other files that
include rpc/util.h.
1dd62c5295
jonatack force-pushed on Sep 19, 2023
refactor: drop protocol.h include header in rpc/util.h
as it was only needed for GetServicesNames(). This potentially avoids needlessly
compiling the 500 lines of protocol.h in the 35 files other than rpc/net.cpp
that include rpc/util.h.
Drop an unneeded CPubKey forward declaration. The other IWYU suggestions would
require more extensive changes in other files.
Add 3 already-missing include headers in other translation units that are needed
to compile without protocol.h in rpc/util.h, as it includes netaddress.h, which
in turn includes util/strencodings.h.
bbb68ffdbd
jonatack force-pushed on Sep 19, 2023
DrahtBot removed the label CI failed on Sep 19, 2023
jonatack
commented at 11:33 PM on September 19, 2023:
member
Rebased and updated. The Win64 CI error is unrelated and documented in issue #28491.
kevkevinpal
commented at 3:37 AM on September 21, 2023:
contributor
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me