diff --git a/src/random.h b/src/random.h --- a/src/random.h +++ b/src/random.h @@ -6,9 +6,9 @@ #ifndef BITCOIN_RANDOM_H #define BITCOIN_RANDOM_H -#include "crypto/chacha20.h" -#include "crypto/common.h" -#include "uint256.h" +#include +#include +#include #include diff --git a/src/random.cpp b/src/random.cpp --- a/src/random.cpp +++ b/src/random.cpp @@ -3,23 +3,26 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "random.h" +#include -#include "crypto/sha512.h" -#include "support/cleanse.h" #ifdef WIN32 -#include "compat.h" // for Windows API +#include // for Windows API #include #endif -#include "logging.h" // for LogPrint() -#include "sync.h" // for WAIT_LOCK -#include "utiltime.h" // for GetTime() +#include +#include // for LogPrint() +#include +#include // for WAIT_LOCK +#include // for GetTime() + +#include +#include #include #include #include +#include #include - #ifndef WIN32 #include #include @@ -41,15 +44,10 @@ #include // for ARRAYLEN #endif -#include - #if defined(__x86_64__) || defined(__amd64__) || defined(__i386__) #include #endif -#include -#include - [[noreturn]] static void RandFailure() { LogPrintf("Failed to read randomness, aborting\n"); std::abort(); diff --git a/src/rcu.cpp b/src/rcu.cpp --- a/src/rcu.cpp +++ b/src/rcu.cpp @@ -2,8 +2,9 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "rcu.h" -#include "sync.h" +#include + +#include #include #include diff --git a/src/rest.cpp b/src/rest.cpp --- a/src/rest.cpp +++ b/src/rest.cpp @@ -3,22 +3,22 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "chain.h" -#include "chainparams.h" -#include "config.h" -#include "core_io.h" -#include "httpserver.h" -#include "primitives/block.h" -#include "primitives/transaction.h" -#include "rpc/blockchain.h" -#include "rpc/server.h" -#include "rpc/tojson.h" -#include "streams.h" -#include "sync.h" -#include "txmempool.h" -#include "utilstrencodings.h" -#include "validation.h" -#include "version.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/src/scheduler.h b/src/scheduler.h --- a/src/scheduler.h +++ b/src/scheduler.h @@ -5,7 +5,7 @@ #ifndef BITCOIN_SCHEDULER_H #define BITCOIN_SCHEDULER_H -#include "sync.h" +#include // // NOTE: diff --git a/src/scheduler.cpp b/src/scheduler.cpp --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -2,12 +2,13 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "scheduler.h" +#include -#include "random.h" -#include "reverselock.h" +#include +#include #include + #include #include diff --git a/src/serialize.h b/src/serialize.h --- a/src/serialize.h +++ b/src/serialize.h @@ -6,7 +6,8 @@ #ifndef BITCOIN_SERIALIZE_H #define BITCOIN_SERIALIZE_H -#include "compat/endian.h" +#include +#include #include #include @@ -21,8 +22,6 @@ #include #include -#include "prevector.h" - static const uint64_t MAX_SIZE = 0x02000000; /** diff --git a/src/streams.h b/src/streams.h --- a/src/streams.h +++ b/src/streams.h @@ -6,8 +6,8 @@ #ifndef BITCOIN_STREAMS_H #define BITCOIN_STREAMS_H -#include "serialize.h" -#include "support/allocators/zeroafterfree.h" +#include +#include #include #include diff --git a/src/sync.h b/src/sync.h --- a/src/sync.h +++ b/src/sync.h @@ -6,7 +6,7 @@ #ifndef BITCOIN_SYNC_H #define BITCOIN_SYNC_H -#include "threadsafety.h" +#include #include #include diff --git a/src/sync.cpp b/src/sync.cpp --- a/src/sync.cpp +++ b/src/sync.cpp @@ -2,10 +2,10 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "sync.h" +#include -#include "logging.h" -#include "utilstrencodings.h" +#include +#include #include #include diff --git a/src/threadinterrupt.cpp b/src/threadinterrupt.cpp --- a/src/threadinterrupt.cpp +++ b/src/threadinterrupt.cpp @@ -3,9 +3,9 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "threadinterrupt.h" +#include -#include "sync.h" +#include CThreadInterrupt::operator bool() const { return flag.load(std::memory_order_acquire); diff --git a/src/timedata.cpp b/src/timedata.cpp --- a/src/timedata.cpp +++ b/src/timedata.cpp @@ -3,17 +3,17 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) -#include "config/bitcoin-config.h" +#include #endif -#include "timedata.h" +#include -#include "netaddress.h" -#include "sync.h" -#include "ui_interface.h" -#include "util.h" -#include "utilstrencodings.h" -#include "warnings.h" +#include +#include +#include +#include +#include +#include static CCriticalSection cs_nTimeOffset; static int64_t nTimeOffset = 0; diff --git a/src/torcontrol.h b/src/torcontrol.h --- a/src/torcontrol.h +++ b/src/torcontrol.h @@ -8,7 +8,7 @@ #ifndef BITCOIN_TORCONTROL_H #define BITCOIN_TORCONTROL_H -#include "scheduler.h" +#include extern const std::string DEFAULT_TOR_CONTROL; static const bool DEFAULT_LISTEN_ONION = true; diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -2,17 +2,13 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "torcontrol.h" -#include "crypto/hmac_sha256.h" -#include "net.h" -#include "netbase.h" -#include "util.h" -#include "utilstrencodings.h" +#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -27,6 +23,11 @@ #include #include +#include +#include +#include +#include + /** Default control port */ const std::string DEFAULT_TOR_CONTROL = "127.0.0.1:9051"; /** Tor cookie size (from control-spec.txt) */ diff --git a/src/txdb.h b/src/txdb.h --- a/src/txdb.h +++ b/src/txdb.h @@ -6,11 +6,11 @@ #ifndef BITCOIN_TXDB_H #define BITCOIN_TXDB_H -#include "blockfileinfo.h" -#include "chain.h" -#include "coins.h" -#include "dbwrapper.h" -#include "diskblockpos.h" +#include +#include +#include +#include +#include #include #include diff --git a/src/txdb.cpp b/src/txdb.cpp --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -3,16 +3,16 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "txdb.h" - -#include "chainparams.h" -#include "hash.h" -#include "init.h" -#include "pow.h" -#include "random.h" -#include "ui_interface.h" -#include "uint256.h" -#include "util.h" +#include + +#include +#include +#include +#include +#include +#include +#include +#include #include