From fae71d30f7227594e2f59499cf7f7f9420284e04 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 3 Jun 2025 13:45:37 +0200 Subject: [PATCH 1/3] clang-tidy: Apply modernize-deprecated-headers This can be reproduced according to the developer notes with something like ( cd ./src/ && ../contrib/devtools/run-clang-tidy.py -p ../bld-cmake -fix -j $(nproc) ) Also, the header related changes were done manually. --- src/.clang-tidy | 3 +++ src/base58.cpp | 4 ++-- src/bech32.cpp | 2 +- src/bech32.h | 2 +- src/bench/examples.cpp | 2 +- src/bench/parse_hex.cpp | 2 +- src/bip324.cpp | 2 +- src/chainparamsbase.cpp | 2 +- src/cluster_linearize.h | 2 +- src/coins.h | 4 ++-- src/common/args.h | 2 +- src/consensus/consensus.h | 2 +- src/consensus/tx_verify.h | 2 +- src/crypto/aes.cpp | 2 +- src/crypto/chacha20.cpp | 2 +- src/crypto/chacha20.h | 2 +- src/crypto/chacha20poly1305.cpp | 2 +- src/crypto/chacha20poly1305.h | 2 +- src/crypto/hkdf_sha256_32.cpp | 4 ++-- src/crypto/hkdf_sha256_32.h | 2 +- src/crypto/hmac_sha256.cpp | 2 +- src/crypto/hmac_sha256.h | 2 +- src/crypto/hmac_sha512.cpp | 2 +- src/crypto/hmac_sha512.h | 2 +- src/crypto/muhash.h | 2 +- src/crypto/poly1305.cpp | 2 +- src/crypto/poly1305.h | 2 +- src/crypto/ripemd160.cpp | 2 +- src/crypto/ripemd160.h | 2 +- src/crypto/sha1.cpp | 2 +- src/crypto/sha1.h | 2 +- src/crypto/sha256.h | 2 +- src/crypto/sha256_avx2.cpp | 2 +- src/crypto/sha256_sse4.cpp | 2 +- src/crypto/sha256_sse41.cpp | 2 +- src/crypto/sha256_x86_shani.cpp | 2 +- src/crypto/sha3.h | 2 +- src/crypto/sha512.cpp | 2 +- src/crypto/sha512.h | 2 +- src/crypto/siphash.h | 2 +- src/init.cpp | 2 +- src/interfaces/node.h | 4 ++-- src/kernel/disconnected_transactions.cpp | 2 +- src/kernel/mempool_entry.h | 4 ++-- src/key_io.cpp | 4 ++-- src/netbase.h | 2 +- src/node/connection_types.h | 2 +- src/node/miner.h | 2 +- src/node/mini_miner.h | 2 +- src/pow.h | 2 +- src/qt/bitcoin.h | 2 +- src/qt/clientmodel.cpp | 2 +- src/qt/notificator.cpp | 2 +- src/qt/optionsmodel.h | 2 +- src/qt/transactiondesc.cpp | 2 +- src/qt/transactionrecord.cpp | 2 +- src/rpc/blockchain.cpp | 2 +- src/rpc/blockchain.h | 2 +- src/rpc/client.cpp | 2 +- src/rpc/mining.cpp | 2 +- src/rpc/node.cpp | 2 +- src/rpc/rawtransaction.cpp | 2 +- src/rpc/server.h | 2 +- src/streams.h | 6 +++--- src/test/compress_tests.cpp | 2 +- src/test/denialofservice_tests.cpp | 2 +- src/test/fuzz/addrman.cpp | 2 +- src/test/fuzz/asmap_direct.cpp | 2 +- src/test/fuzz/cluster_linearize.cpp | 2 +- src/test/fuzz/coinscache_sim.cpp | 4 ++-- src/test/fuzz/deserialize.cpp | 2 +- src/test/fuzz/feeratediagram.cpp | 4 ++-- src/test/fuzz/txgraph.cpp | 2 +- src/test/fuzz/vecdeque.cpp | 2 +- src/test/scriptnum10.h | 4 ++-- src/test/scriptnum_tests.cpp | 4 ++-- src/test/serialize_tests.cpp | 2 +- src/test/util/cluster_linearize.h | 2 +- src/test/util/coins.cpp | 2 +- src/txgraph.h | 2 +- src/txrequest.cpp | 2 +- src/util/feefrac.h | 2 +- src/util/tokenpipe.cpp | 2 +- src/validation.h | 2 +- src/wallet/sqlite.cpp | 2 +- src/wallet/test/wallet_tests.cpp | 2 +- src/wallet/walletdb.h | 2 +- 87 files changed, 101 insertions(+), 98 deletions(-) diff --git a/src/.clang-tidy b/src/.clang-tidy index 1cf270833a..544bd5ac0c 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -9,6 +9,7 @@ bugprone-lambda-function-name, bugprone-unhandled-self-assignment, misc-unused-using-decls, misc-no-recursion, +modernize-deprecated-headers, modernize-use-default-member-init, modernize-use-emplace, modernize-use-equals-default, @@ -29,6 +30,8 @@ readability-redundant-string-init, HeaderFilterRegex: '.' WarningsAsErrors: '*' CheckOptions: + - key: modernize-deprecated-headers.CheckHeaderFile + value: false - key: performance-move-const-arg.CheckTriviallyCopyableMove value: false - key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField diff --git a/src/base58.cpp b/src/base58.cpp index d0e1ab465e..19a5bd3e55 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -9,8 +9,8 @@ #include #include -#include -#include +#include +#include #include diff --git a/src/bech32.cpp b/src/bech32.cpp index 81695aceba..08bdce6dd5 100644 --- a/src/bech32.cpp +++ b/src/bech32.cpp @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include diff --git a/src/bech32.h b/src/bech32.h index 6d5a68ec5a..bc50ba5421 100644 --- a/src/bech32.h +++ b/src/bech32.h @@ -14,7 +14,7 @@ #ifndef BITCOIN_BECH32_H #define BITCOIN_BECH32_H -#include +#include #include #include diff --git a/src/bench/examples.cpp b/src/bench/examples.cpp index 671902ef2f..6f5d1052ba 100644 --- a/src/bench/examples.cpp +++ b/src/bench/examples.cpp @@ -5,7 +5,7 @@ #include // Extremely fast-running benchmark: -#include +#include volatile double sum = 0.0; // volatile, global so not optimized away diff --git a/src/bench/parse_hex.cpp b/src/bench/parse_hex.cpp index db3ead043c..c20e9546c3 100644 --- a/src/bench/parse_hex.cpp +++ b/src/bench/parse_hex.cpp @@ -4,7 +4,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/bip324.cpp b/src/bip324.cpp index 73f51a195e..bb1fae5dee 100644 --- a/src/bip324.cpp +++ b/src/bip324.cpp @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/chainparamsbase.cpp b/src/chainparamsbase.cpp index 060d519d92..24860088dd 100644 --- a/src/chainparamsbase.cpp +++ b/src/chainparamsbase.cpp @@ -9,7 +9,7 @@ #include #include -#include +#include void SetupChainParamsBaseOptions(ArgsManager& argsman) { diff --git a/src/cluster_linearize.h b/src/cluster_linearize.h index 217c4700af..2a3c649576 100644 --- a/src/cluster_linearize.h +++ b/src/cluster_linearize.h @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/coins.h b/src/coins.h index 61fb4af642..7676f7d870 100644 --- a/src/coins.h +++ b/src/coins.h @@ -16,8 +16,8 @@ #include #include -#include -#include +#include +#include #include #include diff --git a/src/common/args.h b/src/common/args.h index 8d9daf5f65..f5dce85084 100644 --- a/src/common/args.h +++ b/src/common/args.h @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h index cffe9cdafd..b4e1f02776 100644 --- a/src/consensus/consensus.h +++ b/src/consensus/consensus.h @@ -7,7 +7,7 @@ #define BITCOIN_CONSENSUS_CONSENSUS_H #include -#include +#include /** The maximum allowed size for a serialized block, in bytes (only for buffer size limits) */ static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000; diff --git a/src/consensus/tx_verify.h b/src/consensus/tx_verify.h index d2cf792cf3..845dcbf1c2 100644 --- a/src/consensus/tx_verify.h +++ b/src/consensus/tx_verify.h @@ -7,7 +7,7 @@ #include -#include +#include #include class CBlockIndex; diff --git a/src/crypto/aes.cpp b/src/crypto/aes.cpp index 2afcbd1629..b9537c7a3e 100644 --- a/src/crypto/aes.cpp +++ b/src/crypto/aes.cpp @@ -4,7 +4,7 @@ #include -#include +#include extern "C" { #include diff --git a/src/crypto/chacha20.cpp b/src/crypto/chacha20.cpp index acb860e9b4..91064050f4 100644 --- a/src/crypto/chacha20.cpp +++ b/src/crypto/chacha20.cpp @@ -12,7 +12,7 @@ #include #include -#include +#include #define QUARTERROUND(a,b,c,d) \ a += b; d = std::rotl(d ^ a, 16); \ diff --git a/src/crypto/chacha20.h b/src/crypto/chacha20.h index 06eb10781c..223b317f35 100644 --- a/src/crypto/chacha20.h +++ b/src/crypto/chacha20.h @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include // classes for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein diff --git a/src/crypto/chacha20poly1305.cpp b/src/crypto/chacha20poly1305.cpp index 4c7da07d7e..06dbf6037b 100644 --- a/src/crypto/chacha20poly1305.cpp +++ b/src/crypto/chacha20poly1305.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include AEADChaCha20Poly1305::AEADChaCha20Poly1305(std::span key) noexcept : m_chacha20(key) diff --git a/src/crypto/chacha20poly1305.h b/src/crypto/chacha20poly1305.h index 75404ca5ff..a6c3a668cf 100644 --- a/src/crypto/chacha20poly1305.h +++ b/src/crypto/chacha20poly1305.h @@ -6,7 +6,7 @@ #define BITCOIN_CRYPTO_CHACHA20POLY1305_H #include -#include +#include #include #include diff --git a/src/crypto/hkdf_sha256_32.cpp b/src/crypto/hkdf_sha256_32.cpp index 81f3c1349a..4d2762b9b4 100644 --- a/src/crypto/hkdf_sha256_32.cpp +++ b/src/crypto/hkdf_sha256_32.cpp @@ -4,8 +4,8 @@ #include -#include -#include +#include +#include CHKDF_HMAC_SHA256_L32::CHKDF_HMAC_SHA256_L32(const unsigned char* ikm, size_t ikmlen, const std::string& salt) { diff --git a/src/crypto/hkdf_sha256_32.h b/src/crypto/hkdf_sha256_32.h index d373520300..3e71b0a29c 100644 --- a/src/crypto/hkdf_sha256_32.h +++ b/src/crypto/hkdf_sha256_32.h @@ -8,7 +8,7 @@ #include #include -#include +#include /** A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */ class CHKDF_HMAC_SHA256_L32 diff --git a/src/crypto/hmac_sha256.cpp b/src/crypto/hmac_sha256.cpp index 0ba99ae274..2ac8d0e18b 100644 --- a/src/crypto/hmac_sha256.cpp +++ b/src/crypto/hmac_sha256.cpp @@ -4,7 +4,7 @@ #include -#include +#include CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t keylen) { diff --git a/src/crypto/hmac_sha256.h b/src/crypto/hmac_sha256.h index abd731d1fe..4bcd0163ab 100644 --- a/src/crypto/hmac_sha256.h +++ b/src/crypto/hmac_sha256.h @@ -8,7 +8,7 @@ #include #include -#include +#include /** A hasher class for HMAC-SHA-256. */ class CHMAC_SHA256 diff --git a/src/crypto/hmac_sha512.cpp b/src/crypto/hmac_sha512.cpp index d70aee843b..26a988b6a6 100644 --- a/src/crypto/hmac_sha512.cpp +++ b/src/crypto/hmac_sha512.cpp @@ -4,7 +4,7 @@ #include -#include +#include CHMAC_SHA512::CHMAC_SHA512(const unsigned char* key, size_t keylen) { diff --git a/src/crypto/hmac_sha512.h b/src/crypto/hmac_sha512.h index 8fa55d2844..6ea815aecf 100644 --- a/src/crypto/hmac_sha512.h +++ b/src/crypto/hmac_sha512.h @@ -8,7 +8,7 @@ #include #include -#include +#include /** A hasher class for HMAC-SHA-512. */ class CHMAC_SHA512 diff --git a/src/crypto/muhash.h b/src/crypto/muhash.h index 5137c8e240..f340937323 100644 --- a/src/crypto/muhash.h +++ b/src/crypto/muhash.h @@ -8,7 +8,7 @@ #include #include -#include +#include class Num3072 { diff --git a/src/crypto/poly1305.cpp b/src/crypto/poly1305.cpp index 7fcbab4108..2640e320bf 100644 --- a/src/crypto/poly1305.cpp +++ b/src/crypto/poly1305.cpp @@ -5,7 +5,7 @@ #include #include -#include +#include namespace poly1305_donna { diff --git a/src/crypto/poly1305.h b/src/crypto/poly1305.h index 94ea69be87..1b7e355fee 100644 --- a/src/crypto/poly1305.h +++ b/src/crypto/poly1305.h @@ -9,7 +9,7 @@ #include #include -#include +#include #define POLY1305_BLOCK_SIZE 16 diff --git a/src/crypto/ripemd160.cpp b/src/crypto/ripemd160.cpp index a2f7c6e156..4dad37d533 100644 --- a/src/crypto/ripemd160.cpp +++ b/src/crypto/ripemd160.cpp @@ -6,7 +6,7 @@ #include -#include +#include // Internal implementation code. namespace diff --git a/src/crypto/ripemd160.h b/src/crypto/ripemd160.h index fb631a66d2..888ffb5189 100644 --- a/src/crypto/ripemd160.h +++ b/src/crypto/ripemd160.h @@ -6,7 +6,7 @@ #define BITCOIN_CRYPTO_RIPEMD160_H #include -#include +#include /** A hasher class for RIPEMD-160. */ class CRIPEMD160 diff --git a/src/crypto/sha1.cpp b/src/crypto/sha1.cpp index 2610108f60..69c0bba130 100644 --- a/src/crypto/sha1.cpp +++ b/src/crypto/sha1.cpp @@ -6,7 +6,7 @@ #include -#include +#include // Internal implementation code. namespace diff --git a/src/crypto/sha1.h b/src/crypto/sha1.h index 741cdaad58..62ffa5d7d4 100644 --- a/src/crypto/sha1.h +++ b/src/crypto/sha1.h @@ -6,7 +6,7 @@ #define BITCOIN_CRYPTO_SHA1_H #include -#include +#include /** A hasher class for SHA1. */ class CSHA1 diff --git a/src/crypto/sha256.h b/src/crypto/sha256.h index b1348631d3..aef6132801 100644 --- a/src/crypto/sha256.h +++ b/src/crypto/sha256.h @@ -6,7 +6,7 @@ #define BITCOIN_CRYPTO_SHA256_H #include -#include +#include #include /** A hasher class for SHA-256. */ diff --git a/src/crypto/sha256_avx2.cpp b/src/crypto/sha256_avx2.cpp index df8cb7a6c9..6757a22f0a 100644 --- a/src/crypto/sha256_avx2.cpp +++ b/src/crypto/sha256_avx2.cpp @@ -4,7 +4,7 @@ #ifdef ENABLE_AVX2 -#include +#include #include #include diff --git a/src/crypto/sha256_sse4.cpp b/src/crypto/sha256_sse4.cpp index f68e226138..aa8bf24666 100644 --- a/src/crypto/sha256_sse4.cpp +++ b/src/crypto/sha256_sse4.cpp @@ -6,7 +6,7 @@ // (available at the bottom of this file). #include -#include +#include #if defined(__x86_64__) || defined(__amd64__) diff --git a/src/crypto/sha256_sse41.cpp b/src/crypto/sha256_sse41.cpp index d041fdfefc..308de456b4 100644 --- a/src/crypto/sha256_sse41.cpp +++ b/src/crypto/sha256_sse41.cpp @@ -4,7 +4,7 @@ #ifdef ENABLE_SSE41 -#include +#include #include #include diff --git a/src/crypto/sha256_x86_shani.cpp b/src/crypto/sha256_x86_shani.cpp index 7471828193..316cfdf518 100644 --- a/src/crypto/sha256_x86_shani.cpp +++ b/src/crypto/sha256_x86_shani.cpp @@ -8,7 +8,7 @@ #if defined(ENABLE_SSE41) && defined(ENABLE_X86_SHANI) -#include +#include #include #include diff --git a/src/crypto/sha3.h b/src/crypto/sha3.h index 685586af63..6d114379f3 100644 --- a/src/crypto/sha3.h +++ b/src/crypto/sha3.h @@ -8,7 +8,7 @@ #include #include -#include +#include //! The Keccak-f[1600] transform. void KeccakF(uint64_t (&st)[25]); diff --git a/src/crypto/sha512.cpp b/src/crypto/sha512.cpp index 2713f06210..d1a5eec257 100644 --- a/src/crypto/sha512.cpp +++ b/src/crypto/sha512.cpp @@ -6,7 +6,7 @@ #include -#include +#include // Internal implementation code. namespace diff --git a/src/crypto/sha512.h b/src/crypto/sha512.h index d2f7d6a05e..3324022909 100644 --- a/src/crypto/sha512.h +++ b/src/crypto/sha512.h @@ -6,7 +6,7 @@ #define BITCOIN_CRYPTO_SHA512_H #include -#include +#include /** A hasher class for SHA-512. */ class CSHA512 diff --git a/src/crypto/siphash.h b/src/crypto/siphash.h index c388c94951..4c6a39e0b6 100644 --- a/src/crypto/siphash.h +++ b/src/crypto/siphash.h @@ -5,7 +5,7 @@ #ifndef BITCOIN_CRYPTO_SIPHASH_H #define BITCOIN_CRYPTO_SIPHASH_H -#include +#include #include #include diff --git a/src/init.cpp b/src/init.cpp index bfb42aaa3b..588f68bf48 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -105,7 +105,7 @@ #include #ifndef WIN32 -#include +#include #include #endif diff --git a/src/interfaces/node.h b/src/interfaces/node.h index a17aa4afef..2ab9f84e73 100644 --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -17,8 +17,8 @@ #include #include -#include -#include +#include +#include #include #include #include diff --git a/src/kernel/disconnected_transactions.cpp b/src/kernel/disconnected_transactions.cpp index f865fed688..f9431cef64 100644 --- a/src/kernel/disconnected_transactions.cpp +++ b/src/kernel/disconnected_transactions.cpp @@ -4,7 +4,7 @@ #include -#include +#include #include #include #include diff --git a/src/kernel/mempool_entry.h b/src/kernel/mempool_entry.h index 2adeaea652..0c3f08ba9e 100644 --- a/src/kernel/mempool_entry.h +++ b/src/kernel/mempool_entry.h @@ -18,8 +18,8 @@ #include #include #include -#include -#include +#include +#include class CBlockIndex; diff --git a/src/key_io.cpp b/src/key_io.cpp index 6cece47e41..3e8633af36 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -12,8 +12,8 @@ #include #include -#include -#include +#include +#include /// Maximum witness length for Bech32 addresses. static constexpr std::size_t BECH32_WITNESS_PROG_MAX_LEN = 40; diff --git a/src/netbase.h b/src/netbase.h index 3ac2305011..0ecd209a6f 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/node/connection_types.h b/src/node/connection_types.h index a911b95f7e..037e15d866 100644 --- a/src/node/connection_types.h +++ b/src/node/connection_types.h @@ -6,7 +6,7 @@ #define BITCOIN_NODE_CONNECTION_TYPES_H #include -#include +#include /** Different types of connections to a peer. This enum encapsulates the * information we have available at the time of opening or accepting the diff --git a/src/node/miner.h b/src/node/miner.h index 5073d69bb1..24651edc52 100644 --- a/src/node/miner.h +++ b/src/node/miner.h @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include diff --git a/src/node/mini_miner.h b/src/node/mini_miner.h index aec2aaf6b6..60eb5c81ff 100644 --- a/src/node/mini_miner.h +++ b/src/node/mini_miner.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include class CFeeRate; diff --git a/src/pow.h b/src/pow.h index ceba55d36a..dbf9a67329 100644 --- a/src/pow.h +++ b/src/pow.h @@ -8,7 +8,7 @@ #include -#include +#include class CBlockHeader; class CBlockIndex; diff --git a/src/qt/bitcoin.h b/src/qt/bitcoin.h index 52b117eed7..142a7e2da5 100644 --- a/src/qt/bitcoin.h +++ b/src/qt/bitcoin.h @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index fb81dee8da..b923ffe8da 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index af97bb2143..47a21cf898 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -18,7 +18,7 @@ #ifdef USE_DBUS #include #include -#include +#include #endif #ifdef Q_OS_MACOS #include diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h index c24b35ed79..efe9b3bd4d 100644 --- a/src/qt/optionsmodel.h +++ b/src/qt/optionsmodel.h @@ -12,7 +12,7 @@ #include #include -#include +#include #include struct bilingual_str; diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 4d902f2cd2..74ddb35c19 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 5f9e37aac8..cce453acf3 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -9,7 +9,7 @@ #include #include -#include +#include #include diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index a237a24c84..d5ce1bd469 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -52,7 +52,7 @@ #include #include -#include +#include #include #include diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 954ede6519..649c1dddec 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -13,7 +13,7 @@ #include #include -#include +#include #include class CBlock; diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 08bd1142fc..74e091224b 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index aa68ae324d..ef234c6283 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -44,7 +44,7 @@ #include #include -#include +#include using interfaces::BlockRef; using interfaces::BlockTemplate; diff --git a/src/rpc/node.cpp b/src/rpc/node.cpp index 232a1d16f4..60f7c39858 100644 --- a/src/rpc/node.cpp +++ b/src/rpc/node.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #ifdef HAVE_MALLOC_INFO #include #endif diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 8f7b9769a8..93541a9330 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -43,7 +43,7 @@ #include #include -#include +#include #include diff --git a/src/rpc/server.h b/src/rpc/server.h index 5a22279a58..a14897f390 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/src/streams.h b/src/streams.h index 1ebcff3671..0b3b939fab 100644 --- a/src/streams.h +++ b/src/streams.h @@ -12,14 +12,14 @@ #include #include -#include +#include #include #include #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/src/test/compress_tests.cpp b/src/test/compress_tests.cpp index 7e17e6ef93..c8289a281f 100644 --- a/src/test/compress_tests.cpp +++ b/src/test/compress_tests.cpp @@ -7,7 +7,7 @@ #include #include -#include +#include #include diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index 9ee7e9c9fe..800a9eac24 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include #include diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index dedea85080..bce7e64ac7 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/test/fuzz/asmap_direct.cpp b/src/test/fuzz/asmap_direct.cpp index 8a355fd3f6..16c70a582b 100644 --- a/src/test/fuzz/asmap_direct.cpp +++ b/src/test/fuzz/asmap_direct.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include FUZZ_TARGET(asmap_direct) { diff --git a/src/test/fuzz/cluster_linearize.cpp b/src/test/fuzz/cluster_linearize.cpp index fb4bf3a719..5ac9edfc69 100644 --- a/src/test/fuzz/cluster_linearize.cpp +++ b/src/test/fuzz/cluster_linearize.cpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include diff --git a/src/test/fuzz/coinscache_sim.cpp b/src/test/fuzz/coinscache_sim.cpp index 6000d52fc9..dac6f4ab4b 100644 --- a/src/test/fuzz/coinscache_sim.cpp +++ b/src/test/fuzz/coinscache_sim.cpp @@ -9,10 +9,10 @@ #include #include -#include +#include #include #include -#include +#include #include namespace { diff --git a/src/test/fuzz/deserialize.cpp b/src/test/fuzz/deserialize.cpp index 270d546c39..46ac078513 100644 --- a/src/test/fuzz/deserialize.cpp +++ b/src/test/fuzz/deserialize.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include using node::SnapshotMetadata; diff --git a/src/test/fuzz/feeratediagram.cpp b/src/test/fuzz/feeratediagram.cpp index 1a700987d6..6dcc63e91e 100644 --- a/src/test/fuzz/feeratediagram.cpp +++ b/src/test/fuzz/feeratediagram.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 @@ -12,7 +12,7 @@ #include #include -#include +#include namespace { diff --git a/src/test/fuzz/txgraph.cpp b/src/test/fuzz/txgraph.cpp index 2c9fda9cd9..7f7a3181b1 100644 --- a/src/test/fuzz/txgraph.cpp +++ b/src/test/fuzz/txgraph.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include using namespace cluster_linearize; diff --git a/src/test/fuzz/vecdeque.cpp b/src/test/fuzz/vecdeque.cpp index 9a71c43b98..13843b2c4b 100644 --- a/src/test/fuzz/vecdeque.cpp +++ b/src/test/fuzz/vecdeque.cpp @@ -8,7 +8,7 @@ #include #include -#include +#include namespace { diff --git a/src/test/scriptnum10.h b/src/test/scriptnum10.h index 1381d5d431..42ab8e9405 100644 --- a/src/test/scriptnum10.h +++ b/src/test/scriptnum10.h @@ -6,10 +6,10 @@ #ifndef BITCOIN_TEST_SCRIPTNUM10_H #define BITCOIN_TEST_SCRIPTNUM10_H -#include +#include #include #include -#include +#include #include #include diff --git a/src/test/scriptnum_tests.cpp b/src/test/scriptnum_tests.cpp index 746d4d3c6b..caaacc7135 100644 --- a/src/test/scriptnum_tests.cpp +++ b/src/test/scriptnum_tests.cpp @@ -7,8 +7,8 @@ #include #include -#include -#include +#include +#include BOOST_FIXTURE_TEST_SUITE(scriptnum_tests, BasicTestingSetup) diff --git a/src/test/serialize_tests.cpp b/src/test/serialize_tests.cpp index 9c68c8bb96..33a9133d2e 100644 --- a/src/test/serialize_tests.cpp +++ b/src/test/serialize_tests.cpp @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/src/test/util/cluster_linearize.h b/src/test/util/cluster_linearize.h index fa7945aac6..b69edb496b 100644 --- a/src/test/util/cluster_linearize.h +++ b/src/test/util/cluster_linearize.h @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/test/util/coins.cpp b/src/test/util/coins.cpp index 7e10c7c58d..aea01d12fd 100644 --- a/src/test/util/coins.cpp +++ b/src/test/util/coins.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include COutPoint AddTestCoin(FastRandomContext& rng, CCoinsViewCache& coins_view) diff --git a/src/txgraph.h b/src/txgraph.h index 9cfbe70acd..6fa035fb5b 100644 --- a/src/txgraph.h +++ b/src/txgraph.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/txrequest.cpp b/src/txrequest.cpp index 5909146427..1e40bb75bc 100644 --- a/src/txrequest.cpp +++ b/src/txrequest.cpp @@ -21,7 +21,7 @@ #include #include -#include +#include namespace { diff --git a/src/util/feefrac.h b/src/util/feefrac.h index c29dabc43b..7b3e6010d6 100644 --- a/src/util/feefrac.h +++ b/src/util/feefrac.h @@ -5,7 +5,7 @@ #ifndef BITCOIN_UTIL_FEEFRAC_H #define BITCOIN_UTIL_FEEFRAC_H -#include +#include #include #include #include diff --git a/src/util/tokenpipe.cpp b/src/util/tokenpipe.cpp index 9425c62ebf..1948beb7c2 100644 --- a/src/util/tokenpipe.cpp +++ b/src/util/tokenpipe.cpp @@ -7,7 +7,7 @@ #ifndef WIN32 -#include +#include #include #include #include diff --git a/src/validation.h b/src/validation.h index 0a8a94db12..05a2a2df8c 100644 --- a/src/validation.h +++ b/src/validation.h @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/wallet/sqlite.cpp b/src/wallet/sqlite.cpp index 9b6215f937..c53b6935b1 100644 --- a/src/wallet/sqlite.cpp +++ b/src/wallet/sqlite.cpp @@ -17,7 +17,7 @@ #include #include -#include +#include #include #include diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index 966c6d2c4b..eda4b4d499 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index 507b79e7a3..e576739bbe 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include From facb152697b8d7b75a9e6108f8896f774b06b35f Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 3 Jun 2025 14:58:30 +0200 Subject: [PATCH 2/3] scripted-diff: Bump copyright headers after include changes Historically, the headers have been bumped some time after a file has been touched. Do it now to avoid having to touch them again in the future for that reason. -BEGIN VERIFY SCRIPT- sed -i --regexp-extended 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' $( git show --pretty="" --name-only HEAD~0 ) -END VERIFY SCRIPT- --- src/bech32.cpp | 2 +- src/bech32.h | 2 +- src/bench/examples.cpp | 2 +- src/chainparamsbase.cpp | 2 +- src/coins.h | 2 +- src/common/args.h | 2 +- src/consensus/consensus.h | 2 +- src/consensus/tx_verify.h | 2 +- src/crypto/aes.cpp | 2 +- src/crypto/hkdf_sha256_32.cpp | 2 +- src/crypto/hkdf_sha256_32.h | 2 +- src/crypto/hmac_sha256.cpp | 2 +- src/crypto/hmac_sha256.h | 2 +- src/crypto/hmac_sha512.cpp | 2 +- src/crypto/hmac_sha512.h | 2 +- src/crypto/poly1305.cpp | 2 +- src/crypto/ripemd160.cpp | 2 +- src/crypto/ripemd160.h | 2 +- src/crypto/sha1.cpp | 2 +- src/crypto/sha1.h | 2 +- src/crypto/sha256.h | 2 +- src/crypto/sha256_avx2.cpp | 2 +- src/crypto/sha256_sse4.cpp | 2 +- src/crypto/sha256_sse41.cpp | 2 +- src/crypto/sha256_x86_shani.cpp | 2 +- src/crypto/sha512.cpp | 2 +- src/crypto/sha512.h | 2 +- src/kernel/disconnected_transactions.cpp | 2 +- src/kernel/mempool_entry.h | 2 +- src/key_io.cpp | 2 +- src/netbase.h | 2 +- src/node/connection_types.h | 2 +- src/node/miner.h | 2 +- src/node/mini_miner.h | 2 +- src/pow.h | 2 +- src/qt/bitcoin.h | 2 +- src/qt/clientmodel.cpp | 2 +- src/qt/notificator.cpp | 2 +- src/qt/optionsmodel.h | 2 +- src/qt/transactiondesc.cpp | 2 +- src/qt/transactionrecord.cpp | 2 +- src/rpc/blockchain.cpp | 2 +- src/rpc/blockchain.h | 2 +- src/rpc/client.cpp | 2 +- src/rpc/node.cpp | 2 +- src/rpc/server.h | 2 +- src/test/compress_tests.cpp | 2 +- src/test/denialofservice_tests.cpp | 2 +- src/test/fuzz/addrman.cpp | 2 +- src/test/fuzz/asmap_direct.cpp | 2 +- src/test/fuzz/coinscache_sim.cpp | 2 +- src/test/fuzz/deserialize.cpp | 2 +- src/test/scriptnum10.h | 2 +- src/test/scriptnum_tests.cpp | 2 +- src/test/util/coins.cpp | 2 +- src/txrequest.cpp | 2 +- src/util/tokenpipe.cpp | 2 +- src/wallet/test/wallet_tests.cpp | 2 +- src/wallet/walletdb.h | 2 +- 59 files changed, 59 insertions(+), 59 deletions(-) diff --git a/src/bech32.cpp b/src/bech32.cpp index 08bdce6dd5..ed91862217 100644 --- a/src/bech32.cpp +++ b/src/bech32.cpp @@ -1,5 +1,5 @@ // Copyright (c) 2017, 2021 Pieter Wuille -// Copyright (c) 2021-2022 The Bitcoin Core developers +// Copyright (c) 2021-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/bech32.h b/src/bech32.h index bc50ba5421..ba4c79bb86 100644 --- a/src/bech32.h +++ b/src/bech32.h @@ -1,5 +1,5 @@ // Copyright (c) 2017, 2021 Pieter Wuille -// Copyright (c) 2021 The Bitcoin Core developers +// Copyright (c) 2021-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/bench/examples.cpp b/src/bench/examples.cpp index 6f5d1052ba..0769b80da0 100644 --- a/src/bench/examples.cpp +++ b/src/bench/examples.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2015-2022 The Bitcoin Core developers +// Copyright (c) 2015-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/chainparamsbase.cpp b/src/chainparamsbase.cpp index 24860088dd..d816d1af91 100644 --- a/src/chainparamsbase.cpp +++ b/src/chainparamsbase.cpp @@ -1,5 +1,5 @@ // Copyright (c) 2010 Satoshi Nakamoto -// Copyright (c) 2009-2021 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/coins.h b/src/coins.h index 7676f7d870..6725d5a51f 100644 --- a/src/coins.h +++ b/src/coins.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/common/args.h b/src/common/args.h index f5dce85084..c35e2cb88a 100644 --- a/src/common/args.h +++ b/src/common/args.h @@ -1,4 +1,4 @@ -// Copyright (c) 2023 The Bitcoin Core developers +// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h index b4e1f02776..1e5a6bc4c3 100644 --- a/src/consensus/consensus.h +++ b/src/consensus/consensus.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/consensus/tx_verify.h b/src/consensus/tx_verify.h index 845dcbf1c2..8b7e6d6b38 100644 --- a/src/consensus/tx_verify.h +++ b/src/consensus/tx_verify.h @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2021 The Bitcoin Core developers +// Copyright (c) 2017-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/aes.cpp b/src/crypto/aes.cpp index b9537c7a3e..40df5690e0 100644 --- a/src/crypto/aes.cpp +++ b/src/crypto/aes.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016-2019 The Bitcoin Core developers +// Copyright (c) 2016-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/hkdf_sha256_32.cpp b/src/crypto/hkdf_sha256_32.cpp index 4d2762b9b4..e62249446a 100644 --- a/src/crypto/hkdf_sha256_32.cpp +++ b/src/crypto/hkdf_sha256_32.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2019 The Bitcoin Core developers +// Copyright (c) 2018-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/hkdf_sha256_32.h b/src/crypto/hkdf_sha256_32.h index 3e71b0a29c..3010e678a4 100644 --- a/src/crypto/hkdf_sha256_32.h +++ b/src/crypto/hkdf_sha256_32.h @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2022 The Bitcoin Core developers +// Copyright (c) 2018-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/hmac_sha256.cpp b/src/crypto/hmac_sha256.cpp index 2ac8d0e18b..034652064e 100644 --- a/src/crypto/hmac_sha256.cpp +++ b/src/crypto/hmac_sha256.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2018 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/hmac_sha256.h b/src/crypto/hmac_sha256.h index 4bcd0163ab..2f72970014 100644 --- a/src/crypto/hmac_sha256.h +++ b/src/crypto/hmac_sha256.h @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/hmac_sha512.cpp b/src/crypto/hmac_sha512.cpp index 26a988b6a6..245ed29ec1 100644 --- a/src/crypto/hmac_sha512.cpp +++ b/src/crypto/hmac_sha512.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2018 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/hmac_sha512.h b/src/crypto/hmac_sha512.h index 6ea815aecf..a25da385f4 100644 --- a/src/crypto/hmac_sha512.h +++ b/src/crypto/hmac_sha512.h @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/poly1305.cpp b/src/crypto/poly1305.cpp index 2640e320bf..c9c066b309 100644 --- a/src/crypto/poly1305.cpp +++ b/src/crypto/poly1305.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2019 The Bitcoin Core developers +// Copyright (c) 2019-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/ripemd160.cpp b/src/crypto/ripemd160.cpp index 4dad37d533..1347bbb12d 100644 --- a/src/crypto/ripemd160.cpp +++ b/src/crypto/ripemd160.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2019 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/ripemd160.h b/src/crypto/ripemd160.h index 888ffb5189..6ade63bf34 100644 --- a/src/crypto/ripemd160.h +++ b/src/crypto/ripemd160.h @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha1.cpp b/src/crypto/sha1.cpp index 69c0bba130..6dce204c89 100644 --- a/src/crypto/sha1.cpp +++ b/src/crypto/sha1.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2019 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha1.h b/src/crypto/sha1.h index 62ffa5d7d4..a22b65344e 100644 --- a/src/crypto/sha1.h +++ b/src/crypto/sha1.h @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha256.h b/src/crypto/sha256.h index aef6132801..460557686c 100644 --- a/src/crypto/sha256.h +++ b/src/crypto/sha256.h @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha256_avx2.cpp b/src/crypto/sha256_avx2.cpp index 6757a22f0a..bfa54afa8e 100644 --- a/src/crypto/sha256_avx2.cpp +++ b/src/crypto/sha256_avx2.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2019 The Bitcoin Core developers +// Copyright (c) 2017-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha256_sse4.cpp b/src/crypto/sha256_sse4.cpp index aa8bf24666..683d44b6b0 100644 --- a/src/crypto/sha256_sse4.cpp +++ b/src/crypto/sha256_sse4.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2022 The Bitcoin Core developers +// Copyright (c) 2017-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // diff --git a/src/crypto/sha256_sse41.cpp b/src/crypto/sha256_sse41.cpp index 308de456b4..8a561d75e8 100644 --- a/src/crypto/sha256_sse41.cpp +++ b/src/crypto/sha256_sse41.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2019 The Bitcoin Core developers +// Copyright (c) 2018-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha256_x86_shani.cpp b/src/crypto/sha256_x86_shani.cpp index 316cfdf518..5ee957aaa7 100644 --- a/src/crypto/sha256_x86_shani.cpp +++ b/src/crypto/sha256_x86_shani.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2022 The Bitcoin Core developers +// Copyright (c) 2018-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // diff --git a/src/crypto/sha512.cpp b/src/crypto/sha512.cpp index d1a5eec257..338627fc5f 100644 --- a/src/crypto/sha512.cpp +++ b/src/crypto/sha512.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/crypto/sha512.h b/src/crypto/sha512.h index 3324022909..665c8b886e 100644 --- a/src/crypto/sha512.h +++ b/src/crypto/sha512.h @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2022 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/kernel/disconnected_transactions.cpp b/src/kernel/disconnected_transactions.cpp index f9431cef64..9667642a03 100644 --- a/src/kernel/disconnected_transactions.cpp +++ b/src/kernel/disconnected_transactions.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2023 The Bitcoin Core developers +// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/kernel/mempool_entry.h b/src/kernel/mempool_entry.h index 0c3f08ba9e..531ccb76b6 100644 --- a/src/kernel/mempool_entry.h +++ b/src/kernel/mempool_entry.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/key_io.cpp b/src/key_io.cpp index 3e8633af36..3726d22233 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2021 The Bitcoin Core developers +// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/netbase.h b/src/netbase.h index 0ecd209a6f..8802be6638 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/node/connection_types.h b/src/node/connection_types.h index 037e15d866..08f0882499 100644 --- a/src/node/connection_types.h +++ b/src/node/connection_types.h @@ -1,4 +1,4 @@ -// Copyright (c) 2022 The Bitcoin Core developers +// Copyright (c) 2022-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/node/miner.h b/src/node/miner.h index 24651edc52..047413534b 100644 --- a/src/node/miner.h +++ b/src/node/miner.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/node/mini_miner.h b/src/node/mini_miner.h index 60eb5c81ff..07e6239c37 100644 --- a/src/node/mini_miner.h +++ b/src/node/mini_miner.h @@ -1,4 +1,4 @@ -// Copyright (c) 2022 The Bitcoin Core developers +// Copyright (c) 2022-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/pow.h b/src/pow.h index dbf9a67329..7ee1bddd3c 100644 --- a/src/pow.h +++ b/src/pow.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/qt/bitcoin.h b/src/qt/bitcoin.h index 142a7e2da5..abc478bd45 100644 --- a/src/qt/bitcoin.h +++ b/src/qt/bitcoin.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index b923ffe8da..dda26fa059 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp index 47a21cf898..f473ac1ff1 100644 --- a/src/qt/notificator.cpp +++ b/src/qt/notificator.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h index efe9b3bd4d..4cbd531922 100644 --- a/src/qt/optionsmodel.h +++ b/src/qt/optionsmodel.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 74ddb35c19..db3c7f7417 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index cce453acf3..4325c7f158 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index d5ce1bd469..dd70c499fd 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1,5 +1,5 @@ // Copyright (c) 2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 649c1dddec..b42fe96fd3 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2022 The Bitcoin Core developers +// Copyright (c) 2017-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 74e091224b..4c2b03bad0 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -1,5 +1,5 @@ // Copyright (c) 2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/rpc/node.cpp b/src/rpc/node.cpp index 60f7c39858..a5da8785df 100644 --- a/src/rpc/node.cpp +++ b/src/rpc/node.cpp @@ -1,5 +1,5 @@ // Copyright (c) 2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/rpc/server.h b/src/rpc/server.h index a14897f390..ba9e4d7d7c 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -1,5 +1,5 @@ // Copyright (c) 2010 Satoshi Nakamoto -// Copyright (c) 2009-2021 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/compress_tests.cpp b/src/test/compress_tests.cpp index c8289a281f..7fefa46744 100644 --- a/src/test/compress_tests.cpp +++ b/src/test/compress_tests.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2012-2021 The Bitcoin Core developers +// Copyright (c) 2012-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/denialofservice_tests.cpp b/src/test/denialofservice_tests.cpp index 800a9eac24..16fdd4b7b6 100644 --- a/src/test/denialofservice_tests.cpp +++ b/src/test/denialofservice_tests.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2022 The Bitcoin Core developers +// Copyright (c) 2011-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index bce7e64ac7..962192cefd 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2020-2022 The Bitcoin Core developers +// Copyright (c) 2020-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/fuzz/asmap_direct.cpp b/src/test/fuzz/asmap_direct.cpp index 16c70a582b..1d693e5ecf 100644 --- a/src/test/fuzz/asmap_direct.cpp +++ b/src/test/fuzz/asmap_direct.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2020-2021 The Bitcoin Core developers +// Copyright (c) 2020-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/fuzz/coinscache_sim.cpp b/src/test/fuzz/coinscache_sim.cpp index dac6f4ab4b..91b98292fe 100644 --- a/src/test/fuzz/coinscache_sim.cpp +++ b/src/test/fuzz/coinscache_sim.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2023 The Bitcoin Core developers +// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/fuzz/deserialize.cpp b/src/test/fuzz/deserialize.cpp index 46ac078513..5a09963e2c 100644 --- a/src/test/fuzz/deserialize.cpp +++ b/src/test/fuzz/deserialize.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2021 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/scriptnum10.h b/src/test/scriptnum10.h index 42ab8e9405..38a6fee1dc 100644 --- a/src/test/scriptnum10.h +++ b/src/test/scriptnum10.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2021 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/scriptnum_tests.cpp b/src/test/scriptnum_tests.cpp index caaacc7135..289a31da80 100644 --- a/src/test/scriptnum_tests.cpp +++ b/src/test/scriptnum_tests.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2012-2020 The Bitcoin Core developers +// Copyright (c) 2012-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/util/coins.cpp b/src/test/util/coins.cpp index aea01d12fd..2dd98ae770 100644 --- a/src/test/util/coins.cpp +++ b/src/test/util/coins.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2023 The Bitcoin Core developers +// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/txrequest.cpp b/src/txrequest.cpp index 1e40bb75bc..03b4cd6b16 100644 --- a/src/txrequest.cpp +++ b/src/txrequest.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2020-2021 The Bitcoin Core developers +// Copyright (c) 2020-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/util/tokenpipe.cpp b/src/util/tokenpipe.cpp index 1948beb7c2..c982fa6fc4 100644 --- a/src/util/tokenpipe.cpp +++ b/src/util/tokenpipe.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2021-2022 The Bitcoin Core developers +// Copyright (c) 2021-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index eda4b4d499..8998fdb078 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2012-2022 The Bitcoin Core developers +// Copyright (c) 2012-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index e576739bbe..a126da394d 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. From fa9ca13f35be0a023aeed78775ad66f95717b28b Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 3 Jun 2025 19:51:23 +0200 Subject: [PATCH 3/3] refactor: Sort includes of touched source files --- src/bench/parse_hex.cpp | 5 +++-- src/bip324.cpp | 2 +- src/cluster_linearize.h | 4 ++-- src/common/args.h | 2 +- src/consensus/consensus.h | 2 +- src/crypto/chacha20.h | 2 +- src/crypto/chacha20poly1305.cpp | 2 +- src/crypto/hkdf_sha256_32.h | 2 +- src/crypto/hmac_sha256.h | 2 +- src/crypto/hmac_sha512.h | 2 +- src/crypto/poly1305.h | 2 +- src/crypto/ripemd160.h | 2 +- src/crypto/sha1.h | 2 +- src/crypto/sha256.h | 2 +- src/crypto/sha256_sse4.cpp | 2 +- src/crypto/sha3.h | 2 +- src/crypto/sha512.h | 2 +- src/interfaces/node.h | 4 ++-- src/kernel/mempool_entry.h | 4 ++-- src/netbase.h | 2 +- src/node/connection_types.h | 2 +- src/node/miner.h | 2 +- src/node/mini_miner.h | 2 +- src/rpc/client.cpp | 2 +- src/rpc/mining.cpp | 2 +- src/rpc/rawtransaction.cpp | 2 +- src/rpc/server.h | 2 +- src/streams.h | 4 ++-- src/test/fuzz/addrman.cpp | 2 +- src/test/fuzz/cluster_linearize.cpp | 4 ++-- src/test/fuzz/coinscache_sim.cpp | 6 +++--- src/test/fuzz/deserialize.cpp | 2 +- src/test/fuzz/txgraph.cpp | 6 +++--- src/test/fuzz/vecdeque.cpp | 2 +- src/test/scriptnum10.h | 2 +- src/test/util/cluster_linearize.h | 2 +- src/txgraph.h | 4 ++-- src/util/feefrac.h | 7 ++++--- src/validation.h | 2 +- src/wallet/sqlite.cpp | 4 ++-- src/wallet/test/wallet_tests.cpp | 2 +- src/wallet/walletdb.h | 2 +- 42 files changed, 58 insertions(+), 56 deletions(-) diff --git a/src/bench/parse_hex.cpp b/src/bench/parse_hex.cpp index c20e9546c3..fa08f5d84a 100644 --- a/src/bench/parse_hex.cpp +++ b/src/bench/parse_hex.cpp @@ -1,12 +1,13 @@ -// Copyright (c) 2024- The Bitcoin Core developers +// Copyright (c) 2024-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include -#include #include + #include +#include #include #include diff --git a/src/bip324.cpp b/src/bip324.cpp index bb1fae5dee..9c5a1572bb 100644 --- a/src/bip324.cpp +++ b/src/bip324.cpp @@ -17,8 +17,8 @@ #include #include -#include #include +#include #include #include diff --git a/src/cluster_linearize.h b/src/cluster_linearize.h index 2a3c649576..17b7e6b27a 100644 --- a/src/cluster_linearize.h +++ b/src/cluster_linearize.h @@ -6,11 +6,11 @@ #define BITCOIN_CLUSTER_LINEARIZE_H #include +#include #include #include -#include -#include #include +#include #include #include diff --git a/src/common/args.h b/src/common/args.h index c35e2cb88a..6c5ac48ae3 100644 --- a/src/common/args.h +++ b/src/common/args.h @@ -11,12 +11,12 @@ #include #include +#include #include #include #include #include #include -#include #include #include #include diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h index 1e5a6bc4c3..71b5fe2468 100644 --- a/src/consensus/consensus.h +++ b/src/consensus/consensus.h @@ -6,8 +6,8 @@ #ifndef BITCOIN_CONSENSUS_CONSENSUS_H #define BITCOIN_CONSENSUS_CONSENSUS_H -#include #include +#include /** The maximum allowed size for a serialized block, in bytes (only for buffer size limits) */ static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000; diff --git a/src/crypto/chacha20.h b/src/crypto/chacha20.h index 223b317f35..6653c2c973 100644 --- a/src/crypto/chacha20.h +++ b/src/crypto/chacha20.h @@ -9,8 +9,8 @@ #include #include -#include #include +#include #include // classes for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein diff --git a/src/crypto/chacha20poly1305.cpp b/src/crypto/chacha20poly1305.cpp index 06dbf6037b..5b918d9b91 100644 --- a/src/crypto/chacha20poly1305.cpp +++ b/src/crypto/chacha20poly1305.cpp @@ -4,8 +4,8 @@ #include -#include #include +#include #include #include #include diff --git a/src/crypto/hkdf_sha256_32.h b/src/crypto/hkdf_sha256_32.h index 3010e678a4..f9f343b4b7 100644 --- a/src/crypto/hkdf_sha256_32.h +++ b/src/crypto/hkdf_sha256_32.h @@ -7,8 +7,8 @@ #include -#include #include +#include /** A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */ class CHKDF_HMAC_SHA256_L32 diff --git a/src/crypto/hmac_sha256.h b/src/crypto/hmac_sha256.h index 2f72970014..ea8cee8808 100644 --- a/src/crypto/hmac_sha256.h +++ b/src/crypto/hmac_sha256.h @@ -7,8 +7,8 @@ #include -#include #include +#include /** A hasher class for HMAC-SHA-256. */ class CHMAC_SHA256 diff --git a/src/crypto/hmac_sha512.h b/src/crypto/hmac_sha512.h index a25da385f4..d6bebc093c 100644 --- a/src/crypto/hmac_sha512.h +++ b/src/crypto/hmac_sha512.h @@ -7,8 +7,8 @@ #include -#include #include +#include /** A hasher class for HMAC-SHA-512. */ class CHMAC_SHA512 diff --git a/src/crypto/poly1305.h b/src/crypto/poly1305.h index 1b7e355fee..494f7cdd4d 100644 --- a/src/crypto/poly1305.h +++ b/src/crypto/poly1305.h @@ -8,8 +8,8 @@ #include #include -#include #include +#include #define POLY1305_BLOCK_SIZE 16 diff --git a/src/crypto/ripemd160.h b/src/crypto/ripemd160.h index 6ade63bf34..a06a3255e2 100644 --- a/src/crypto/ripemd160.h +++ b/src/crypto/ripemd160.h @@ -5,8 +5,8 @@ #ifndef BITCOIN_CRYPTO_RIPEMD160_H #define BITCOIN_CRYPTO_RIPEMD160_H -#include #include +#include /** A hasher class for RIPEMD-160. */ class CRIPEMD160 diff --git a/src/crypto/sha1.h b/src/crypto/sha1.h index a22b65344e..fcb96ee6a7 100644 --- a/src/crypto/sha1.h +++ b/src/crypto/sha1.h @@ -5,8 +5,8 @@ #ifndef BITCOIN_CRYPTO_SHA1_H #define BITCOIN_CRYPTO_SHA1_H -#include #include +#include /** A hasher class for SHA1. */ class CSHA1 diff --git a/src/crypto/sha256.h b/src/crypto/sha256.h index 460557686c..3ac771c5d0 100644 --- a/src/crypto/sha256.h +++ b/src/crypto/sha256.h @@ -5,8 +5,8 @@ #ifndef BITCOIN_CRYPTO_SHA256_H #define BITCOIN_CRYPTO_SHA256_H -#include #include +#include #include /** A hasher class for SHA-256. */ diff --git a/src/crypto/sha256_sse4.cpp b/src/crypto/sha256_sse4.cpp index 683d44b6b0..d0a34934d8 100644 --- a/src/crypto/sha256_sse4.cpp +++ b/src/crypto/sha256_sse4.cpp @@ -5,8 +5,8 @@ // This is a translation to GCC extended asm syntax from YASM code by Intel // (available at the bottom of this file). -#include #include +#include #if defined(__x86_64__) || defined(__amd64__) diff --git a/src/crypto/sha3.h b/src/crypto/sha3.h index 6d114379f3..7a538e4a27 100644 --- a/src/crypto/sha3.h +++ b/src/crypto/sha3.h @@ -7,8 +7,8 @@ #include -#include #include +#include //! The Keccak-f[1600] transform. void KeccakF(uint64_t (&st)[25]); diff --git a/src/crypto/sha512.h b/src/crypto/sha512.h index 665c8b886e..102fa02a8c 100644 --- a/src/crypto/sha512.h +++ b/src/crypto/sha512.h @@ -5,8 +5,8 @@ #ifndef BITCOIN_CRYPTO_SHA512_H #define BITCOIN_CRYPTO_SHA512_H -#include #include +#include /** A hasher class for SHA-512. */ class CSHA512 diff --git a/src/interfaces/node.h b/src/interfaces/node.h index 2ab9f84e73..a74695be85 100644 --- a/src/interfaces/node.h +++ b/src/interfaces/node.h @@ -15,10 +15,10 @@ #include #include -#include -#include #include #include +#include +#include #include #include #include diff --git a/src/kernel/mempool_entry.h b/src/kernel/mempool_entry.h index 531ccb76b6..51a1f26642 100644 --- a/src/kernel/mempool_entry.h +++ b/src/kernel/mempool_entry.h @@ -15,11 +15,11 @@ #include #include +#include +#include #include #include #include -#include -#include class CBlockIndex; diff --git a/src/netbase.h b/src/netbase.h index 8802be6638..b2cc172e53 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -11,9 +11,9 @@ #include #include +#include #include #include -#include #include #include #include diff --git a/src/node/connection_types.h b/src/node/connection_types.h index 08f0882499..a00895e2a8 100644 --- a/src/node/connection_types.h +++ b/src/node/connection_types.h @@ -5,8 +5,8 @@ #ifndef BITCOIN_NODE_CONNECTION_TYPES_H #define BITCOIN_NODE_CONNECTION_TYPES_H -#include #include +#include /** Different types of connections to a peer. This enum encapsulates the * information we have available at the time of opening or accepting the diff --git a/src/node/miner.h b/src/node/miner.h index 047413534b..a9a88b39cf 100644 --- a/src/node/miner.h +++ b/src/node/miner.h @@ -13,9 +13,9 @@ #include #include +#include #include #include -#include #include #include diff --git a/src/node/mini_miner.h b/src/node/mini_miner.h index 07e6239c37..73143e829e 100644 --- a/src/node/mini_miner.h +++ b/src/node/mini_miner.h @@ -9,11 +9,11 @@ #include #include +#include #include #include #include #include -#include #include class CFeeRate; diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 4c2b03bad0..0916c631c2 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -7,8 +7,8 @@ #include #include -#include #include +#include #include #include diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index ef234c6283..4fa62447af 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -43,8 +43,8 @@ #include #include -#include #include +#include using interfaces::BlockRef; using interfaces::BlockTemplate; diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 93541a9330..9c26e5c733 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -42,8 +42,8 @@ #include #include -#include #include +#include #include diff --git a/src/rpc/server.h b/src/rpc/server.h index ba9e4d7d7c..d4b48f2418 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -9,9 +9,9 @@ #include #include +#include #include #include -#include #include #include diff --git a/src/streams.h b/src/streams.h index 0b3b939fab..5a59604712 100644 --- a/src/streams.h +++ b/src/streams.h @@ -14,12 +14,12 @@ #include #include #include +#include #include +#include #include #include #include -#include -#include #include #include #include diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index 962192cefd..a13945a520 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -14,12 +14,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/test/fuzz/cluster_linearize.cpp b/src/test/fuzz/cluster_linearize.cpp index 5ac9edfc69..6a1ea40aef 100644 --- a/src/test/fuzz/cluster_linearize.cpp +++ b/src/test/fuzz/cluster_linearize.cpp @@ -6,16 +6,16 @@ #include #include #include -#include #include +#include #include #include #include #include #include -#include #include +#include using namespace cluster_linearize; diff --git a/src/test/fuzz/coinscache_sim.cpp b/src/test/fuzz/coinscache_sim.cpp index 91b98292fe..30845c2ef9 100644 --- a/src/test/fuzz/coinscache_sim.cpp +++ b/src/test/fuzz/coinscache_sim.cpp @@ -5,14 +5,14 @@ #include #include #include -#include #include +#include #include #include -#include -#include #include +#include +#include #include namespace { diff --git a/src/test/fuzz/deserialize.cpp b/src/test/fuzz/deserialize.cpp index 5a09963e2c..05ca62b6fd 100644 --- a/src/test/fuzz/deserialize.cpp +++ b/src/test/fuzz/deserialize.cpp @@ -29,10 +29,10 @@ #include #include +#include #include #include #include -#include using node::SnapshotMetadata; diff --git a/src/test/fuzz/txgraph.cpp b/src/test/fuzz/txgraph.cpp index 7f7a3181b1..e464997038 100644 --- a/src/test/fuzz/txgraph.cpp +++ b/src/test/fuzz/txgraph.cpp @@ -2,20 +2,20 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include -#include #include +#include #include +#include #include #include #include +#include #include #include #include #include -#include #include using namespace cluster_linearize; diff --git a/src/test/fuzz/vecdeque.cpp b/src/test/fuzz/vecdeque.cpp index 13843b2c4b..30fc2da03f 100644 --- a/src/test/fuzz/vecdeque.cpp +++ b/src/test/fuzz/vecdeque.cpp @@ -7,8 +7,8 @@ #include #include -#include #include +#include namespace { diff --git a/src/test/scriptnum10.h b/src/test/scriptnum10.h index 38a6fee1dc..db66f3a14c 100644 --- a/src/test/scriptnum10.h +++ b/src/test/scriptnum10.h @@ -7,9 +7,9 @@ #define BITCOIN_TEST_SCRIPTNUM10_H #include +#include #include #include -#include #include #include diff --git a/src/test/util/cluster_linearize.h b/src/test/util/cluster_linearize.h index b69edb496b..a89a46552b 100644 --- a/src/test/util/cluster_linearize.h +++ b/src/test/util/cluster_linearize.h @@ -14,8 +14,8 @@ #include #include -#include #include +#include namespace { diff --git a/src/txgraph.h b/src/txgraph.h index 6fa035fb5b..5779397f82 100644 --- a/src/txgraph.h +++ b/src/txgraph.h @@ -3,11 +3,11 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include +#include #include #include -#include -#include #include +#include #include diff --git a/src/util/feefrac.h b/src/util/feefrac.h index 7b3e6010d6..7577107e8c 100644 --- a/src/util/feefrac.h +++ b/src/util/feefrac.h @@ -5,12 +5,13 @@ #ifndef BITCOIN_UTIL_FEEFRAC_H #define BITCOIN_UTIL_FEEFRAC_H -#include -#include -#include #include #include +#include +#include +#include + /** Data structure storing a fee and size, ordered by increasing fee/size. * * The size of a FeeFrac cannot be zero unless the fee is also zero. diff --git a/src/validation.h b/src/validation.h index 05a2a2df8c..87a1de7cfb 100644 --- a/src/validation.h +++ b/src/validation.h @@ -36,12 +36,12 @@ #include #include +#include #include #include #include #include #include -#include #include #include #include diff --git a/src/wallet/sqlite.cpp b/src/wallet/sqlite.cpp index c53b6935b1..b902dd82c1 100644 --- a/src/wallet/sqlite.cpp +++ b/src/wallet/sqlite.cpp @@ -10,15 +10,15 @@ #include #include #include -#include #include +#include #include #include #include #include -#include +#include #include #include #include diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index 8998fdb078..1b0cfe2c4f 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -4,9 +4,9 @@ #include +#include #include #include -#include #include #include diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index a126da394d..5327a2cf69 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -6,11 +6,11 @@ #ifndef BITCOIN_WALLET_WALLETDB_H #define BITCOIN_WALLET_WALLETDB_H +#include #include