From 4dd51b2924860bf10466da080ea4ff7bed1a3e3f Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Fri, 27 Sep 2024 13:40:06 +0200 Subject: [PATCH] Move SockMan to common --- src/CMakeLists.txt | 2 +- src/{ => common}/sockman.cpp | 2 +- src/{ => common}/sockman.h | 0 src/net.h | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => common}/sockman.cpp (99%) rename src/{ => common}/sockman.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cf8c8566559d2..bde286bc33a86 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,6 +117,7 @@ add_library(bitcoin_common STATIC EXCLUDE_FROM_ALL common/run_command.cpp common/settings.cpp common/signmessage.cpp + common/sockman.cpp common/system.cpp common/url.cpp compressor.cpp @@ -270,7 +271,6 @@ add_library(bitcoin_node STATIC EXCLUDE_FROM_ALL rpc/txoutproof.cpp script/sigcache.cpp signet.cpp - sockman.cpp torcontrol.cpp txdb.cpp txmempool.cpp diff --git a/src/sockman.cpp b/src/common/sockman.cpp similarity index 99% rename from src/sockman.cpp rename to src/common/sockman.cpp index 4a9b41f1f3c63..9d97da66935a2 100644 --- a/src/sockman.cpp +++ b/src/common/sockman.cpp @@ -4,9 +4,9 @@ #include // IWYU pragma: keep +#include #include #include -#include #include #include diff --git a/src/sockman.h b/src/common/sockman.h similarity index 100% rename from src/sockman.h rename to src/common/sockman.h diff --git a/src/net.h b/src/net.h index 30ce7c12ba7ff..72aa1910f0690 100644 --- a/src/net.h +++ b/src/net.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -24,7 +25,6 @@ #include #include #include -#include #include #include #include