diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -564,6 +564,7 @@ init.cpp interfaces/chain.cpp interfaces/node.cpp + invrequest.cpp miner.cpp minerfund.cpp net.cpp @@ -599,7 +600,6 @@ torcontrol.cpp txdb.cpp txmempool.cpp - txrequest.cpp validation.cpp validationinterface.cpp versionbits.cpp diff --git a/src/txrequest.h b/src/invrequest.h rename from src/txrequest.h rename to src/invrequest.h --- a/src/txrequest.h +++ b/src/invrequest.h @@ -2,8 +2,8 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#ifndef BITCOIN_TXREQUEST_H -#define BITCOIN_TXREQUEST_H +#ifndef BITCOIN_INVREQUEST_H +#define BITCOIN_INVREQUEST_H #include // For NodeId @@ -335,4 +335,4 @@ } }; -#endif // BITCOIN_TXREQUEST_H +#endif // BITCOIN_INVREQUEST_H diff --git a/src/txrequest.cpp b/src/invrequest.cpp rename from src/txrequest.cpp rename to src/invrequest.cpp --- a/src/txrequest.cpp +++ b/src/invrequest.cpp @@ -2,7 +2,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include +#include #include #include diff --git a/src/net_processing.h b/src/net_processing.h --- a/src/net_processing.h +++ b/src/net_processing.h @@ -7,9 +7,9 @@ #define BITCOIN_NET_PROCESSING_H #include +#include #include #include -#include #include extern RecursiveMutex cs_main; diff --git a/src/test/fuzz/txrequest.cpp b/src/test/fuzz/txrequest.cpp --- a/src/test/fuzz/txrequest.cpp +++ b/src/test/fuzz/txrequest.cpp @@ -5,8 +5,8 @@ #include #include #include +#include #include -#include #include diff --git a/src/test/txrequest_tests.cpp b/src/test/txrequest_tests.cpp --- a/src/test/txrequest_tests.cpp +++ b/src/test/txrequest_tests.cpp @@ -2,7 +2,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include +#include #include