Skip to content

Commit 0959f0f

Browse files
merge-scriptPastaPastaPasta
authored andcommitted
Merge bitcoin#23044: refactor: Remove unused validation includes
fa45a13 refactor: Remove unused validation includes (MarcoFalke) Pull request description: Unused includes will cause needless recompilation when headers are changed. Also, they pretend there are dependencies that don't exist. Fix both by removing them. ACKs for top commit: laanwj: Code review ACK fa45a13 theStack: ACK fa45a13 ♻️ Tree-SHA512: 69190fd09184b75bce34ce3f315a1817e09ea32779f9ddc2d4790c89b0887b6cebd88aba66fa054c43c9183fc66202a556d982dd7034fc389a75802d8aaac83a
1 parent ea678b5 commit 0959f0f

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/validation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <node/blockstorage.h>
2626
#include <node/coinstats.h>
2727
#include <node/ui_interface.h>
28+
#include <node/utxo_snapshot.h>
2829
#include <policy/policy.h>
2930
#include <policy/settings.h>
3031
#include <pow.h>

src/validation.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313

1414
#include <amount.h>
1515
#include <attributes.h>
16-
#include <coins.h>
17-
#include <consensus/validation.h>
18-
#include <crypto/common.h> // for ReadLE64
16+
#include <chain.h>
1917
#include <fs.h>
20-
#include <node/utxo_snapshot.h>
2118
#include <policy/feerate.h>
2219
#include <policy/packages.h>
23-
#include <protocol.h> // For CMessageHeader::MessageStartChars
2420
#include <script/script_error.h>
2521
#include <sync.h>
2622
#include <txdb.h>
@@ -49,23 +45,18 @@ class CInstantSendManager;
4945
class CEvoDB;
5046

5147
class CChainState;
52-
class BlockValidationState;
5348
class CBlockIndex;
5449
class CBlockTreeDB;
55-
class CBlockUndo;
5650
class CChainParams;
5751
struct CCheckpointData;
58-
class CInv;
59-
class CConnman;
6052
class CMNHFManager;
61-
class CScriptCheck;
6253
class CTxMemPool;
6354
class TxValidationState;
6455
class CChainstateHelper;
6556
class ChainstateManager;
6657
struct PrecomputedTransactionData;
58+
class SnapshotMetadata;
6759
struct ChainTxData;
68-
6960
struct DisconnectedBlockTransactions;
7061
struct LockPoints;
7162
struct AssumeutxoData;

0 commit comments

Comments
 (0)