Skip to content

Commit fa7d319

Browse files
author
MarcoFalke
committed
refactor: Remove unused circular include dependency from validation.cpp
1 parent eca2e43 commit fa7d319

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/validation.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
#include <validation.h>
77

8-
#include <kernel/chain.h>
9-
#include <kernel/coinstats.h>
10-
#include <kernel/mempool_persist.h>
11-
128
#include <arith_uint256.h>
139
#include <chain.h>
1410
#include <checkqueue.h>
@@ -22,7 +18,9 @@
2218
#include <cuckoocache.h>
2319
#include <flatfile.h>
2420
#include <hash.h>
21+
#include <kernel/chain.h>
2522
#include <kernel/chainparams.h>
23+
#include <kernel/coinstats.h>
2624
#include <kernel/disconnected_transactions.h>
2725
#include <kernel/mempool_entry.h>
2826
#include <kernel/messagestartchars.h>

test/lint/lint-circular-dependencies.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"qt/transactiontablemodel -> qt/walletmodel -> qt/transactiontablemodel",
2222
"wallet/wallet -> wallet/walletdb -> wallet/wallet",
2323
"kernel/coinstats -> validation -> kernel/coinstats",
24-
"kernel/mempool_persist -> validation -> kernel/mempool_persist",
2524

2625
# Temporary, removed in followup https://github.com/bitcoin/bitcoin/pull/24230
2726
"index/base -> node/context -> net_processing -> index/blockfilterindex -> index/base",

0 commit comments

Comments
 (0)