aboutsummaryrefslogtreecommitdiff
path: root/src/httprpc.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2023-07-23 20:45:10 -0600
committerJon Atack <jon@atack.com>2023-09-19 15:54:17 -0600
commitbbb68ffdbdafb6717dcadac074f6098750b8aa77 (patch)
tree702d08249de935e1036d2cb87af7754031e7de43 /src/httprpc.cpp
parent1dd62c5295ca319c94f7233bcb2e11f9d37a33f1 (diff)
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.
Diffstat (limited to 'src/httprpc.cpp')
-rw-r--r--src/httprpc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp
index 661406e122..c72dbf10bc 100644
--- a/src/httprpc.cpp
+++ b/src/httprpc.cpp
@@ -8,6 +8,7 @@
#include <crypto/hmac_sha256.h>
#include <httpserver.h>
#include <logging.h>
+#include <netaddress.h>
#include <rpc/protocol.h>
#include <rpc/server.h>
#include <util/strencodings.h>